Skip to content

Instantly share code, notes, and snippets.

View ryansturmer's full-sized avatar

Ryan Sturmer ryansturmer

View GitHub Profile
@ryansturmer
ryansturmer / dov.py
Created August 2, 2012 15:01 — forked from anonymous/dov.py
The Dov problem
# Counting Squares Problem
# Code derived from original script by Keith Brafford
#
import itertools
coords = [(0,0), (1,0), (2,0), (3,0), (4,0),
(1.5,.5), (2,.5), (2.5,.5),
(0,1), (1,1),(1.5,1), (2,1), (2.5,1), (3,1), (4,1),
(1.5,1.5), (2,1.5), (2.5,1.5),
(0,2), (1,2), (2,2), (3,2), (4,2),