This was my bonus project for the Ruby course at pragmaticstudio.com. The program tracks projects that have funds randomly added or removed. The randomness is driven by Coin class since funding is either added or removed from the project during each funding round. The program runs with either a default projects file, or one can be specified at the command line as a file with title,target_funding,initial_funding. See the default projects.csv file for examples. Enjoy! PeterPiper
This program is a game written for the Ruby course at pragmaticstudio.com. Excellent course by the way if you are considering learning Ruby. I highly recommend both learning Ruby and this course. The game is fairly straight forward. Players are loaded by default from a players.csv file, however a different players file can be specified on the command line. A custom players file would be a .csv with a player's name and initial health being the two fields on each line. The game starts when the main studio_game program is run. The players take turns and are randomly w00ted, blammed, or skipped depending on what number is rolled by a die. The one running the game can choose how many rounds to play and then quit. When the game quits, the stats are printed to the screen and the game exits. Enjoy, PeterPiper