Skip to content

Instantly share code, notes, and snippets.

@lelandpaul
lelandpaul / quarto.py
Last active September 1, 2020 20:50
A quick command-line implementation of Quarto.
#! /usr/python
# This is a quick implementation of Quarto, playable from the command line.
# For game rules, see: https://en.wikipedia.org/wiki/Quarto_(board_game)
#
# The features of pieces are represented in ASCII as follows:
# +--------------+-----------------+---------------+-------------+
# |Square Round | Dark Light | Solid Hollow | Short Tall |
# | | | | _ |
# | _ _ | _ _ | _ . | _ [*] |

Keybase proof

I hereby claim:

  • I am lelandpaul on github.
  • I am lelandpaul (https://keybase.io/lelandpaul) on keybase.
  • I have a public key whose fingerprint is B4C5 14ED 6609 949C A809 5F28 3E31 1B28 A376 BD7E

To claim this, I am signing this object: