public override PlayerResult GetMove(OthelloBoard board) { ArrayList moves = board.GetValidMoves(); int moveIndex = rand.Next(moves.Count); PlayerResult result = new PlayerResult(); result.Move = (OthelloMove)moves[moveIndex]; return(result); }
public override PlayerResult GetMove(OthelloBoard board) { ArrayList moves = board.GetValidMoves(); int moveIndex = rand.Next(moves.Count); PlayerResult result = new PlayerResult(); result.Move = (OthelloMove)moves[moveIndex]; return(result); }