Skip to content

Commit

Permalink
DotGraalParser board generation seems to be correct now.
Browse files Browse the repository at this point in the history
Removed the weird interlacing scheme that NW had, and now test.graal
renders correctly.

Relates to issue #12.
  • Loading branch information
Aeva Palecek committed Dec 17, 2016
1 parent ca58ef8 commit 0a5e097
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions graal_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,8 @@ def get_packet(bit_index):
tile = tiles[di]
y = int(math.floor(di/64.0))
x = di%64
# the following is wrong, but sorta works:
tx = di % 16
ty = di / 16
bx = ty / 32 * 16 + tx
by = ty % 32
bx = y / 32 * 16 + x
by = y % 32
self.board[x][y] = (bx, by)


Expand Down

0 comments on commit 0a5e097

Please sign in to comment.