Skip to content

Instantly share code, notes, and snippets.

View gaspaio's full-sized avatar

☕ Rodolfo Ripado gaspaio

View GitHub Profile
@gaspaio
gaspaio / Yahtzee
Last active August 29, 2015 14:01
The game of yahtzee is a simple dice game. Each player rolls five
six-sided dice. They can re-roll some or all of the dice up to three
times (including the original roll).
For example, suppose a players rolls
3,4,5,5,2
They hold the two fives and re-roll the other three dice (3,4,2)
5,1,5,5,3
They hold the three fives and re-roll the other two dice (1,3)
5,6,5,5,2
@gaspaio
gaspaio / reversi
Last active August 29, 2015 14:01
Reversi is a board game for two players: the White and the Black players.
The board contains 8x8 squares, like a chess board.
The players place black or white pieces (the stones) onto
the board, one piece per square.
Whenever one or several white pieces are "sandwiched" between 2 black pieces,
they are "fliped": they change color from white to black, and vice-versa.
Sandwiching can happen vertically, horizontally of diagonally.
Verifying that +gaspaio is my blockchain ID. https://onename.com/gaspaio