adamjw / SnakeWS

0 stars 1 forks source link

6] Collisions with walls and self do nothing #6

Closed adamjw closed 9 years ago

adamjw commented 9 years ago

Implement isMoveValid in snake.game.controller.CollisionController.

The logic should be properly integrated into updateLogic in snake.game.SnakeGame.

Acceptance Criteria:

  1. The game is ended if the move is invalid.
  2. The move is invalid if the snake collides with itself or the walls of the board.