No description, website, or topics provided.
Ruby
Switch branches/tags
Nothing to show
Pull request Compare This branch is 18 commits ahead of mendicant-original:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
lib
spec
Gemfile
Gemfile.lock
README.md
Rakefile

README.md

Rock, Paper and Scissors w/ Markov Chains

Rock, Paper an Scissors using Markov Chains to estimate the opponent's next hand.

This is my implementation for the Academic Exercise for Medicant Unversity's Core Skills Course 2012.

Usage

$ bin/rps
Your turn. Choose one of [r, p, s] or q to quit: p
Paper vs Rock: I won!
Your turn. Choose one of [r, p, s] or q to quit: p
Paper vs Scissors: I won!
Your turn. Choose one of [r, p, s] or q to quit: p
Paper vs Scissors: I won!
Your turn. Choose one of [r, p, s] or q to quit: r
Rock vs Scissors: You won!
Your turn. Choose one of [r, p, s] or q to quit: s
Scissors vs Scissors: It's a draw
Your turn. Choose one of [r, p, s] or q to quit: r
Rock vs Rock: You won!
Your turn. Choose one of [r, p, s] or q to quit: s
Scissors vs Paper: It's a draw
Your turn. Choose one of [r, p, s] or q to quit: p
Paper vs Scissors: It's a draw
Your turn. Choose one of [r, p, s] or q to quit: s
Scissors vs Paper: It's a draw
Your turn. Choose one of [r, p, s] or q to quit: k
Invalid hand!
Your turn. Choose one of [r, p, s] or q to quit: q
My wins/Ties/Your wins: 3 / 4 / 2