Superhero Battles is a ruby CLI application to view details of superheros, and play a card game featuring them versus the computer.
It makes ruby Card class instances containing superhero data retrieved from the superhero-api using the net/http and open-uri libraries and the json gem.
Game classes are then created when the user wants to play a game, and these are kept track of in the results.
Other helper classes such as Deck are used, that have been added with the thoughts of future expansions where there could be a custom deck builder option from the main menu.
To play Superhero Battles, you must have ruby installed on your computer.
Then you must use bundler to install the required gems in the superhero-battles folder.
bundle install
Finally, you must give permission to the superhero-battles file to be executable.
chmod +x bin/superhero_battles
To use the application enter:
bin/superhero-battles
From here all menus can be navigated by entering the numbers listed.
Pull requests are welcome on GitHub. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
The application is available as open source under the terms of the MIT License.