Example #1
0
 public SnakeEngine(SnakeBoard snakeBoard)
 {
     Board               = snakeBoard;
     SnakeObj            = new SnakeObj();
     SnPoints            = new List <SnakePoints>();
     SnakePointGenerator = new SnakePointGenerator();
 }
Example #2
0
        private void GeneratePoint()
        {
            var snPoint = SnakePointGenerator.Generate();

            PointObj.Points.Add(snPoint);
        }