Advertisement
Guest User

Untitled

a guest
Jan 21st, 2020
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.47 KB | None | 0 0
  1. #include <stdio.h>
  2. #include "game.h"
  3.  
  4.  
  5. int main(void)
  6. {
  7.    int tableau[TAILLE_RANGEE][TAILLE_COLONNE]={0};
  8.    int i=0, j=0;
  9.    tableau[1][1]=1;
  10.    for(j=0;j<TAILLE_COLONNE;j++)
  11.       tableau[0][j]=2;
  12.    for(j=0;j<TAILLE_COLONNE;j++)
  13.       tableau[TAILLE_RANGEE-1][j]=2;
  14.  
  15.    for(i=0;i<TAILLE_RANGEE;i++)
  16.       tableau[i][0]=2;
  17.    for(i=0;i<TAILLE_RANGEE;i++)
  18.       tableau[i][TAILLE_COLONNE-1]=2;
  19.    
  20.  
  21.    Deplacer_T(tableau);
  22.    printf("\n\n");
  23.    return 0;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement