예제 #1
0
        static void Main(string[] args)
        {
            // start the game
            var pressKeyHandler = new PressKeyHandler();
            var game            = new Game(pressKeyHandler);

            game.StartNewGame();

            do
            {
                game.Play();
            } while (game.SholdBeContinued());
        }
예제 #2
0
파일: Game.cs 프로젝트: AlexeyTolkov/tetris
 public Game(PressKeyHandler pressKeyHandler)
 {
     _pressKeyHandler = pressKeyHandler;
 }