Classic contest, open for good. The 2012 contest is over: how it finished is on the Contest End tab. Records stay open forever, so you can still beat one. Found a bug? Tell us on Discord.
Classic contest · first run 2012

Monochromatic Squares.

Colour an N × N grid with C colours so that no rectangle has all four corners the same colour. Make N as big as you can, for every C from 2 to 21.

The rules

  • A rectangle here is any four cells at the corners of a rectangle whose sides run along the grid: two rows and two columns, any distance apart.
  • Your grid is valid if no rectangle has all four corners the same colour.
  • Send the grid row by row, as symbols separated by commas (new lines are fine). Any symbols will do: 1,2,3 or a,b,c. C is how many different symbols you use, and N is the square root of the number of cells.
  • For each C, only your biggest grid counts.
  • The contest itself ended in 2012, so there's no running score now: it's all about the records. Match one and you're on its history page; beat one and it's yours.
  • Two leaderboards: you choose one when you send your first grid. By Satellite: any method, AI included. By Lantern: no AI (what counts as AI). You take a short pledge, and if you finish near the top, you explain to the community how you did it. By Lantern entries count on both leaderboards. How the two leaderboards work.

Where this came from. In 2009, William Gasarch challenged the world to colour a 17 × 17 grid with 4 colours and no single-colour rectangle. Bernd Steinbach and Christian Posthoff finally did it in February 2012, and Dmitry Kamenetsky asked the obvious next question: what about more colours? About the records: they come from the Tops page saved on 16 August 2012, two weeks before the contest closed. The players' own grids weren't saved, but for most C we can build a grid of the record size from methods the players shared on the forum afterwards. Press View to see one. Did you play in 2012 and still have your grids? Please submit them.

See how it works

The scoring code

As on the original site, here is the code that scores every entry, so you can check your own before you send it. It's written to be easy to read, not fast. Each version reads one entry per line and prints its score. We've checked all six against the site on every grid we could build from the 2012 forum, plus hundreds of broken ones.