Skip to content

Instantly share code, notes, and snippets.

View hakelimopu's full-sized avatar

hakelimopu hakelimopu

View GitHub Profile
@hakelimopu
hakelimopu / RockScissorsPaper.fs
Last active November 4, 2015 20:42
A console based implementation of a Rock, Scissors, Paper game where you play against the computer and whoever gets three rounds first wins the match.
type choice = Rock | Scissors | Paper
type result = First | Tie | Second
let choices = [Rock; Scissors; Paper]
let combinations = [
((Rock, Rock), Tie);
((Scissors, Scissors), Tie);
((Paper, Paper), Tie);
((Rock, Scissors), First);