Safe Haskell | None |
---|---|
Language | Haskell98 |
This module defines a type representing the location of a core in the 8 × 18 grid.
All of the actually interesting code is in the typeclass instances.
Documentation
The address of a core. There are 144 cores in an 8 × 18 array. The address has the row number followed by the column number.
As a string, the core addresses are displayed as a single
three-digit number, just like in the GreenArray documentation. So
Core 7 17
becomes "717"
.
Core addresses behave like numbers: you can use numeric literals
and add them together. For example, [0..] :: [Core]
gets you the
list of all the core addresses. (move core = core + Core 1 1)
is
a function that moves you up and over by one core.