cawel / ric-rac-roe

The classic tic-tac-toe game with a choice of 3 interfaces (cli, sinatra or shoes)

This URL has Read+Write access

cawel (author)
Thu Jan 29 06:51:41 -0800 2009
commit  cb4325d68b6eaecbd6d02c30dd334c13c1b19450
tree    e9487a01892b8dc6c462847d5e74f405b223c64a
parent  64241722cd274cfa17adebf81cb1efd7ed472200
name age message
file .gitignore Loading commit data...
file MIT-LICENSE
file README.rdoc
directory cli/
directory game/
directory shoes/
directory sinatra/
README.rdoc

Ric-Rac-Roe

Ric-Rac-Roe is the classic tic-tac-toe game with a choice of 3 interfaces:

  • command line interface (cli)
  • web app (using Sinatra)
  • GUI desktop app (using Shoes)

The motivation behind this project was to experiment with a few technologies: Sinatra, Shoes, HAML. In addition to that, an effort has been made to write concise Ruby code.

How to run the game

Command line interface

From the project root directory, run the executable Ruby file:

  ./cli/run.rb

Sinatra interface

From the project root directory, start the Sinatra web server with:

  ruby /sinatra/server.rb

Shoes interface

  • Download Shoes @ shoooes.net/downloads
  • Once installed, open Shoes and select the ’/shoes/app.rb’ file