Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public boolean checkForWin(){
- for (int i = 0; i < 20; i++) {
- for (int j = 0; j < 20; j++) {
- for(int x = 0; x<5; x++){
- if(array[i][j] == 1){
- count++;
- }
- }
- if(count == 5){
- return true;
- }
- }
- }
- return false;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement