Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            int width        = 40;
            int height       = 20;
            int maxRockets   = 3;
            int initialLives = 3;

            WorldState worldState = Simulate.CreateNewWorldState(width, height, maxRockets, width / 2, height / 4, initialLives);

            while (!worldState.GameProgressState.GameOver)
            {
                Simulate.PlayerInput playerInput = KeyboardInput.ReadPlayerInput();
                Display.PrintWorld(worldState);
                worldState = Simulate.Tick(worldState, playerInput);
                Thread.Sleep(250);
            }
        }