ChodeGames/chodewars — pull request #5 by matthew-parlette (2013-05-28 14:11:51+00:00)
Title: Move player

This implements the actions to move a player. You'll see the available warps on the main page, where you can click on them to move to those sectors.

The sectors are built on the fly, so there is no 'grid' being stored. However, the possible warps are based on a grid of size x and y (as defined in the Cluster class). You should see that you can move in all 8 directions, but when you get to the side (say, sector 61), then you can't go left anymore, as 60 is not next to 61.

There will eventually be a map of this on the screen, but for now you can see a visualization of this in the console output when you load the page.