Ruby Version: 2.6.1
I was presented with this test during an interview process.
You can read the callenge description on this file
bundle install
ruby application.rb --file score.tsv
You can point the --file
flag to a different file if you need.
ruby application_test.rb
The tests rely on the sample file, if you change it the tests will break.
I think the app is solid enough for an interview challenge, BUT
- I still think there is place for architecture improovements and more testing scenarios;
- I think this app should be able to print incomplete games;
- The app should highlight the winner's score;
The sample score.tsv
file includes 5 players:
- Jeff and John are the scnearios given on the thest
- Steve is the scenario explained in this video
- Carl is a perfect score
- Mark is a zero score