Advertisement
wingman007

SnakeOOP2b_Snake

Oct 21st, 2014
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.41 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace SnakeOOP2b
  8. {
  9.     class Snake
  10.     {
  11.         Queue<Point> body = new Queue<Point>();
  12.  
  13.         public Snake(int snakeLenght)
  14.         {
  15.             for (int i = 0; i < snakeLenght; i++)
  16.             {
  17.                 body.Enqueue(new Point(i,0));
  18.             }
  19.         }
  20.     }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement