Example #1
0
        private void InitializeGameWithStartMenue()
        {
            while (true)
            {
                int pressedKey = StartMenu.ShowStartMenueAndGetPressedKey();

                switch (pressedKey)
                {
                case 1:
                    AddPlayersToGame(StartMenu.ShowSelectNumberOfPlayersMenuAndGetSelectedNumbersOfPlayers());
                    break;

                case 2:
                    AddTargetsToGame(StartMenu.ShosSelectNumberOfTargetsMenueAndGetSelectedNumberOfTargets());
                    break;

                case 3:
                    Grid = Labyrint.GetGrid(StartMenu.ShosSelectSizeMenueAndGetSelectedSizeAsKordinat());
                    break;

                case 4:
                    return;
                }
            }
        }
Example #2
0
        private void SetDefaultGame()
        {
            Players = new List <Player>();
            Players.Add(new Player(true));

            Grid = Labyrint.GetGrid(new Kordinat()
            {
                X = 10, Y = 10
            });

            AddTargetsToGame(1);
        }