Add Quadrapassel CoCo specification and reviewed implementation workflow
This commit is contained in:
commit
8a4b44bc73
13 files changed
+2250
No files matched your search
@@ -0,0 +1,82 @@
|
||||
# Implementation stages and review checkpoints
|
||||
|
||||
Status at handoff: **planning documents only**. No game probe, executable or disk
|
||||
has been built, and no CoCo compatibility check has passed yet. The implementation
|
||||
prompt is for a separate VCC Plus project chat using ChatGPT-6.1 Sol with High
|
||||
reasoning, after Brian reviews the prompt.
|
||||
|
||||
## Stage 1 — establish the supported API path
|
||||
|
||||
- Verify official 3.5.5 build 48 and the correct Quadrapassel MCP connection.
|
||||
- Read manuals/API/archive material through the advertised tools; record access.
|
||||
- Create a minimal standard CMOC project in this repo and reproduce its disk build.
|
||||
- Prove seven-color graphics, text, moving/erased blocks, keyboard, both joystick
|
||||
ports, timing, short sound, disk access and return to text using standard APIs.
|
||||
- Run on actual 128 KB configuration; measure draw time and input response.
|
||||
- Produce an initial linked memory budget and capture the actual guest display.
|
||||
|
||||
This stage decides whether standard APIs satisfy the target. It does not presume
|
||||
custom graphics code. If an API gap or measured cost requires an exception,
|
||||
request the review described below before implementing it.
|
||||
|
||||
## Stage 2 — playable shared rules engine
|
||||
|
||||
Implement the 10 by 20 board, exact piece definitions, spawn/collision, rotation
|
||||
and kicks, gravity and controls, simultaneous clears, scoring and levels, next,
|
||||
hold, shadow and game over. Use small deterministic fixtures from this repo.
|
||||
Add normal weighted selection, seed repeatability and the optional difficult-piece
|
||||
mode. Test invalid states and score widths appropriate to CMOC.
|
||||
|
||||
Keep rules independent of rendering and input sampling so CoCo 2 and CoCo 3 share
|
||||
them. Host tests may complement guest tests; they do not replace a real CMOC build.
|
||||
|
||||
## Stage 3 — complete player experience
|
||||
|
||||
Add the title treatment, menus, all-keyboard and all-joystick operation, settings,
|
||||
styles, sound, credits, and bounded persistent scores with the reset semantics
|
||||
in the specification. Test sound-enabled latency, pause transitions, read-only
|
||||
media and recoverable writes. Refine within standard APIs before considering
|
||||
approved low-level alternatives.
|
||||
|
||||
## Stage 4 — CoCo 2 and single-disk packaging
|
||||
|
||||
Add the lower-color display using standard APIs with patterns/clear outlines.
|
||||
Keep all game rules and essential controls. Package the supported launcher and
|
||||
both targets (if separate executables) on one disk. Verify DOS and manual boot,
|
||||
safe machine selection, free disk space and score saving.
|
||||
|
||||
Provide the exact CoCo 2 test checklist to Brian for XRoar, preserving pending
|
||||
status until results return. Verify baseline behavior on a 512 KB CoCo 3 too;
|
||||
do not add an enhanced variant merely to fill a third tier.
|
||||
|
||||
## Stage 5 — acceptance and handoff
|
||||
|
||||
Run the specification's relevant acceptance cases with version/configuration
|
||||
records. Add selected actual guest screenshots to `docs/screenshots/`, the built
|
||||
disk at `Quadrapassel.DSK`, source/build settings, loading instructions, controls,
|
||||
credits and a compatibility table. Record measured memory/disk use and timing.
|
||||
Do not mark the project complete while required target checks remain pending.
|
||||
|
||||
Keep implementation commits/pushes within Brian's authorization. Initial planning
|
||||
document publication does not authorize a public release or visibility change.
|
||||
|
||||
## Required exception proposal
|
||||
|
||||
Before any assembly or implementation outside standard CMOC APIs, send a concise
|
||||
proposal to the coordinating chat **Deploy VCC Plus Gitea** for Brian and that chat
|
||||
to review. This is a user-requested permission step, not a routine stage gate.
|
||||
|
||||
Use this structure:
|
||||
|
||||
1. **Need:** player-visible problem and affected target.
|
||||
2. **Standard API evidence:** functions/configuration tried, reproducible check,
|
||||
measurement or documented missing capability.
|
||||
3. **Alternatives:** options that remain within standard APIs and their tradeoffs.
|
||||
4. **Proposed exception:** exact routine/API/assembly, files, size and memory effects.
|
||||
5. **Validation:** correctness, responsiveness, both target machines, restoration
|
||||
of display/input/disk state, and fallback.
|
||||
6. **Decision requested:** smallest useful approval scope.
|
||||
|
||||
Wait for an explicit decision from Brian or a decision relayed after their joint
|
||||
review. Continue unaffected work. Record approvals in `docs/DECISIONS.md` when
|
||||
there is an approved exception; do not create a fictional approval record.
|
||||
@@ -0,0 +1,73 @@
|
||||
# Provenance and permitted use of reference material
|
||||
|
||||
## Behavioral reference
|
||||
|
||||
The specification was prepared from Brian Holman's
|
||||
[Quadrapassel macOS fork](https://github.com/bkholman/quadrapassel-macos), revision
|
||||
`be8769a403e506edb930372f963a9c4c83a0881e` ("Update references for
|
||||
quadrapassel-macos repository"). Its upstream is
|
||||
[GNOME Quadrapassel](https://gitlab.gnome.org/GNOME/quadrapassel).
|
||||
|
||||
Files reviewed for the specification include `src/game.vala`,
|
||||
`src/game-view.vala`, `src/quadrapassel.vala`, `src/style.css`,
|
||||
`data/org.gnome.Quadrapassel.gschema.xml`, `tests/test-scoring.vala`,
|
||||
`tests/test-scoreboard.vala`, `README.md` and `COPYING`.
|
||||
Their observed SHA-256 values are in [reference/source-manifest.json](reference/source-manifest.json).
|
||||
|
||||
The 28 piece states in [pieces.json](reference/pieces.json) were extracted from
|
||||
`BLOCK_TABLE` in `src/game.vala` without changing positions or state order.
|
||||
The numeric cases in [scoring.json](reference/scoring.json) express the reference
|
||||
scoring rules and regression expectations, including new-level multiplication.
|
||||
These files are data for the new implementation, not a bundled Vala application.
|
||||
|
||||
The implementation chat is intentionally restricted to this self-contained
|
||||
specification and allowed public/reference material. The source links and hashes
|
||||
above preserve attribution; they do not authorize that chat to inspect the Mac
|
||||
source or its development chat. This is a black-box boundary around the emulator
|
||||
and a specification-based implementation workflow, not a claim of legally
|
||||
independent provenance from the GPL game.
|
||||
|
||||
## Credits and licensing
|
||||
|
||||
The reference application is **GPL-3.0-or-later**. `COPYING` preserves its GNU
|
||||
GPL version 3 license text. `src/game.vala` credits **Robert Ancell (2010–2013)**
|
||||
and **Lubomir Rintel (2009)**. The application's credits include **J. Marcin
|
||||
Gorycki, Lubomir Rintel, Robert Ancell, John Ward, Will Warner**, and **Brian
|
||||
Holman (macOS port)**. The difficult-piece selection describes its algorithm as
|
||||
originating in **Federico Poloni's Bastet**. Retain these credits in the port.
|
||||
|
||||
The specification and derived piece/scoring reference data are distributed under
|
||||
GPL-3.0-or-later. Future game code derived from them should preserve that license
|
||||
and the relevant notices. The Mac fork's separate libgnome-games-support library
|
||||
has its own LGPL-3.0-or-later terms; that library is not included here.
|
||||
|
||||
Pierre Sarrazin's CMOC/compiler and individual libraries/examples have their own
|
||||
notices, including public-domain components. Check the exact files used; do not
|
||||
label every example or bundled library GPL or public domain. Using a public API
|
||||
does not require copying its implementation. No third-party sound recordings,
|
||||
ROMs, Mac binaries or emulator source were imported into this repository.
|
||||
|
||||
## Supplied title image
|
||||
|
||||
[title-reference.png](reference/title-reference.png) is the image Brian supplied
|
||||
for this project and explicitly authorized as its title reference. It is retained
|
||||
unchanged and is **design reference only**, not a CoCo screenshot or runtime asset.
|
||||
Its hash is recorded in the manifest. This permission is not a general grant to
|
||||
relicense every visual element for unrelated reuse.
|
||||
|
||||
The CoCo screen should recreate the composition at native resolution with its
|
||||
own game graphics: dark grid, colored tetrominoes and a readable title. Replace
|
||||
the Mac platform wording with **for CoCo**. No other game's assets or implementation
|
||||
are required for this reference treatment.
|
||||
|
||||
## Explicit adaptations
|
||||
|
||||
The specification identifies behavior adapted for the CoCo: conventional
|
||||
persistent hold swapping, bounded score storage and rule markers, a compact
|
||||
deterministic PRNG rather than GLib stream compatibility, one-button joystick
|
||||
menus, lower-color CoCo 2 graphics, approximate tone sequences, and safe handling
|
||||
of pieces above the board. They must not be described as byte-for-byte Mac parity.
|
||||
|
||||
Hardware feasibility, timing, physical palette appearance, API performance and
|
||||
disk layout are still to be demonstrated by the implementation. The arithmetic
|
||||
memory estimates and reference tests do not establish a working CoCo build.
|
||||
@@ -0,0 +1,141 @@
|
||||
# VCC Plus development workflow
|
||||
|
||||
## Required installed app
|
||||
|
||||
Use `/Applications/VCC Plus.app`, **version 3.5.5, build 48**. These values were
|
||||
read from the installed app's `Info.plist` on November 10, 2026 after Brian
|
||||
confirmed installation of official build 48. Verify again at implementation start.
|
||||
If the app differs, report it and wait for Brian to approve a different version.
|
||||
Do not downgrade, overwrite, or build a replacement app.
|
||||
|
||||
Use the official app's supported MCP sharing/export flow for the Quadrapassel
|
||||
project. No custom VCC Plus executable, private helper protocol, substitute MCP
|
||||
server, injected code, private endpoints or emulator modifications are authorized.
|
||||
The fact that a binary or source checkout exists on the machine is not permission
|
||||
to use it. This game is a client of the installed product.
|
||||
|
||||
## Reference access through MCP
|
||||
|
||||
1. Discover the tools advertised by the intended connection. Query capabilities
|
||||
and confirm the selected project/root, files, revision, approved build recipe,
|
||||
available build configurations and runtime controls.
|
||||
2. Use `search_help` and `read_topic` for the installed manuals and API reference.
|
||||
Suggested first queries: `hscreen hset palette`, `joystick`, `keyboard`,
|
||||
`CMOC graphics memory`, `sound`, `disk project DOS` and `MCP playtest`.
|
||||
Search/read may need separate short queries; follow the returned schema.
|
||||
3. Use the advertised historical archive search and document-reading tools when
|
||||
present. Consult relevant CMOC, CoCo graphics, keyboard, joystick and disk
|
||||
references. Read cited sections rather than relying on search snippets.
|
||||
4. Record the actual tool names and document/topic identities in the implementation
|
||||
notes. Tool availability may differ from this planning-time inventory.
|
||||
|
||||
**Planning-time limitation:** the available older project-specific connection
|
||||
returned `host_unavailable`. Its advertised documentation tools were
|
||||
`search_help`/`read_topic`; a live build-48 archive search was not verified during
|
||||
specification preparation. This is not a claim that build 48 lacks archive support.
|
||||
The implementation chat must discover and use the correct official connection.
|
||||
Report unavailable access and ask for that connection to be enabled if necessary;
|
||||
do not request emulator features or create a replacement integration to fill a gap.
|
||||
|
||||
Allowed fallback references include the public manuals in
|
||||
`/Applications/VCC Plus.app/Contents/Resources/ManualLibrary`, public headers in
|
||||
`/Applications/VCC Plus.app/Contents/Resources/Toolchain/share/cmoc/include`,
|
||||
and public examples shipped in the official app. Read public API contracts, not
|
||||
private headers or library implementation files. The installed public manual's
|
||||
`programming-in-c/examples/beacon.c` demonstrates `hscreen`, `hset`, palette and
|
||||
standard BGraph use; it is a reference, not permission to copy raw register access
|
||||
from an example without the exception review.
|
||||
|
||||
Pierre's programs and other examples under
|
||||
`/Users/bholman/Development/Personal/VCC/CMOC/Repositories/` are also permitted
|
||||
read-only references. Inspect the selected example's license before reusing code.
|
||||
Search within that folder or an individual example, not the parent VCC directory.
|
||||
Do not read the Mac Quadrapassel implementation or private VCC Plus material.
|
||||
|
||||
Useful public references include the [XRoar author's manual](https://www.6809.org.uk/xroar/doc/xroar.shtml)
|
||||
for CoCo 2 validation and [Chris Lomont's CoCo hardware reference](https://www.lomont.org/software/misc/coco/Lomont_CoCoHardware.pdf)
|
||||
when a public hardware description is needed. Reading these is allowed; implementing
|
||||
raw hardware access still requires the approval process in `AGENTS.md`.
|
||||
|
||||
## Standard APIs before optimization
|
||||
|
||||
Begin with the public CMOC `coco.h` interface:
|
||||
|
||||
| Need | Initial public API candidates |
|
||||
| --- | --- |
|
||||
| CoCo 3 display | `hscreen`, `hset`, `palette`, `paletteRGB`, `rgb` / `cmp` |
|
||||
| CoCo 2 display | `pmode`, `pcls`, `screen`; documented standard graphics-library routines |
|
||||
| Keyboard | `isKeyPressed`, `inkey`, documented keyboard helpers |
|
||||
| Joystick | `readJoystickPositions`, `readJoystickButtons`, named port/button constants |
|
||||
| Timing/speed | `getTimer`, `setTimer`, `setHighSpeed` with their documented contracts |
|
||||
| Sound | `sound` or documented standard CMOC sound-library APIs |
|
||||
| Disk | Documented standard CMOC disk/file libraries selected through Project Settings |
|
||||
|
||||
Check actual header/manual contracts and return codes. Do not infer exact behavior
|
||||
from names. In particular, the public `coco.h` joystick button prose and its named
|
||||
bit constants have inconsistent ordering in the inspected header; confirm both
|
||||
physical ports in the API probe instead of hardcoding a guess.
|
||||
|
||||
`hscreen`/`hset` use BASIC's graphics workspace. They are distinct from the
|
||||
VCC-specific `vcc/gime.h` helper whose documented contract requires at least
|
||||
512 KB. The latter is not the baseline and would need exception review. Do not
|
||||
infer that 128 KB needs a custom renderer just because that helper needs more RAM.
|
||||
|
||||
Compose ordinary game rendering with standard APIs first, update changed cells,
|
||||
and measure. Direct framebuffer access, custom register code, assembly or a
|
||||
nonstandard extension remains gated even when an example contains it. Prefer a
|
||||
manual machine/target choice to an unapproved raw detection routine.
|
||||
|
||||
## Project, build and playtest sequence
|
||||
|
||||
Create the game project using the installed C Development workflow and its public
|
||||
project template. Keep source and settings in this repository. The official app
|
||||
can create a standard disk-project recipe; keep that recipe and its resource/DOS
|
||||
configuration reproducible. Do not add game code to the emulator repository.
|
||||
|
||||
The previously advertised MCP pattern is listed below as a discovery aid, not a
|
||||
promise that every build-48 connection has the identical tool set:
|
||||
|
||||
1. `get_capabilities` and project input/file readers identify the shared project.
|
||||
2. Make normal repository edits or use the advertised reviewed edit proposal flow.
|
||||
New files, assembly (only after approval), or Make changes must use a supported
|
||||
project update/review path. Refresh and inspect the resulting revision.
|
||||
3. `build_project` takes the current project/revision, an advertised `build` or
|
||||
`disk` action and declared configuration. Poll `get_build`; inspect the build
|
||||
log. Do not invent target names or bypass recipe review.
|
||||
4. Start an isolated playtest from the returned artifact. Poll its run status.
|
||||
Match source revision and artifact identity before accepting a result.
|
||||
5. Exercise keyboard input, capture the guest screen/graphics and capture bounded
|
||||
guest audio with the advertised tools. Use documented guest debugger inspection
|
||||
when useful. Do not reach into emulator implementation state.
|
||||
6. Stop the owned run through the supported tool. Preserve writable disk results
|
||||
and useful evidence. Do not operate another project's connector or live session.
|
||||
|
||||
A CLI invocation of the installed bundled toolchain can supplement diagnosis if
|
||||
documented, but it is not a substitute for building and running through the
|
||||
official VCC Plus workflow. Do not silently substitute Homebrew or another compiler.
|
||||
|
||||
## Memory and input qualification
|
||||
|
||||
The planning-time `start_playtest` contract described a fixed **512 KB** isolated
|
||||
machine with a 6809/6309 choice. Recheck build 48's actual advertised schema. If it
|
||||
still cannot select 128 KB, test that memory size through the official app's normal
|
||||
Machine Settings interface in an isolated user-approved session. Its installed
|
||||
user manual lists 128 KB as a supported memory selection. A 512 KB playtest alone
|
||||
does not establish 128 KB compatibility.
|
||||
|
||||
No joystick injection tool was present in the planning-time inventory. Check the
|
||||
actual build-48 connection. Use normal supported app input or Brian's joystick /
|
||||
XRoar testing where MCP cannot supply it. Keyboard events are not evidence that
|
||||
analog sampling, dead zones or both joystick ports work.
|
||||
|
||||
Before desktop pointer/keyboard automation, obtain Brian's current idle-desktop
|
||||
grant. Use only supported isolation and preserve active media/settings. Do not
|
||||
launch another ordinary instance that competes for the same saved state. If a
|
||||
safe isolation path is unavailable, continue independent work and request a
|
||||
specific manual check rather than changing the installed app.
|
||||
|
||||
For XRoar, give Brian a pristine DSK copy, exact machine/RAM/clock/ROM requirements,
|
||||
loading steps, controls, expected results and an evidence checklist. Do not
|
||||
redistribute private ROMs. Separate user-confirmed CoCo 2 results from VCC Plus
|
||||
CoCo 3 compatibility runs. Keep screenshots limited to the guest display.
|
||||
@@ -0,0 +1,339 @@
|
||||
{
|
||||
"license": "GPL-3.0-or-later",
|
||||
"source_revision": "be8769a403e506edb930372f963a9c4c83a0881e",
|
||||
"source": "src/game.vala BLOCK_TABLE",
|
||||
"coordinates": "4 rows top to bottom, columns left to right; # occupied; mask bit 15 is top left",
|
||||
"counterclockwise_state_delta": 1,
|
||||
"clockwise_state_delta": -1,
|
||||
"pieces": [
|
||||
{
|
||||
"type": 0,
|
||||
"name": "L",
|
||||
"color": "red",
|
||||
"rotations": [
|
||||
{
|
||||
"state": 0,
|
||||
"rows": [
|
||||
"..#.",
|
||||
"###.",
|
||||
"....",
|
||||
"...."
|
||||
],
|
||||
"mask_hex": "2E00"
|
||||
},
|
||||
{
|
||||
"state": 1,
|
||||
"rows": [
|
||||
"##..",
|
||||
".#..",
|
||||
".#..",
|
||||
"...."
|
||||
],
|
||||
"mask_hex": "C440"
|
||||
},
|
||||
{
|
||||
"state": 2,
|
||||
"rows": [
|
||||
"....",
|
||||
"###.",
|
||||
"#...",
|
||||
"...."
|
||||
],
|
||||
"mask_hex": "0E80"
|
||||
},
|
||||
{
|
||||
"state": 3,
|
||||
"rows": [
|
||||
".#..",
|
||||
".#..",
|
||||
".##.",
|
||||
"...."
|
||||
],
|
||||
"mask_hex": "4460"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": 1,
|
||||
"name": "J",
|
||||
"color": "green",
|
||||
"rotations": [
|
||||
{
|
||||
"state": 0,
|
||||
"rows": [
|
||||
"#...",
|
||||
"###.",
|
||||
"....",
|
||||
"...."
|
||||
],
|
||||
"mask_hex": "8E00"
|
||||
},
|
||||
{
|
||||
"state": 1,
|
||||
"rows": [
|
||||
".#..",
|
||||
".#..",
|
||||
"##..",
|
||||
"...."
|
||||
],
|
||||
"mask_hex": "44C0"
|
||||
},
|
||||
{
|
||||
"state": 2,
|
||||
"rows": [
|
||||
"....",
|
||||
"###.",
|
||||
"..#.",
|
||||
"...."
|
||||
],
|
||||
"mask_hex": "0E20"
|
||||
},
|
||||
{
|
||||
"state": 3,
|
||||
"rows": [
|
||||
".##.",
|
||||
".#..",
|
||||
".#..",
|
||||
"...."
|
||||
],
|
||||
"mask_hex": "6440"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": 2,
|
||||
"name": "T",
|
||||
"color": "blue",
|
||||
"rotations": [
|
||||
{
|
||||
"state": 0,
|
||||
"rows": [
|
||||
".#..",
|
||||
"###.",
|
||||
"....",
|
||||
"...."
|
||||
],
|
||||
"mask_hex": "4E00"
|
||||
},
|
||||
{
|
||||
"state": 1,
|
||||
"rows": [
|
||||
".#..",
|
||||
"##..",
|
||||
".#..",
|
||||
"...."
|
||||
],
|
||||
"mask_hex": "4C40"
|
||||
},
|
||||
{
|
||||
"state": 2,
|
||||
"rows": [
|
||||
"....",
|
||||
"###.",
|
||||
".#..",
|
||||
"...."
|
||||
],
|
||||
"mask_hex": "0E40"
|
||||
},
|
||||
{
|
||||
"state": 3,
|
||||
"rows": [
|
||||
".#..",
|
||||
".##.",
|
||||
".#..",
|
||||
"...."
|
||||
],
|
||||
"mask_hex": "4640"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": 3,
|
||||
"name": "S",
|
||||
"color": "light gray",
|
||||
"rotations": [
|
||||
{
|
||||
"state": 0,
|
||||
"rows": [
|
||||
"....",
|
||||
".##.",
|
||||
"##..",
|
||||
"...."
|
||||
],
|
||||
"mask_hex": "06C0"
|
||||
},
|
||||
{
|
||||
"state": 1,
|
||||
"rows": [
|
||||
".#..",
|
||||
".##.",
|
||||
"..#.",
|
||||
"...."
|
||||
],
|
||||
"mask_hex": "4620"
|
||||
},
|
||||
{
|
||||
"state": 2,
|
||||
"rows": [
|
||||
"....",
|
||||
".##.",
|
||||
"##..",
|
||||
"...."
|
||||
],
|
||||
"mask_hex": "06C0"
|
||||
},
|
||||
{
|
||||
"state": 3,
|
||||
"rows": [
|
||||
".#..",
|
||||
".##.",
|
||||
"..#.",
|
||||
"...."
|
||||
],
|
||||
"mask_hex": "4620"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": 4,
|
||||
"name": "Z",
|
||||
"color": "yellow",
|
||||
"rotations": [
|
||||
{
|
||||
"state": 0,
|
||||
"rows": [
|
||||
"....",
|
||||
"##..",
|
||||
".##.",
|
||||
"...."
|
||||
],
|
||||
"mask_hex": "0C60"
|
||||
},
|
||||
{
|
||||
"state": 1,
|
||||
"rows": [
|
||||
"..#.",
|
||||
".##.",
|
||||
".#..",
|
||||
"...."
|
||||
],
|
||||
"mask_hex": "2640"
|
||||
},
|
||||
{
|
||||
"state": 2,
|
||||
"rows": [
|
||||
"....",
|
||||
"##..",
|
||||
".##.",
|
||||
"...."
|
||||
],
|
||||
"mask_hex": "0C60"
|
||||
},
|
||||
{
|
||||
"state": 3,
|
||||
"rows": [
|
||||
"..#.",
|
||||
".##.",
|
||||
".#..",
|
||||
"...."
|
||||
],
|
||||
"mask_hex": "2640"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": 5,
|
||||
"name": "I",
|
||||
"color": "purple",
|
||||
"rotations": [
|
||||
{
|
||||
"state": 0,
|
||||
"rows": [
|
||||
"....",
|
||||
"####",
|
||||
"....",
|
||||
"...."
|
||||
],
|
||||
"mask_hex": "0F00"
|
||||
},
|
||||
{
|
||||
"state": 1,
|
||||
"rows": [
|
||||
".#..",
|
||||
".#..",
|
||||
".#..",
|
||||
".#.."
|
||||
],
|
||||
"mask_hex": "4444"
|
||||
},
|
||||
{
|
||||
"state": 2,
|
||||
"rows": [
|
||||
"....",
|
||||
"####",
|
||||
"....",
|
||||
"...."
|
||||
],
|
||||
"mask_hex": "0F00"
|
||||
},
|
||||
{
|
||||
"state": 3,
|
||||
"rows": [
|
||||
".#..",
|
||||
".#..",
|
||||
".#..",
|
||||
".#.."
|
||||
],
|
||||
"mask_hex": "4444"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": 6,
|
||||
"name": "O",
|
||||
"color": "orange",
|
||||
"rotations": [
|
||||
{
|
||||
"state": 0,
|
||||
"rows": [
|
||||
"....",
|
||||
".##.",
|
||||
".##.",
|
||||
"...."
|
||||
],
|
||||
"mask_hex": "0660"
|
||||
},
|
||||
{
|
||||
"state": 1,
|
||||
"rows": [
|
||||
"....",
|
||||
".##.",
|
||||
".##.",
|
||||
"...."
|
||||
],
|
||||
"mask_hex": "0660"
|
||||
},
|
||||
{
|
||||
"state": 2,
|
||||
"rows": [
|
||||
"....",
|
||||
".##.",
|
||||
".##.",
|
||||
"...."
|
||||
],
|
||||
"mask_hex": "0660"
|
||||
},
|
||||
{
|
||||
"state": 3,
|
||||
"rows": [
|
||||
"....",
|
||||
".##.",
|
||||
".##.",
|
||||
"...."
|
||||
],
|
||||
"mask_hex": "0660"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,231 @@
|
||||
{
|
||||
"license": "GPL-3.0-or-later",
|
||||
"source": "tests/test-scoring.vala and documented scoring formula",
|
||||
"cases": [
|
||||
{
|
||||
"rule": "Modern",
|
||||
"difficulty": 0,
|
||||
"prior_lines": 0,
|
||||
"rows_cleared": 0,
|
||||
"includes_bottom": false,
|
||||
"expected_level": 1,
|
||||
"expected_delta": 0
|
||||
},
|
||||
{
|
||||
"rule": "Modern",
|
||||
"difficulty": 0,
|
||||
"prior_lines": 0,
|
||||
"rows_cleared": 0,
|
||||
"includes_bottom": false,
|
||||
"expected_level": 1,
|
||||
"expected_delta": 0
|
||||
},
|
||||
{
|
||||
"rule": "Modern",
|
||||
"difficulty": 0,
|
||||
"prior_lines": 0,
|
||||
"rows_cleared": 1,
|
||||
"includes_bottom": false,
|
||||
"expected_level": 1,
|
||||
"expected_delta": 40
|
||||
},
|
||||
{
|
||||
"rule": "Modern",
|
||||
"difficulty": 0,
|
||||
"prior_lines": 0,
|
||||
"rows_cleared": 1,
|
||||
"includes_bottom": true,
|
||||
"expected_level": 1,
|
||||
"expected_delta": 140
|
||||
},
|
||||
{
|
||||
"rule": "Modern",
|
||||
"difficulty": 0,
|
||||
"prior_lines": 0,
|
||||
"rows_cleared": 2,
|
||||
"includes_bottom": false,
|
||||
"expected_level": 1,
|
||||
"expected_delta": 100
|
||||
},
|
||||
{
|
||||
"rule": "Modern",
|
||||
"difficulty": 0,
|
||||
"prior_lines": 0,
|
||||
"rows_cleared": 2,
|
||||
"includes_bottom": true,
|
||||
"expected_level": 1,
|
||||
"expected_delta": 300
|
||||
},
|
||||
{
|
||||
"rule": "Modern",
|
||||
"difficulty": 0,
|
||||
"prior_lines": 0,
|
||||
"rows_cleared": 3,
|
||||
"includes_bottom": false,
|
||||
"expected_level": 1,
|
||||
"expected_delta": 300
|
||||
},
|
||||
{
|
||||
"rule": "Modern",
|
||||
"difficulty": 0,
|
||||
"prior_lines": 0,
|
||||
"rows_cleared": 3,
|
||||
"includes_bottom": true,
|
||||
"expected_level": 1,
|
||||
"expected_delta": 600
|
||||
},
|
||||
{
|
||||
"rule": "Modern",
|
||||
"difficulty": 0,
|
||||
"prior_lines": 0,
|
||||
"rows_cleared": 4,
|
||||
"includes_bottom": false,
|
||||
"expected_level": 1,
|
||||
"expected_delta": 1200
|
||||
},
|
||||
{
|
||||
"rule": "Modern",
|
||||
"difficulty": 0,
|
||||
"prior_lines": 0,
|
||||
"rows_cleared": 4,
|
||||
"includes_bottom": true,
|
||||
"expected_level": 1,
|
||||
"expected_delta": 1600
|
||||
},
|
||||
{
|
||||
"rule": "Classic",
|
||||
"difficulty": 0,
|
||||
"prior_lines": 0,
|
||||
"rows_cleared": 0,
|
||||
"includes_bottom": false,
|
||||
"expected_level": 1,
|
||||
"expected_delta": 0
|
||||
},
|
||||
{
|
||||
"rule": "Classic",
|
||||
"difficulty": 0,
|
||||
"prior_lines": 0,
|
||||
"rows_cleared": 0,
|
||||
"includes_bottom": false,
|
||||
"expected_level": 1,
|
||||
"expected_delta": 0
|
||||
},
|
||||
{
|
||||
"rule": "Classic",
|
||||
"difficulty": 0,
|
||||
"prior_lines": 0,
|
||||
"rows_cleared": 1,
|
||||
"includes_bottom": false,
|
||||
"expected_level": 1,
|
||||
"expected_delta": 40
|
||||
},
|
||||
{
|
||||
"rule": "Classic",
|
||||
"difficulty": 0,
|
||||
"prior_lines": 0,
|
||||
"rows_cleared": 1,
|
||||
"includes_bottom": true,
|
||||
"expected_level": 1,
|
||||
"expected_delta": 10040
|
||||
},
|
||||
{
|
||||
"rule": "Classic",
|
||||
"difficulty": 0,
|
||||
"prior_lines": 0,
|
||||
"rows_cleared": 2,
|
||||
"includes_bottom": false,
|
||||
"expected_level": 1,
|
||||
"expected_delta": 100
|
||||
},
|
||||
{
|
||||
"rule": "Classic",
|
||||
"difficulty": 0,
|
||||
"prior_lines": 0,
|
||||
"rows_cleared": 2,
|
||||
"includes_bottom": true,
|
||||
"expected_level": 1,
|
||||
"expected_delta": 10100
|
||||
},
|
||||
{
|
||||
"rule": "Classic",
|
||||
"difficulty": 0,
|
||||
"prior_lines": 0,
|
||||
"rows_cleared": 3,
|
||||
"includes_bottom": false,
|
||||
"expected_level": 1,
|
||||
"expected_delta": 300
|
||||
},
|
||||
{
|
||||
"rule": "Classic",
|
||||
"difficulty": 0,
|
||||
"prior_lines": 0,
|
||||
"rows_cleared": 3,
|
||||
"includes_bottom": true,
|
||||
"expected_level": 1,
|
||||
"expected_delta": 10300
|
||||
},
|
||||
{
|
||||
"rule": "Classic",
|
||||
"difficulty": 0,
|
||||
"prior_lines": 0,
|
||||
"rows_cleared": 4,
|
||||
"includes_bottom": false,
|
||||
"expected_level": 1,
|
||||
"expected_delta": 1200
|
||||
},
|
||||
{
|
||||
"rule": "Classic",
|
||||
"difficulty": 0,
|
||||
"prior_lines": 0,
|
||||
"rows_cleared": 4,
|
||||
"includes_bottom": true,
|
||||
"expected_level": 1,
|
||||
"expected_delta": 11200
|
||||
},
|
||||
{
|
||||
"rule": "Modern",
|
||||
"difficulty": 4,
|
||||
"prior_lines": 0,
|
||||
"rows_cleared": 4,
|
||||
"includes_bottom": true,
|
||||
"expected_level": 5,
|
||||
"expected_delta": 8000
|
||||
},
|
||||
{
|
||||
"rule": "Classic",
|
||||
"difficulty": 4,
|
||||
"prior_lines": 0,
|
||||
"rows_cleared": 4,
|
||||
"includes_bottom": true,
|
||||
"expected_level": 5,
|
||||
"expected_delta": 56000
|
||||
},
|
||||
{
|
||||
"rule": "Modern",
|
||||
"difficulty": 0,
|
||||
"prior_lines": 9,
|
||||
"rows_cleared": 1,
|
||||
"includes_bottom": true,
|
||||
"expected_level": 2,
|
||||
"expected_delta": 280
|
||||
},
|
||||
{
|
||||
"rule": "Classic",
|
||||
"difficulty": 0,
|
||||
"prior_lines": 9,
|
||||
"rows_cleared": 1,
|
||||
"includes_bottom": true,
|
||||
"expected_level": 2,
|
||||
"expected_delta": 20080
|
||||
},
|
||||
{
|
||||
"rule": "Classic",
|
||||
"difficulty": -1,
|
||||
"prior_lines": 19,
|
||||
"rows_cleared": 1,
|
||||
"includes_bottom": true,
|
||||
"expected_level": 1,
|
||||
"expected_delta": 10040
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
{
|
||||
"reference_repository": "https://github.com/bkholman/quadrapassel-macos",
|
||||
"revision": "be8769a403e506edb930372f963a9c4c83a0881e",
|
||||
"observed_date": "2026-11-10",
|
||||
"files": [
|
||||
{
|
||||
"path": "src/game.vala",
|
||||
"sha256": "808c78985a8f55ab3e743fe1a203fc3c36e3083e6cb6bfab2eb12a4dc6662b0f"
|
||||
},
|
||||
{
|
||||
"path": "src/game-view.vala",
|
||||
"sha256": "35f268a1b371e6f5a04cbbe23381ba62ff03b160f6b4b4b0ce4eba4f33560539"
|
||||
},
|
||||
{
|
||||
"path": "src/quadrapassel.vala",
|
||||
"sha256": "41ef2d274c89d991ec4c42b04f8f43569007230634e409002143e35a8aa161b8"
|
||||
},
|
||||
{
|
||||
"path": "src/style.css",
|
||||
"sha256": "fb5fdf2a79c1a78beb96b1f9e9e25a9f63cc8ed34b9a50be7c70852c3cc95be4"
|
||||
},
|
||||
{
|
||||
"path": "data/org.gnome.Quadrapassel.gschema.xml",
|
||||
"sha256": "7753382744dd48453017b0042c4dcd48c93a2977a3397ad40b0f448f14d6ac36"
|
||||
},
|
||||
{
|
||||
"path": "tests/test-scoring.vala",
|
||||
"sha256": "522193c211721b018e89f476d94d84009ae576b811423658159dad96c1e16658"
|
||||
},
|
||||
{
|
||||
"path": "tests/test-scoreboard.vala",
|
||||
"sha256": "3e1900c266922d356a6e1540234b6d46cec210b8f1f62e5f3c486dbc3d12a7c0"
|
||||
},
|
||||
{
|
||||
"path": "README.md",
|
||||
"sha256": "a4913a6c75cce398a66ebdee945f42b2b8ecc835bd10b56b3f87ba90b61a421b"
|
||||
},
|
||||
{
|
||||
"path": "COPYING",
|
||||
"sha256": "8ceb4b9ee5adedde47b31e975c1d90c73ad27b6b165a1dcd80c7c545eb65b903"
|
||||
}
|
||||
],
|
||||
"title_reference": {
|
||||
"path": "title-reference.png",
|
||||
"sha256": "1a203874be5394dde09d168432ee4be52acbee4fc51b5cda83d8ccb8144662de",
|
||||
"bytes": 1324502,
|
||||
"usage": "Unmodified image supplied and authorized by Brian for title design reference; not runtime artwork or a CoCo screenshot."
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 1.3 MiB |
Reference in new issue
Block a user