This is a fun treasure game written in the Ruby programming language.
-
Install gem:
$ gem install treasure_adventure_game
-
At the command prompt:
$ treasure_game
Enter a number for the number of game rounds you'd like to play. Enter quit
to exit and see a listing of the high scores. The program will also write output to a high_scores.txt
file.
You have the option to load your own players into the game by passing a csv
file as an argument:
$ treasure_game my_players.csv
Your csv
file should be formatted with player names and initial health numbers. For example:
Bob,100
George,60
Sally,125