Skip to content

Instantly share code, notes, and snippets.

View Quentin18's full-sized avatar
🏠
Working from home

Quentin Deschamps Quentin18

🏠
Working from home
View GitHub Profile
@Quentin18
Quentin18 / 21_game.rb
Created August 18, 2020 00:46
21 Game in Ruby
# 21 Game - an example in Ruby for Rosetta Code.
GOAL = 21
MIN_MOVE = 1
MAX_MOVE = 3
DESCRIPTION = "
*** Welcome to the 21 Game! ***
21 is a two player game.
Each player chooses to add 1, 2 or 3 to a running total.