SHARE
TWEET

Untitled

a guest Dec 9th, 2019 88 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. int main()
  2. {
  3.     Unite cells[100];
  4.     Map map{10, 10, cells};
  5.     memset(cells, 0, 100*sizeof(Unite));
  6.     char players[] = {'I', 'O'};
  7.  
  8.     initializeMGSoldier(cells+5, players[0]);
  9.  
  10.     initializeMGSoldier(cells+1, players[1]);
  11.     initializeMGSoldier(cells+55, players[1]);
  12.  
  13.  
  14.     int turn = 0;
  15.     while(!game_is_ended(&map, players))
  16.     {
  17.         display_map(&map);
  18.         display_state(&map, players[turn]);
  19.         game(&map, players[turn]);
  20.         turn++;
  21.         turn = turn % 2;
  22.     }
  23.     return 0;
  24. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top