Skip to content

Latest commit

 

History

History
40 lines (23 loc) · 1.53 KB

README.md

File metadata and controls

40 lines (23 loc) · 1.53 KB

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/).