- ruby 2.2+
- bundler
bundle install
./bin/zombieland --help
Example usage:
-i, --input FILE Path to the zombie game input file
-t, --tunnelling_wall [NO] Enable the tunnelling wall mode
./bin/zombieland -i example-data/input.txt
./bin/zombieland -i example-data/input.txt -t yes
+----------------------------+
| CLI |
+--------------+-------------+
|
+------------------v-----------------+
| Workflow |
+------------------------------------+
| +----------------------------+ |
| | Transformer | | <- Transforms CSV input for consumption.
| +--------------+-------------+ |
| | |
| +--------------v-------------+ |
| | Game | | <- Runs the game logic.
| +----------------------------+ |
| | +----------------------+ | |
| | | Models | | | <- Domain models.
| | +----------------------+ | |
| | | +----------------+ | | |
| | | | Map | | | |
| | | | +------------+ | | | |
| | | | | Coordinate | | | | |
| | | | +------------+ | | | |
| | | +----------------+ | | |
| | | +----------------+ | | |
| | | | Object | | | | <- Zombie or creature.
| | | | +------------+ | | | |
| | | | | Movement | | | | |
| | | | +------------+ | | | |
| | | +----------------+ | | |
| | +----------------------+ | |
| +--------------+-------------+ |
| | |
| +--------------v-------------+ |
| | Presenter | | <- Presents the game output to CLI.
| +----------------------------+ |
+------------------------------------+
bundle exec rake
bundle exec rake rubocop
bundle exec rake spec
- Fred Wu ifredwu@gmail.com
- 2016-05-14