Commit Graph

  • a4fca3286f Pass a game_ui to compute_size, print_size and print. Simon Tatham 2023-04-21 15:30:41 +01:00
  • ec2e2f3770 Missing const in configure() documentation. Simon Tatham 2023-04-21 16:12:43 +01:00
  • 20606f0fea Filling: switch to using dsf_minimal in minimize_clue_set. Simon Tatham 2023-04-21 09:26:14 +01:00
  • ce203c12ef Loopy: draw even faint lines using draw_thick_line. Simon Tatham 2023-04-20 19:41:46 +01:00
  • 777dbffd42 Turn off Leak Sanitiser in the icons build. Simon Tatham 2023-04-20 19:38:09 +01:00
  • 9f08986cf1 Update the documentation for the dsf functions. Simon Tatham 2023-04-20 15:13:06 +01:00
  • 68d242c587 Actually rewrite the dsf implementation. Simon Tatham 2023-04-20 17:13:47 +01:00
  • c5e253a9f9 Reorganise the dsf API into three kinds of dsf. Simon Tatham 2023-04-20 17:27:21 +01:00
  • 14e1e05510 Introduce a new dsf_equivalent() function. Simon Tatham 2023-04-20 15:32:10 +01:00
  • 088fdeee38 Remove conditioned-out dsf diagnostic code. Simon Tatham 2023-04-20 14:57:42 +01:00
  • 348aac4c85 Remove size parameter from dsf init and copy functions. Simon Tatham 2023-04-20 14:46:46 +01:00
  • dad2f35502 Store a size field inside the DSF type. Simon Tatham 2023-04-20 14:25:22 +01:00
  • 095224d571 Actually make DSF an opaque structure type. Simon Tatham 2023-04-20 14:12:11 +01:00
  • 89c438e149 Declare all dsfs as a dedicated type name 'DSF'. Simon Tatham 2023-04-20 14:06:43 +01:00
  • 7abf85a9c6 Remove a direct use of dsf internals in Filling. Simon Tatham 2023-04-20 14:00:23 +01:00
  • f21c7d2766 Consistently use snew_dsf to allocate dsfs. Simon Tatham 2023-04-20 13:56:44 +01:00
  • 11a8149d67 Use a dedicated copy function to copy dsfs. Simon Tatham 2023-04-20 13:52:13 +01:00
  • bb561ee3b1 Use a dedicated free function to free dsfs. Simon Tatham 2023-04-20 13:35:58 +01:00
  • 16f997d34c Stop putting dsfs in existing scratch int arrays. Simon Tatham 2023-04-20 13:13:47 +01:00
  • 6c02b72d76 Remove an unnecessary extern function declaration. Simon Tatham 2023-04-20 14:08:02 +01:00
  • 0d86fe4b74 Move obfuscator tests into obfusc.c. Simon Tatham 2023-04-16 08:44:33 +01:00
  • 6fb890e0ea Reference my just-published article about aperiodic tilings. Simon Tatham 2023-04-10 14:56:34 +01:00
  • 71cf891fdc Don't allow zero clues in Pattern Ben Harris 2023-02-14 13:16:53 +00:00
  • a4c6f21b8e Net: validate co-ordinates in decode_ui() Ben Harris 2023-02-14 00:06:10 +00:00
  • 9be7db547a Add a game_state argument to decode_ui() Ben Harris 2023-02-13 23:22:59 +00:00
  • 418cb3a567 Make encode_ui() and decode_ui() optional in back-ends Ben Harris 2023-02-13 22:41:40 +00:00
  • e411db788c Net: assert that cx and cy are in range in compute_active() Ben Harris 2023-02-13 22:14:26 +00:00
  • d505f08f67 js: explicitly tell Emscripten which browsers to target Ben Harris 2023-04-06 09:58:21 +01:00
  • b5f87e6175 js: set -s ENVIRONMENT=web in Emscripten Ben Harris 2023-04-06 09:23:16 +01:00
  • 3b9cafa09f Fall back to <math.h> if <tgmath.h> doesn't work. Simon Tatham 2023-04-06 07:07:30 +01:00
  • d9355041a5 Remove obsolete testbuild.c. Simon Tatham 2023-04-06 07:07:30 +01:00
  • 7a66855947 KaiOS: include extra copyright notices in manual Ben Harris 2023-04-06 00:00:07 +01:00
  • 2e48ce132e Replace <math.h> with <tgmath.h> throughout Ben Harris 2023-04-04 21:43:25 +01:00
  • 4fcc1ea601 js: stop using EXTRA_EXPORTED_RUNTIME_METHODS Ben Harris 2023-04-03 22:49:27 +01:00
  • 4de5d20368 js: use the "load" event for loading save files Ben Harris 2023-04-03 22:11:42 +01:00
  • 36c282aaa9 js: Load save files into the C side incrementally Ben Harris 2023-04-03 15:16:35 +01:00
  • 8d3a93ce47 js: load games using FileReader.readAsArrayBuffer() Ben Harris 2023-04-02 20:58:30 +01:00
  • 2499eb47fa hat-test: more scaling and clipping options. Simon Tatham 2023-04-02 14:30:30 +01:00
  • 7956148591 hat-test: fix array underrun. Simon Tatham 2023-04-02 14:10:31 +01:00
  • 2296d6f078 Remove penrose_count_tiles(). Simon Tatham 2023-04-02 13:07:25 +01:00
  • 83244294f5 Move other test main()s out of library source files. Simon Tatham 2023-04-02 10:42:42 +01:00
  • 71e1776094 Move hat-test into its own source file. Simon Tatham 2023-04-02 10:20:37 +01:00
  • 0bd1a80578 Magnets: add a check that magnets don't wrap between lines Ben Harris 2023-04-01 18:54:29 +01:00
  • 91735e5019 Correct a range check in Magnets' layout verification Ben Harris 2023-03-31 20:38:31 +01:00
  • 1af1204b9c hat-test: option to generate four-coloured hat tilings. Simon Tatham 2023-03-31 18:35:43 +01:00
  • 52d801a06a Require a grid description for hats grid Ben Harris 2023-03-31 15:33:51 +01:00
  • e6aa7ab6dd hat-test: allow choosing a random number seed. Simon Tatham 2023-03-30 08:45:06 +01:00
  • 73dab39bf5 Hats: choose the tiling's starting hat more uniformly. Simon Tatham 2023-03-30 08:37:17 +01:00
  • 796d0f372f Hats: factor out the parent-choosing system. Simon Tatham 2023-03-30 08:34:57 +01:00
  • 4720eeb1aa Loopy: widen clip rectangle for redrawing clues. Simon Tatham 2023-03-28 20:48:28 +01:00
  • 827051dafe hat-test: alternative data output mode to write Python. Simon Tatham 2023-03-28 20:35:03 +01:00
  • 828c7da785 hat-test: allow specifying tiling size on the command line. Simon Tatham 2023-03-28 20:31:21 +01:00
  • 22417efad6 Hats tiling: make hat-test draw each hat in one go. Simon Tatham 2023-03-28 20:29:45 +01:00
  • 6f75879e9f Hats tiling: more uniform parent selection. Simon Tatham 2023-03-28 20:27:27 +01:00
  • 2b1167d82a Fix references to the renamed 'auxiliary' directory. Simon Tatham 2023-03-27 19:31:14 +01:00
  • 0af537d2c0 Rename the 'aux' subdirectory to avoid Windows restrictions. Simon Tatham 2023-03-27 09:17:51 +01:00
  • 8d6647548f Loopy / grid.c: new grid type, 'Hats'. Simon Tatham 2023-03-26 20:05:40 +01:00
  • 255744676c KaiOS: be more careful detecting the presence of KaiAds Ben Harris 2023-03-22 22:54:08 +00:00
  • b66a38bbdc Turn on PUZZLES_SHOW_CURSOR on KaiOS Ben Harris 2023-03-22 17:59:14 +00:00
  • 0632a3c2e4 Treat environment variable values beginning with "T" as true Ben Harris 2023-03-22 17:56:10 +00:00
  • 6dac51795e Add an environment variable to control initial cursor visibility Ben Harris 2023-03-22 16:58:22 +00:00
  • 09c15f206e New shared function, getenv_bool() Ben Harris 2023-03-22 16:06:18 +00:00
  • adf2a09829 Galaxies: skew grid generation in favour of wiggliness. Simon Tatham 2023-03-12 15:18:33 +00:00
  • 51818780f8 Galaxies: remove 'solver_recurse_depth' in live use. Simon Tatham 2023-03-12 14:37:36 +00:00
  • 20f95e3e22 Galaxies: add some higher Unreasonable presets. Simon Tatham 2023-03-12 14:26:45 +00:00
  • 47de8f449c Galaxies: remove the 'maxtries' system. Simon Tatham 2023-03-11 22:13:52 +00:00
  • f018ef97d3 Galaxies: fix recursion depth limit in solver. Simon Tatham 2023-03-12 14:11:34 +00:00
  • 08009f3949 galaxiessolver: fix soak-test mode. Simon Tatham 2023-03-12 12:41:23 +00:00
  • 1dfc38c2ec Galaxies: new deduction by counting liberties of exclaves. Simon Tatham 2023-03-12 11:08:26 +00:00
  • 28aefee8fc Galaxies: add a missing \n in a diagnostic. Simon Tatham 2023-03-12 10:57:53 +00:00
  • 8c5077ee88 Galaxies: fix edge coordinates in a diagnostic. Simon Tatham 2023-03-10 18:01:17 +00:00
  • 4f579ddab5 Tracks: missing \n in debug statement. Simon Tatham 2023-03-10 18:10:00 +00:00
  • 5b0efd8db2 Add missing 'static' on dputs(). Simon Tatham 2023-03-10 18:02:02 +00:00
  • 01569005e3 Further restrict the keys that can have MOD_NUM_KEYPAD Ben Harris 2023-03-05 16:35:41 +00:00
  • fe40cda75a Treat keypad-Enter as CURSOR_SELECT, same as Return. Simon Tatham 2023-03-04 14:30:37 +00:00
  • c0f715fbac KaiOS: be more cautious about determining whether KaiAds is present Ben Harris 2023-03-01 22:13:59 +00:00
  • 5a74693b32 js: Use the Pointer Events API, but only to capture the pointer Ben Harris 2023-03-01 21:55:07 +00:00
  • 5a491c5ad3 Inertia: insist that solutions must be non-empty Ben Harris 2023-02-26 23:18:44 +00:00
  • 6ee62a43ab Correctly handle some short save files Ben Harris 2023-02-26 21:48:10 +00:00
  • e2d390aae8 Map: reduce maximum size Ben Harris 2023-02-26 14:51:09 +00:00
  • 93be3f7cca Be more careful with type of left operand of << Ben Harris 2023-02-26 14:24:38 +00:00
  • 9dbcfa765b More cleverness in midend_process_key() Ben Harris 2023-02-23 22:32:53 +00:00
  • 015bd14474 Don't give the libFuzzer version of fuzzpuzz a special name Ben Harris 2023-02-21 21:04:58 +00:00
  • 80de73a6aa Try to clean up fuzzpuzz a bit Ben Harris 2023-02-20 22:53:33 +00:00
  • 5ba227031c Rough support for fuzzing with libFuzzer Ben Harris 2023-02-20 21:51:18 +00:00
  • ecd868ac6e Revert "JS puzzles: use the PointerEvent API if available." Simon Tatham 2023-02-23 08:46:56 +00:00
  • 90e2c7539b Normalise pathnames in assert statements where possible. Simon Tatham 2023-02-22 12:46:32 +00:00
  • 9d7c2b8c83 JS puzzles: use the PointerEvent API if available. Simon Tatham 2023-02-22 12:36:59 +00:00
  • 5c858253f9 Fix error about setCapture not existing. Simon Tatham 2023-02-20 19:16:35 +00:00
  • bbe866a381 Flood: don't read off the end of some parameter strings Ben Harris 2023-02-20 14:57:31 +00:00
  • 795ccf6002 GTK: Free error message if new_window fails Ben Harris 2023-02-20 14:54:17 +00:00
  • 4e09175fda Fix memory leak in midend_game_id_int() Ben Harris 2023-02-20 14:50:22 +00:00
  • 1235f05af7 Make the HAVE_HF_ITER define target-specific Ben Harris 2023-02-20 00:33:42 +00:00
  • 1880feb442 Support multiple COMPILE_DEFINITIONS for a program Ben Harris 2023-02-20 00:28:42 +00:00
  • 1470c9530b Try to stop CMake disabling assertions in release builds Ben Harris 2023-02-19 23:20:29 +00:00
  • bb16b5a70d js: Add a trivial error handler that alert()s Ben Harris 2023-02-19 19:39:04 +00:00
  • e8ac0381f9 Convert a lot of floating-point constants to single precision Ben Harris 2023-02-18 18:52:21 +00:00
  • 26c7f3aa28 Miscellaneous const fixes Ben Harris 2023-02-18 23:14:12 +00:00
  • 3c3468355f Use unreserved macro names for multiple-include protection Ben Harris 2023-02-18 23:07:44 +00:00
  • d7b931824b Replace a buch of "const static" with "static const" Ben Harris 2023-02-18 22:04:52 +00:00