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 (); }
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()); }