Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public bool WhoBetter()
- {
- int[] count = { 0, 0 };
- for (int i = 0; i < GameArray.GetLength(0); i++)
- for (int x = 0; x < GameArray.GetLength(1); x++)
- if (this.GameArray[i, x] == true)
- count[0]++;
- else
- count[1]++;
- if (count[0] > count[1])
- return true;
- return false;
- }
Add Comment
Please, Sign In to add comment