Guest User

Untitled

a guest
Oct 19th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. TomsAlgorithm tom = new TomsAlgorithm();
  2. DavesAlgorithm dave = new DavesAlgorithm();
  3. int[] move;
  4. int winner;
  5.  
  6. while (!(endGame)) {
  7. move = tom.chooseMove();
  8. if (move==null) {
  9. winner = dave.player;
  10. endGame = true;
  11. }
  12. move = dave.chooseMove();
  13. if (move==null)
  14. winner = tom.player;
  15. endGame = true;
  16. }
  17. }
Add Comment
Please, Sign In to add comment