Example #1
0
 private (int blackStone, int whiteStone) Play(Teban teban, IBoard board)
 {
     while (true)
     {
         if (board.GetLegalPosistionList(teban).Count == 0)
         {
             teban = SwitchTeban(teban);
             if (board.GetLegalPosistionList(teban).Count == 0)
             {
                 break;
             }
         }
         board = board.PutTurn(teban, AIUtility.DecidePositionRandom(teban, board));
         teban = SwitchTeban(teban);
     }
     return(board.CountBlackStone(), board.CountWhiteStone());
 }
Example #2
0
 public Position DecideMove(Teban teban, IBoard board)
 {
     return(AIUtility.DecidePositionRandom(teban, board));
 }