Skip to content

Natblow/rockpaperscissors-rb

Repository files navigation

Rock, Paper, Scissors game in Ruby

It is a 2 players game, you versus the computer. Each player simultaneously chooses "rock", "paper", and "scissors".

The game has a cheat mode where the computer wins every round.

Code

The main file is rockpaperscissors.rb and the game is run with only one line of code :

require_relative "interface"
require_relative "controller"
require_relative "rules"
require_relative "points"
require_relative "message"
require_relative "game"
Game.new.play

Usage

From the project directory, on your command line run ruby rockpaperscissors.rb

Then just follow the instructions prompted.

image

Live Demo

image

Video Link

Just skip to 4:21min, the powerpoint did not show up. Will remake the same demo in the near future.

Presentation was made to project assessor @amuntasim , a senior software engineer and mentor at Openclassrooms (https://amuntasim.github.io/).

About

CLI rock, paper, scissor game built in Ruby

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages