Sanady

Untitled

Mar 13th, 2018
253
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. int checkHit(int row, int col, int playerID)
  2. {
  3. if(deployment_grid[row][col] == 0 || attack_grid[row][col] == playerID)
  4. {
  5. return 0;
  6. }
  7. else if(deployment_grid[row][col] == 1)
  8. {
  9. return 1;
  10. }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment