You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
David Vereb
5abdbaae3e
|
9 months ago | |
---|---|---|
.gitignore | 1 year ago | |
Demo.cpp | 1 year ago | |
Demo.h | 1 year ago | |
Makefile | 1 year ago | |
Pieces.cpp | 1 year ago | |
Pieces.h | 1 year ago | |
README | 1 year ago | |
TODO | 9 months ago | |
main.cpp | 1 year ago | |
solutions | 1 year ago |
README
# Grid:
[0 1 2 3 4 5 ]
[6 7 8 9 10 11]
[12 13 14 15 16 17 18]
[19 20 21 22 23 24 25]
[26 27 28 29 30 31 32]
[33 34 35 36 37 38 39]
[40 41 42]
# Order of Operations:
When rendering, always perform the actions in this order:
1. Flips, if set
2. Rotation
# All Piece Placement Format:
Assumes you're placing, in order, all pieces
2 bits for flip, 2 bits for rotation, 6 bits for position, 8 times.
10 * 8 = 80 bits.
# TODO(dev):
# Individual Piece Placement Format:
3 bits for piece number (#0 - #7)
2 bits for flip
(first bit = horizontal flip on)
(second bit = vertical flip on)
2 bits for rotation
(none, 90, 180, 270)
6 bits for position