Пример #1
0
        private static void DisplayEightGameOfLifeSetup(List <IGameOfLife> games)// Setup for Displaying eight Games of Life
        {
            List <IGameOfLife> toshow    = new List <IGameOfLife>();
            UserInput          userinput = new UserInput();
            TimerGOL           timer     = new TimerGOL();

            userinput.CaptureGameOfLifes(games, toshow);
            timer.StartTimer(games, toshow);
        }
Пример #2
0
        private static void DisplayGameOfLifeSetup(List <IGameOfLife> games)// Setup or dispaying one Game of Life
        {
            UserInput userinput = new UserInput();
            TimerGOL  timer     = new TimerGOL();

            IGameOfLife game = userinput.CaptureGameNr(games);

            timer.StartTimer(game);
        }
Пример #3
0
        private static void CreateGameOfLifeSetup(List <IGameOfLife> games) //Setup for creating Game of Life
        {
            UserInput            userinput = new UserInput();
            TimerGOL             timer     = new TimerGOL();
            LightWeightSpaceship lws       = new LightWeightSpaceship();

            IGameOfLife game = userinput.Capture(); //initialazing game of life

            lws.Add(game);                          //Adding lightweightspaceship
            timer.StartTimer(game);
            games.Add(game);
        }