(Golfed) Game of Tron
Game of Tron
- The Tron starts in the center, facing any direction.
- The game controls are 'i', 'j', 'k', 'l'.
- When the Tron hits it's trail or an edge, "game over" is shown to the user.
I expanded some (of the more extreme) golfing tricks to make the code more readable.
The code can be found in
code.js. The game can be run by opening
The code is compact and lacks proper names and abstractions. I added some basic tests and the tests all pass. Now it is time to refactor! Tidy up the code and add some design.
To download all required node modules of this package:
To run the test:
New BSD License, see
license.txt in repository.