Skip to content

Instantly share code, notes, and snippets.

@gradha
Created December 16, 2013 20:27
Show Gist options
  • Save gradha/7993777 to your computer and use it in GitHub Desktop.
Save gradha/7993777 to your computer and use it in GitHub Desktop.
const WIDTH = 640
const HEIGHT = 327
type
TField = tuple
a: float
b: float
c: float
d: float
e: float
TRow = array[0..WIDTH - 1, TField]
TGrid = array[0..HEIGHT -1, TRow]
TWorld = tuple
grid: TGrid
proc display(world: TWorld) =
for r in 0..high(world.grid):
for c in 0..high(world.grid[r]):
echo("init " & $(r) & " " & $(c))
var w: TWorld
w.display()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment