Esempio n. 1
0
		public IGKGameModelUpdate[] GetGameModelUpdates (IGKGameModelPlayer player)
		{
			var moves = new List<Move> ();

			for (int column = 0; column < Width; column++) {
				if (CanMoveInColumn (column))
					moves.Add (Move.MoveInColumn (column));
			}

			return moves.ToArray ();
		}
Esempio n. 2
0
        public IGKGameModelUpdate[] GetGameModelUpdates(IGKGameModelPlayer player)
        {
            var moves = new List <Move> ();

            for (int column = 0; column < Width; column++)
            {
                if (CanMoveInColumn(column))
                {
                    moves.Add(Move.MoveInColumn(column));
                }
            }

            return(moves.ToArray());
        }