Exemple #1
0
 /// <summary>
 /// Observe opponent's moves and increment the probability of that move played.
 /// Store the move in the circular array.
 /// </summary>
 /// <param name="opponentMove"></param>
 public override void Observe(Move opponentMove)
 {
     this.moveCount++;      // for every opponent move played, increase its probability
     this.winningScenarios[(int)opponentMove].Probability++;
     recentMoves.AddElement(opponentMove);
 }