Repository navigation
Comparing changes
Open a pull request
base repository: UnNetHack/UnNetHack
base: master
head repository: UnNetHack/UnNetHack
compare: test
- 8 commits
- 113 files changed
- 1 contributor
Commits on Oct 31, 2026
-
test: add characterization tests and golden masters
Link the real game to exercise the duplicated level helpers, then record canonical dumps for 20 .des levels and 11 Lua levels (93 dumps).
Configuration menu - View commit details
-
Copy full SHA for 286668a - Browse repository at this point
Copy the full SHA 286668aView commit details -
refactor: share duplicated special-level helpers
Move one implementation of the map-fill, wall-property, door, room, trap and location helpers into sp_lev.c and let spo_lev.c use it through sp_lev.h. Mechanical merges only; behavior changes stay in their own commits.
Configuration menu - View commit details
-
Copy full SHA for 44902ce - Browse repository at this point
Copy the full SHA 44902ceView commit details -
fix: use the correct SpLev_Map test in the .des maze helpers
maze1xy() and fill_empty_maze() inverted the bitmap test, picking cells the level had already used and filling mazes that were already full.
Configuration menu - View commit details
-
Copy full SHA for 70ba6b6 - Browse repository at this point
Copy the full SHA 70ba6b6View commit details -
fix: map north and south to the correct wall in search_door
The .des version scanned the opposite wall for W_NORTH and W_SOUTH.
Configuration menu - View commit details
-
Copy full SHA for 771ec43 - Browse repository at this point
Copy the full SHA 771ec43View commit details -
chore: share create_door and refresh level data goldens
Adopt the Lua/upstream version: link_doors_rooms() registers doors, set_levltyp() validates terrain writes, and neighbour reads are bounds checked. Also refresh the dumps that were generated from a stale nhdat.
Configuration menu - View commit details
-
Copy full SHA for bebfda0 - Browse repository at this point
Copy the full SHA bebfda0View commit details -
fix: make ensure_way_out work and share splev_initlev
The .des floodfill check pointer was never set, so ensure_way_out() did nothing. Adopt the Lua implementation. Share splev_initlev() by normalizing the mazegrid fill field and adding LVLINIT_SHEOL.
Configuration menu - View commit details
-
Copy full SHA for 328967a - Browse repository at this point
Copy the full SHA 328967aView commit details -
refactor: unify .des selections with selectionvar
Replace the op_selection_* engine with adapters over selvar.c, add selection_logical_oper and the gradient limit argument, and cover the levels that use gradient, filter and floodfill.
Configuration menu - View commit details
-
Copy full SHA for f0fed08 - Browse repository at this point
Copy the full SHA f0fed08View commit details -
test: add a headless level dump
Add --dump-level/--seed/--dump-file to the game, let NETHACK_DATA override the DLB root, and run the golden suite through the binary instead of custom drivers.
Configuration menu - View commit details
-
Copy full SHA for c636b32 - Browse repository at this point
Copy the full SHA c636b32View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff master...test