public void updateGameState() { if (weWonTheGame()) { gameState.setComputerWon(); view.computerWonGame(); } if (theyWonTheGame()) { gameState.setHumanPlayerWon(); view.humanComputerWonGame(); } if (isDraw()) { gameState.setDraw(); view.gameIsADraw(); } }
public void incrementMoveNumber() { gameState.incrementMovenumber(); }
public boolean justStarted() { return gameState.justStarted(); }
public int makeMove() { int movePosition = strategy.makeMove(); gameState.setLastMove(movePosition); return movePosition; }
public boolean computerWon() { return gameState.computerWon(); }
public boolean humanPlayerWon() { return gameState.humanPlayerWon(); }
public boolean inPlay() { return gameState.inPlay(); }
public int lastMove() { return gameState.lastMove(); }
public int moveNumber() { return gameState.moveNumber(); }