Created
June 30, 2016 21:51
-
-
Save pieman2201/441f8007dc7067d0ddd261c342ffd677 to your computer and use it in GitHub Desktop.
pls danman pls
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| for (int i = 0; i < 3; i++){ | |
| if (((bigBoardStatei0 == MainActivity.move.PLAYERONE || bigBoardStatei0 == move.BOTH) && (bigBoardStatei1 == MainActivity.move.PLAYERONE || bigBoardStatei1 == move.BOTH) && (bigBoardStatei2 == MainActivity.move.PLAYERONE || bigBoardStatei2 == move.BOTH)) || | |
| ((bigBoardState0i == MainActivity.move.PLAYERONE || bigBoardState0i == move.BOTH) && (bigBoardState1i == MainActivity.move.PLAYERONE || bigBoardState1i == move.BOTH) && (bigBoardState2i == MainActivity.move.PLAYERONE || bigBoardState2i == move.BOTH)) || | |
| ((bigBoardState00 == MainActivity.move.PLAYERONE || bigBoardState00 == move.BOTH) && (bigBoardState11 == MainActivity.move.PLAYERONE || bigBoardState11 == move.BOTH) && (bigBoardState22 == MainActivity.move.PLAYERONE || bigBoardState22 == move.BOTH)) || | |
| ((bigBoardState20 == MainActivity.move.PLAYERONE || bigBoardState20 == move.BOTH) && (bigBoardState11 == MainActivity.move.PLAYERONE || bigBoardState11 == move.BOTH) && (bigBoardState02 == MainActivity.move.PLAYERONE || bigBoardState02 == move.BOTH))){ | |
| winner = 1; | |
| Intent intent = new Intent(this, WinActivity.class); | |
| startActivity(intent); | |
| } | |
| else if (((bigBoardStatei0 == MainActivity.move.PLAYERTWO || bigBoardStatei0 == move.BOTH) && (bigBoardStatei1 == MainActivity.move.PLAYERTWO || bigBoardStatei1 == move.BOTH) && (bigBoardStatei2 == MainActivity.move.PLAYERTWO || bigBoardStatei2 == move.BOTH)) || | |
| ((bigBoardState0i == MainActivity.move.PLAYERTWO || bigBoardState0i == move.BOTH) && (bigBoardState1i == MainActivity.move.PLAYERTWO || bigBoardState1i == move.BOTH) && (bigBoardState2i == MainActivity.move.PLAYERTWO || bigBoardState2i == move.BOTH)) || | |
| ((bigBoardState00 == MainActivity.move.PLAYERTWO || bigBoardState00 == move.BOTH) && (bigBoardState11 == MainActivity.move.PLAYERTWO || bigBoardState11 == move.BOTH) && (bigBoardState22 == MainActivity.move.PLAYERTWO || bigBoardState22 == move.BOTH)) || | |
| ((bigBoardState20 == MainActivity.move.PLAYERTWO || bigBoardState20 == move.BOTH) && (bigBoardState11 == MainActivity.move.PLAYERTWO || bigBoardState11 == move.BOTH) && (bigBoardState02 == MainActivity.move.PLAYERTWO || bigBoardState02 == move.BOTH))){ | |
| winner = 2; | |
| Intent intent = new Intent(this, WinActivity.class); | |
| startActivity(intent); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment