Skip to content

reimai/train

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

train

An endless train simulator, straight from the nightmares and coding interviews

howto

You find yourself in an endless train (carriges form a loop, you see) and the only way to get out is to count the carriges. You can move around with arrows and switch light with a space. Once you think you've had enough you can press enter and shout the number of carriges.

As usual this is not your ordinary js game, it only works in linux (windows chokes on a unicode head character fo some reason and I'm not going to investigate why). To play it you have to build it:

sudo apt-get install haskell-stack
stack install random
stack setup
stack build && stack exec train 

Or, if you're feeling like running binaries from strange people from the internet: train.zip

Interesting thing: the train really forms a loop. An immutable doubly linked loop. Lazy magic. http://wiki.haskell.org/Tying_the_Knot

About

An endless train simulator

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published