BOIAR QIN

BLOKPARTY LITE: HTML5 Canvas Blokus

December 2012, Board game coded using Javascript and HTML5 Canvas

BLOKUS

Blokus (pronounced "block us") is an abstract strategy board game for two to four players, invented by Bernard Tavitian and first released in 2000 by Sekkoia, a French company. It has won several awards, including the Mensa Select award and the 2004 Teacher's Choice Award. In 2009, the game was sold to Mattel.

The game is played on a square board divided into 20 rows and 20 columns, for a total of 400 squares. There are a total of 84 game tiles, organized into 21 shapes in each of four colors: blue, yellow, red, and green. The 21 shapes are based on free polyominoes of from one to five squares (one monomino, one domino, two trominoes/triominoes, five tetrominoes, and 12 pentominoes).

  • Gameplay

    • Order of play is based on color, with red going first, followed by yellow, green, and blue.
    • The first piece played of each color is placed in one of the board's four corners.
    • Each new piece played must be placed so that it touches at least one piece of the same color, with only corner-to-corner contact allowed—edges cannot touch. However, edge-to-edge contact is allowed when two pieces of different color are involved.
    • When a player cannot place a piece, he or she passes, and play continues as normal for the remaining players.
    • The game ends when no one can place a piece.
  • Development

    • Hand-coded HTML/CSS/JS in Notepad++
    • Mozilla Firefox 16.0.1
    • Windows 7
  • Testing

    • Ad-hoc testing
  • Extensions

    • Undo moves
    • Implement AI opponent