Example #1
0
 /// <summary>
 /// Players move to [x,y]
 /// </summary>
 /// <param name="x"></param>
 /// <param name="y"></param>
 public void goTo(byte x, byte y)
 {
     Root = Root.getChild(x, y);
 }
Example #2
0
 /// <summary>
 /// Get Best UI move
 /// </summary>
 /// <returns>UI moves (x, y)</returns>
 public (byte, byte) getMove()
 {
     Root = Root.getMax();
     return(Root.X, Root.Y);
 }
Example #3
0
 public TicTacToeMinimax()
 {
     // Init tree
     Root = new TicTacToeNode();
 }