/TowerSim

nodejs project that simulates a game between an arbitrary number of enemies and a single gun tower

Primary LanguageJavaScript

Instructions

npm install
node index.js <gamefile.txt>

Game Files

first line must state the firing range with a lowercase 'm'

subsequent lines are for defining enemies

first column is the name, second column is pos, third is speed these columns are separated by a single space as you can see in the sample files

Sample Files

  • game.txt
  • gameLossExample.txt
  • ImpossibleGame.txt

Unit Tests

npm test