adamjw/SnakeWS — pull request #12 by tamf (2014-12-31 01:06:37+00:00)
Title: Issue 5

Everything seems to work fine. I made the random colour for the recolourFruit method such that the RGB values have a min number of 5 lol.

The moveFruit method kind of sucks because it will move the fruit randomly and repeat this until it gets to a place that isn't occupied: doesn't scale well to when the snake becomes bigger (relative to the board) because the fruit then takes a longer time to spawn. Ideally I would instead want to make it pick from the non-occupied spaces...