Beispiel #1
0
        public Engine(BorderWall wall, InfoWall infoWall, Snake snake)
        {
            this.snake        = snake;
            this.wall         = wall;
            this.infoWall     = infoWall;
            pointsOfDirection = new Point[4];

            snakeDirection = defaultSnakeDirection;
        }
Beispiel #2
0
        public static void Main()
        {
            ConsoleWindow.CustomizeConsole();

            BorderWall wall     = new BorderWall(GameConstraits.GameCols, GameConstraits.GameRows);
            InfoWall   infoWall = new InfoWall(GameConstraits.InfoCols, GameConstraits.InfoRows);

            Snake snake = new Snake(wall);

            Engine engine = new Engine(wall, infoWall, snake);

            engine.Run();
        }
Beispiel #3
0
 public Wall(InfoWall Info)
 {
     IW = Info;
 }