Skip to content

Instantly share code, notes, and snippets.

View simonstastny's full-sized avatar

Simon Stastny simonstastny

View GitHub Profile
@simonstastny
simonstastny / mastermind.rb
Created June 23, 2012 11:52
MasterMind game: computer-vs-computer
# MasterMind Ruby implementation
# by Simon Stastny
# June 23, 2012
#GAME SETUP
ALPHABET = "12345678"
SIZE = 4
COLORS = 6
USED_ALPHABET = ALPHABET.slice(0..COLORS-1)