← 输入框|github.com|刷新
Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: UnNetHack/UnNetHack
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: UnNetHack/UnNetHack
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: test
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 8 commits
  • 113 files changed
  • 1 contributor

Commits on Oct 31, 2026

  1. 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).
    bhaak committed Oct 31, 2026
    Configuration menu
    Copy the full SHA
    286668a View commit details
    Browse the repository at this point in the history
  2. 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.
    bhaak committed Oct 31, 2026
    Configuration menu
    Copy the full SHA
    44902ce View commit details
    Browse the repository at this point in the history
  3. 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.
    bhaak committed Oct 31, 2026
    Configuration menu
    Copy the full SHA
    70ba6b6 View commit details
    Browse the repository at this point in the history
  4. 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.
    bhaak committed Oct 31, 2026
    Configuration menu
    Copy the full SHA
    771ec43 View commit details
    Browse the repository at this point in the history
  5. 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.
    bhaak committed Oct 31, 2026
    Configuration menu
    Copy the full SHA
    bebfda0 View commit details
    Browse the repository at this point in the history
  6. 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.
    bhaak committed Oct 31, 2026
    Configuration menu
    Copy the full SHA
    328967a View commit details
    Browse the repository at this point in the history
  7. 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.
    bhaak committed Oct 31, 2026
    Configuration menu
    Copy the full SHA
    f0fed08 View commit details
    Browse the repository at this point in the history
  8. 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.
    bhaak committed Oct 31, 2026
    Configuration menu
    Copy the full SHA
    c636b32 View commit details
    Browse the repository at this point in the history
Loading