Example #1
0
 public Snake(SnakeBody body) : this(body, Direction.Right)
 {
 }
Example #2
0
 public Snake(SnakeBody body, Direction direction)
 {
     Body      = body ?? throw new ApplicationException("Body is null!");
     Direction = direction;
 }