A simple quiz game with command-line based (CLI)
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
- Ruby
2.6.0
. You can follow this instruction for the installation procedure. - Bundler
2.1.4
. You can execute this command below:
$ sudo gem install bundler
These commands below will help you to use this project properly.
For the first, you need to clone this repository then run:
$ bundle install --path vendor/bundle
Open this project directory on terminal and execute this command below:
$ bundle exec rspec spec
Open this project directory on terminal and execute this command below:
$ bundle exec rubocop
You can reformat the code by executing:
$ bundle exec rubocop -a
Open this project directory on terminal and execute this command below:
$ ./ruby main.rb
You can add new words with write the words into noun.txt
file in data
directory.
Thanks to @sweetescape for giving me the opportunity to do this coding test.