My own program for displaying my A-Puzzle-A-Day game solutions. Eventually I might even make it playable...
Go to file
2023-08-15 11:11:59 -04:00
.gitignore Initial Commit 2023-04-02 10:09:17 -04:00
Demo.cpp Moved demo stuff into Demo.h and Demo.cpp. Added ability to place pieces from terminal, though positional data hasn't been implemented yet. 2023-04-03 22:13:21 -04:00
Demo.h Moved demo stuff into Demo.h and Demo.cpp. Added ability to place pieces from terminal, though positional data hasn't been implemented yet. 2023-04-03 22:13:21 -04:00
main.cpp BUGFIX: It was resetting the y & x positions prior to returning for the bottom row of the board. 2023-04-06 17:30:52 -04:00
Makefile Moved demo stuff into Demo.h and Demo.cpp. Added ability to place pieces from terminal, though positional data hasn't been implemented yet. 2023-04-03 22:13:21 -04:00
Pieces.cpp Added ability to flip piece data. 2023-04-03 21:22:44 -04:00
Pieces.h Added ability to flip piece data. 2023-04-03 21:22:44 -04:00
README Moved demo stuff into Demo.h and Demo.cpp. Added ability to place pieces from terminal, though positional data hasn't been implemented yet. 2023-04-03 22:13:21 -04:00
solutions Added solution for 2023-04-08 2023-04-08 15:02:03 -04:00
TODO Added TODO 2023-08-15 11:11:59 -04:00

# 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