Guest User

Untitled

a guest
Jun 21st, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. public bool WhoBetter()
  2. {
  3. int[] count = { 0, 0 };
  4. for (int i = 0; i < GameArray.GetLength(0); i++)
  5. for (int x = 0; x < GameArray.GetLength(1); x++)
  6. if (this.GameArray[i, x] == true)
  7. count[0]++;
  8. else
  9. count[1]++;
  10.  
  11. if (count[0] > count[1])
  12. return true;
  13. return false;
  14. }
Add Comment
Please, Sign In to add comment