Stonehold 64 - Manual tests
Exact setup, actions and expected observations for each milestone and target. The agent asks
you to run the relevant section after each task; record results in docs/verification-status.md.
General setup for every test: run commands from the repository folder in PowerShell 7. VICE
keyboard mapping: letters, digits and Return map directly; RUN/STOP is Esc, RESTORE is
Page Up and the Commodore key is Left Ctrl. Reset from the VICE menu (Machine > Reset). To use a
joystick, assign a PC joystick or keyset to the port in VICE (Preferences > Settings > Input
devices > Joystick) before the test.
M0 - Starter builds and runs
MT0-c64: starter on c64 (Commodore 64, vicii-40)
Setup: prerequisites installed (pwsh -File tools/check-prereqs.ps1 reports no missing tools).
Steps:
- Run
pwsh -File tools/smoke.ps1 -Target c64 and note the result.
- Run
pwsh -File tools/run.ps1 -Target c64 (VICE starts and autostarts build/stonehold-64.prg).
Expected:
- tools/smoke.ps1 prints
[PASS] c64; screenshot in build/smoke/c64/.
- Row 0: ‘STONEHOLD 64’. Row 1: ‘CHARSET OK’ (or ‘MEMORY CLASH’ if the program has grown over the charset at $3800). Rows 3-21: a sample patch of map drawn with the custom glyphs: brown soft rock with grey hard-rock flecks, a dark-grey floor cave in the middle with three orange dwarves, two yellow marked rock tiles and a white cursor bracket. Row 23: a glyph legend (ROCK, HARD, FLOOR, DWARF, DIG). Row 24: ‘STONE 000 FRAME nnn ANY KEY EXITS’ with the frame counter changing every frame. Any key restores the normal character set and returns to BASIC.
- Autostarts to the Stonehold screen drawn with the custom character set: title on row 0, a map view on rows 1-23, status line (stone counter, seed, RUN/PAUSED) on row 24. Three dwarves move on their own to mine tiles the player marks with the mouse, joystick or keyboard.
M1 - World and view
MT1.1: Random map and seed (c64)
Setup: VICE x64sc, PAL.
Start: pwsh -File tools/run.ps1 -Target c64
Steps:
- Start the game and note the seed on row 24.
- Reset VICE and start the game again; note the seed.
Expected:
- Row 24 shows ‘SEED nnnnn’ each time
- The two seeds differ and the visible maps differ
- Three dwarves stand on floor tiles inside a cave
Verifies: R1, R2
MT1.2: Scroll to all four edges (c64)
Setup: VICE x64sc, PAL.
Start: pwsh -File tools/run.ps1 -Target c64
Steps:
- Hold the right cursor key until the view stops moving.
- Repeat for down, left and up (W/A/S/D as well).
Expected:
- The view scrolls one tile at a time without garbage characters
- Scrolling stops at each map edge and the cursor cannot leave the map
Verifies: R3
M2 - Designation by keyboard, joystick and mouse
MT2.1: Mark by keyboard and joystick (c64)
Setup: VICE x64sc, PAL, a joystick or keyset mapped to port 2.
Start: pwsh -File tools/run.ps1 -Target c64
Steps:
- Move the cursor onto a rock tile and press D, then D again.
- Move onto a floor tile and press D.
- Use the joystick to move to another rock tile and press fire.
Expected:
- D marks the rock tile (yellow marked glyph) and the second D unmarks it
- D on floor changes nothing
- The joystick moves the cursor and fire marks the tile
Verifies: R4
MT2.2: Mark by mouse (c64)
Setup: VICE x64sc, PAL, control port 1 set to Mouse (1351), mouse grab enabled.
Start: pwsh -File tools/run.ps1 -Target c64
Steps:
- Move the mouse slowly across the map.
- Left-click a rock tile, then click it again.
- Hold the pointer at the right edge of the view.
Expected:
- The pointer moves smoothly and the highlighted cursor tile is always under the pointer tip
- The first click marks the tile, the second unmarks it
- The map scrolls right while the pointer stays at the edge
Verifies: R5
M3 - Dwarves at work
MT3.1: Dwarves mine marked tiles (c64)
Setup: VICE x64sc, PAL.
Start: pwsh -File tools/run.ps1 -Target c64
Steps:
- Mark three adjacent rock tiles at the edge of the starting cave.
- Watch the dwarves.
- Mark one soft and one hard rock tile and compare mining time.
- Mark a rock tile that is completely enclosed by rock.
Expected:
- Within about 5 seconds dwarves walk to the marked tiles, each to a different one
- Each mined tile turns into floor
- Hard rock takes clearly longer (about 3x)
- The enclosed tile stays marked and no dwarf gets stuck
Verifies: R6
MT3.2: Stone counter and pause (c64)
Setup: VICE x64sc, PAL.
Start: pwsh -File tools/run.ps1 -Target c64
Steps:
- Note ‘STONE 000’ and mark two tiles; wait until both are mined.
- Press SPACE while a dwarf is walking; mark another tile.
- Press SPACE again.
Expected:
- The counter reads ‘STONE 002’ after two tiles
- Row 24 shows ‘PAUSED’, the dwarves stop, and marking still works
- Row 24 shows ‘RUN’ and the dwarves continue
Verifies: R7, R8
MT3.3: Same speed on PAL and NTSC (c64)
Setup: VICE x64sc started once with -pal and once with -ntsc.
Start: pwsh -File tools/run.ps1 -Target c64
Steps:
- Mark a tile 10 tiles away from a dwarf through open floor and time how long it takes to arrive.
Expected:
- The two times differ by less than 10%
Verifies: R10
M4 - Sound
MT4.1: Sound effects (c64)
Setup: VICE x64sc, PAL, sound on.
Start: pwsh -File tools/run.ps1 -Target c64
Steps:
- Mark and unmark a tile.
- Watch and listen while a dwarf mines; pause during mining.
Expected:
- A click on each mark and unmark
- Repeated pick strikes while mining, which stop when the tile is done or the game is paused
Verifies: R9
Real hardware
Optional for this release. Use these steps when hardware is available.
- Build:
pwsh -File tools/build.ps1.
- Get the program onto a disk the machine can read, for example: copy the .prg (or .d64) to an SD2IEC/Pi1541/1541 Ultimate SD card; or write the .d64 to a real floppy with a ZoomFloppy/XUM1541 and OpenCBM (
d64copy build\<image>.d64 8).
- On the machine:
LOAD"*",8 then RUN (a C128 in native mode can also use RUN"name"). For C64-mode targets on a C128, enter C64 mode first (GO 64, then Y).
- Repeat the manual tests for the current milestone and note any difference from VICE (timing, colours, display artefacts, disk speed) in docs/verification-status.md.