Skip to content

Instantly share code, notes, and snippets.

View luan's full-sized avatar

Luan Santos luan

View GitHub Profile
@luan
luan / spiralflood.py
Created June 20, 2012 17:12 — forked from luizdepra/spiralflood.py
Spiral Water Flood
# Dont work =(
class SpiralFlood:
def __init__(self):
self.tiles = []
def spiralFlood(self, sx, sy, K, m):
x = y = 0
dx = 0
dy = -1