示例#1
0
        private void UpdateGameState()
        {
            MoveRobots();
            CollisionDetection();
            UpdateStatus();

            if (!_player.IsAlive)
            {
                _map.PrintGameOver();
            }
            else if (Robots.All(robot => !robot.IsAlive))
            {
                NextLevel();
            }
        }