Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Text-based Craps game
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
bin initial import
features
lib
spec
README.textile
Rakefile

README.textile

Craps

This is a text-based Craps game written in Ruby.

Prerequisites

  • Ruby
  • RubyGems
  • ActiveSupport

Getting Started

git clone git://github.com/enriquez/craps.git
cd craps
./bin/craps

Commands

Once the game is started you can run one of the following commands to play.

funds

See how much money you have. You start with $100.

point

See what the current point is.

bet (amount) on the (betting area)

Make a bet. For example: bet 10 on the pass line. Currently, pass line and dont pass are the only betting areas.

roll

Roll the dice. You can also roll by just hitting enter without entering a command.

quit

Ends the game. exit does the same.

Development

This game isn’t very fun with only two betting areas, so there are obviously plans to build more once I feel comfortable with the architecture.

Something went wrong with that request. Please try again.