Ejemplo n.º 1
0
 /// <summary>
 /// Make the Agent vs. Agent move, updates and checks.
 /// </summary>
 /// <param name="getMove"></param>
 /// <param name="player"></param>
 private void MakeAgentVsAgentMove(GetMove getMove, Player player)
 {
     for (int i = 0; i < BOARD_SIZE; i++)
     {
         previousState[i] = currentState[i];
     }
     currentState[getMove(currentState)] = (int)player;
     turn = (turn + 1) % 2;
     checkWin();
     this.movesLeft--;
     this.pictureBox.Invalidate();
 }
Ejemplo n.º 2
0
 public Direction GetMove(GetMove getMoveData)
 {
     return(Direction.Right);
 }