Repository navigation
Conversation
Contributor
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
The declared Node compatibility includes versions unsupported by the locked test and lint tooling.
Review effort: Balanced
Findings: 1
Open (1)
What changed in this PR
Adds a deterministic, framework-independent Tetris engine and CLEF SystemOne decision contract.
Changes:
- Implements seeded seven-bag gameplay, placement enumeration, hold, scoring, and metrics.
- Adds request/response mapping with stale-choice rejection.
- Adds TypeScript tooling and focused tests.
| File | Description |
|---|---|
ui/tsconfig.json |
Configures strict TypeScript checks. |
ui/src/game/types.ts |
Defines game state and placement types. |
ui/src/game/tetrominoes.ts |
Defines normalized tetromino orientations. |
ui/src/game/random.ts |
Implements seeded seven-bag generation. |
ui/src/game/index.ts |
Exports the game API. |
ui/src/game/engine.ts |
Implements game transitions and placements. |
ui/src/game/board.ts |
Implements board physics and metrics. |
ui/src/game/__tests__/random.test.ts |
Tests bag composition and seeds. |
ui/src/game/__tests__/engine.test.ts |
Tests transitions, scoring, and determinism. |
ui/src/game/__tests__/board.test.ts |
Tests board physics and metrics. |
ui/src/api/systemone.ts |
Maps states and decisions to SystemOne. |
ui/src/api/index.ts |
Exports the API contract. |
ui/src/api/__tests__/systemone.test.ts |
Tests request and response handling. |
ui/README.md |
Documents engine behavior and commands. |
ui/package.json |
Defines scripts, dependencies, and Node support. |
ui/package-lock.json |
Locks JavaScript dependencies. |
ui/eslint.config.js |
Configures JavaScript and TypeScript linting. |
ui/.gitignore |
Ignores generated and installed files. |
Files not reviewed (1)
- serving/clef-flash/ui/package-lock.json: Generated file
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
This was referenced Oct 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
Testing
npm cinpm run typechecknpm test(23 passed)npm run lintnpm run buildnpm audit --audit-level=high(0 vulnerabilities)Notes
Closes #71
Related to #69