Files
puzzles/unfinished
Ben Harris 5ec86c03a8 move_cursor(): handle visible flag; return useful value
This adds an extra parameter to move_cursor() that's an optional pointer
to a bool indicating whether the cursor is visible.  This allows for
centralising the common idiom of having the keyboard cursor become
visible when a cursor key is pressed.  Consistently with the vast
majority of existing puzzles, the cursor moves even if it was invisible
before, and becomes visible even if it can't move.

The function now also returns one of the special constants that can be
returned by interpret_move(), so that the caller can correctly return
MOVE_UI_UPDATE or MOVE_NO_EFFECT without needing to carefully check for
changes itself.

Callers are updated only to the extent that they all pass NULL as the
new argument.  Most of them could now be substantially simplified.
2023-08-09 11:44:25 +01:00
..
2021-03-29 18:22:20 +01:00
2021-03-29 19:02:23 +01:00
2023-06-11 00:33:27 +01:00

This subdirectory contains puzzle implementations which are
half-written, fundamentally flawed, or in other ways unready to be
shipped as part of the polished Puzzles collection.

The CMake build system will _build_ all of the source in this
directory (to ensure it hasn't become unbuildable), but they won't be
included in all-in-one puzzle binaries or installed by 'make install'
targets. If you want to temporarily change that, you can reconfigure
your build by defining the CMake variable PUZZLES_ENABLE_UNFINISHED.
For example,

  cmake . -DPUZZLES_ENABLE_UNFINISHED="group;slide"

will build as if both Group and Slide were fully official puzzles.