项目作者: Hemesh-Unka

项目描述 :
Calculator cricket for ruby!
高级语言: Ruby
项目地址: git://github.com/Hemesh-Unka/calculator-cricket.git
创建时间: 2017-12-16T12:11:48Z
项目社区:https://github.com/Hemesh-Unka/calculator-cricket

开源协议:

下载


Calculator Cricket

This game solely relies on luck. It utilises the .sample method to simulate a real cricket game.

I built this game to get some practice with Ruby, and drive home some core programming fundamentals.

The idea of the game came from high school, we used to play this game on our calculators when lessons were boring. I added a few other features which couldn’t be emulated on a calculator at the time. These included: individual player scores and a visual score card emulated from an old school teletext page.

How to use

  1. ruby calculator-cricket.rb

To Do:

  • Add fall of wickets feature
  • Play again option
  • Indicate players who are not out
  • Improve .sample odds
  • Fix layout issues
  • Host a live version of the game
  • Clean up code

My goals whilst building this program included:

  • Become more familiar with git & github
  • Get familiar with the command line
  • Be more comfortable using OOP practices