Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int checkHit(int row, int col, int playerID)
- {
- if(deployment_grid[row][col] == 0 || attack_grid[row][col] == playerID)
- {
- return 0;
- }
- else if(deployment_grid[row][col] == 1)
- {
- return 1;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment