Created
December 14, 2013 15:04
-
-
Save faassen/7960282 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, row in world.grid: | |
for c, field in row: | |
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