static void Main(string[] args) { IBoard _board = new BoardFloodit(); ((BoardFloodit)_board).InitialBoard(10, 5); _board.PrintBoard(); GameFloodit _game = new GameFloodit(); //while(true){ // string input = Console.ReadLine(); // int color = Convert.ToInt32(input); // _game.Step(_board, color); // _board.PrintBoard(); // Console.WriteLine(_game.GetScore(_board)); // if(_game.isWin(_board)){ // break; // } //} PlayerGreed _palyer = new PlayerGreed(); _palyer.AutoPlay(_game, (BoardFloodit)_board); }
public FlooditController() { _board = new BoardFloodit(); _game = new GameFloodit(); _player = new PlayerGreed(); }