{"_id":"@aeon-games/chess-variants","_rev":"2-f2d359661b2bfcc2085300660c4862b9","name":"@aeon-games/chess-variants","dist-tags":{"latest":"5.0.0"},"versions":{"5.0.0":{"name":"@aeon-games/chess-variants","version":"5.0.0","_id":"@aeon-games/chess-variants@5.0.0","maintainers":[{"name":"buley","email":"buley@outlook.com"}],"dist":{"shasum":"67c0a1875f42bb25b57f7b14659e0a673ed1f8b7","tarball":"https://registry.npmjs.org/@aeon-games/chess-variants/-/chess-variants-5.0.0.tgz","fileCount":9,"integrity":"sha512-pPPKlLSukhUAiAazWGZxcuoJaR/JrYu7EnmWNXntprXJ9mKFbqbHtmGVX4XvTcQlozwDwVBs/rg6z13sp6VWJQ==","signatures":[{"sig":"MEYCIQDDw5O4zL9wSNMfSXJiVh+SGQhQepqL7I1BZjzMCzgCqAIhALNMTUpErPqKeO09wBcFi3DNHixRcu8/H9VB2iHZ1CdS","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":81229},"main":"src/index.tsx","gitHead":"ae54b0df6ac98ed86b037accafa16cf218dda541","scripts":{"forge:deploy":"bun ../../../apps/aeon-forge/src/cli/cli.tsx deploy . --oneshot"},"_npmUser":{"name":"buley","email":"buley@outlook.com"},"_npmVersion":"11.8.0","description":"Chess Variants","directories":{},"_nodeVersion":"25.5.0","dependencies":{"react":"^19.0.0","@aeon-games/engine":"workspace:*"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/chess-variants_5.0.0_1773156442031_0.7017939902738206","host":"s3://npm-registry-packages-npm-production"},"deprecated":"This package is deprecated and no longer supported. Do not use."}},"time":{"created":"2026-03-10T15:27:21.967Z","modified":"2026-03-27T20:35:56.339Z","5.0.0":"2026-03-10T15:27:22.178Z"},"description":"Chess Variants","maintainers":[{"name":"buley","email":"buley@outlook.com"}],"readme":"# Chess Variants (4-Player Hex Chess)\n\n## Purpose\nA hex-based chess variant designed for 4 players, featuring a unique radial board and multi-directional movement rules. This package implements the game logic, AI movement strategies, and a React-based user interface for the AFFECTIVELY games platform.\n\n## Key Features\n- **4-Player Multiplayer**: Supports up to 4 players (Human vs. AI or Human vs. Human).\n- **Hexagonal Board**: Uses a radius-5 hexagonal grid with custom coordinate systems.\n- **Custom Movement Rules**:\n  - **Rooks**: Slide along 6 straight hex directions.\n  - **Bishops**: Slide along 6 diagonal hex directions.\n  - **Kings**: Move 1 step in any of the 12 directions (straight or diagonal).\n  - **Pawns**: Move toward the center (0,0) and capture sideways.\n- **AI Integration**: Built-in AI movement selection with scoring based on captures and positional value.\n- **Real-time Game State**: Tracks eliminations, king captures, and win conditions.\n\n## Key Files\n- `src/index.tsx`: Main game component implementing the 4-player hex chess logic, AI, and UI.\n\n## Architecture\nThe game is built using the `@aeon-games/engine` framework, utilizing its `HexBoard`, `WagerPanel`, and `AgentSpawner` components. It follows a functional React pattern with state management for the board, current player, and move history.\n\n## Movement Logic\n- **Straight Directions**: `(1,0), (1,-1), (0,-1), (-1,0), (-1,1), (0,1)`\n- **Diagonal Directions**: `(2,-1), (1,1), (-1,2), (-2,1), (-1,-1), (1,-2)`\n\n## Usage\nThe game is intended to be loaded within the AFFECTIVELY games runtime.\n\n```typescript\nimport ChessVariantsGame from '@aeon-games/chess-variants';\n\n// ... in game runtime\n<ChessVariantsGame\n  runtime={runtime}\n  roomId={roomId}\n  gameContext={gameContext}\n/>\n```\n","readmeFilename":"README.md"}