コード例 #1
0
ファイル: RandomMove.cs プロジェクト: MingStar/SimUniversity
 private void GenerateMove(Game game)
 {
     ReadOnlyCollection<IPlayerMoveForUpdate> moves = game.GenerateAllMoves();
     int index = RandomGenerator.Next(moves.Count);
     _actualMove = moves[index];
 }