adamjw / SnakeWS

0 stars 1 forks source link

1] State isn't initialized #1

Closed adamjw closed 9 years ago

adamjw commented 9 years ago

When starting the game, a null pointer exception is thrown because the game's state is not initialized. The state should be initialized in snake.game.SnakeGame in the method initializeState.

Acceptance criteria:

  1. Upon running the program, it doesn't crash.
  2. Upon pressing space, the program does not crash.
  3. The number of rows and columns is set to a constant value.
  4. The speed of the game is set to a constant value.