An implementation of Penney's Game in Javascript; an example of a non-transitive game.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
css
img
js
README.md
index.html

README.md

Penney's Game

An implementation of Penney's Game in Javascript; an example of a non-transitive game. You can play the game online at http://www.scatmania.org/penney/.

This is an example of a non-transitive game. The player calls three consecutive coin flips (e.g. Heads, Tails, Tails) and then the computer does the same (e.g. Heads, Heads, Tails, in this case). A coin is repeatedly flipped, and the winner is the player whose sequence comes up first. The computer will generally win more often than it loses, because of the nature of the game.

Read more about the game on its Wikipedia article: https://en.wikipedia.org/wiki/Penney's_game

The author's blog post about this game (and other non-transitive games): http://www.scatmania.org/2013/03/23/non-transitive-games/