Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int main()
- {
- Unite cells[100];
- Map map{10, 10, cells};
- memset(cells, 0, 100*sizeof(Unite));
- char players[] = {'I', 'O'};
- initializeMGSoldier(cells+5, players[0]);
- initializeMGSoldier(cells+1, players[1]);
- initializeMGSoldier(cells+55, players[1]);
- int turn = 0;
- while(!game_is_ended(&map, players))
- {
- display_map(&map);
- display_state(&map, players[turn]);
- game(&map, players[turn]);
- turn++;
- turn = turn % 2;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement