Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- TomsAlgorithm tom = new TomsAlgorithm();
- DavesAlgorithm dave = new DavesAlgorithm();
- int[] move;
- int winner;
- while (!(endGame)) {
- move = tom.chooseMove();
- if (move==null) {
- winner = dave.player;
- endGame = true;
- }
- move = dave.chooseMove();
- if (move==null)
- winner = tom.player;
- endGame = true;
- }
- }
Add Comment
Please, Sign In to add comment