Commit Graph
60 Commits
Author SHA1 Message Date
hyper fb3c98b1ef refactor: update GameHost to use generic state and result types
Decouple GameHost from GameState and GameResult types by introducing
generic parameters for TState and TResult. This improves type safety
and flexibility when defining GameModules.
2026-04-23 16:03:49 +08:00
hyper 5c1ef232fd export GameState and GameResult types from game-host 2026-04-23 15:36:25 +08:00
hyper f5df1c26dc refactor: remove registry from Boop and Regicide index files 2026-04-23 15:29:14 +08:00
hyper 2014162819 refactor: update Regicide commands and improve code style 2026-04-23 15:28:45 +08:00
hyper d932c2f5e2 refactor: remove Boop command registry and simplify exports
Remove the command registry from the Boop sample and export command
functions directly. This simplifies the command structure and replaces
dynamic imports with static imports.
2026-04-23 15:21:13 +08:00
hyper 1bd49c32e0 refactor: format Onitama commands and Tic-Tac-Toe imports 2026-04-23 15:18:37 +08:00
hyper b009189b9a Extract PromptContext from GameHost into separate module
The prompt system is now managed by a dedicated PromptContext instead of
being embedded in GameHost. This simplifies the API by removing
individual prompt signals and consolidating prompt logic into a reusable
context that can be shared between components.
2026-04-23 15:09:06 +08:00
hyper 59b99d2042 Fix command prompt to properly return promise results
Add comprehensive tests for createPromptContext covering prompt,
tryCommit, cancel, and handleCall middleware.
2026-04-23 14:44:24 +08:00
hyper 32408c3cee feat: add command prompt context with middleware support 2026-04-23 14:22:17 +08:00
hyper a82b6b0685 docs: fleshed out agents.md 2026-04-19 18:36:10 +08:00
hyper 3aa92b2d2a refactor: rename that to desert triggers 2026-04-18 15:28:47 +08:00
hyper fa92b5d865 refactor: reorganize trigger code 2026-04-18 15:08:50 +08:00
hyper e46822b45b refactor: avoid globalThis 2026-04-18 14:40:56 +08:00
hyper 03add589c6 refactor: use stacks for the hp of summons 2026-04-18 14:30:20 +08:00
hyper f7b59a1790 refactor: bunch of reorg updates 2026-04-16 19:27:25 +08:00
hyper b28ec823a7 refactor: reorganize csv data 2026-04-16 19:14:58 +08:00
hyper b18e232cc8 chore: todos 2026-04-16 19:14:46 +08:00
hyper 51da1e5308 fix: update tests 2026-04-16 18:33:13 +08:00
hyper 8c783da857 fix: align data with design 2026-04-16 17:52:20 +08:00
hyper a010a0bca6 refactor: update doc and .d.ts 2026-04-16 17:14:13 +08:00
hyper ef9557cba7 refactor: minimize repetitions 2026-04-13 21:18:06 +08:00
hyper 1e5e4e9f7e fix: fix map gen again 2026-04-13 20:06:23 +08:00
hyper c30db2f8a4 refactor: update encounter table design 2026-04-13 19:29:53 +08:00
hyper 5d1dc487f8 refactor: map gen? 2026-04-13 19:06:37 +08:00
hyper 4bfc6db60f chore: add data import test 2026-04-12 21:04:38 +08:00
hyper 238254c4e5 chore: add tests for shape stuff 2026-04-12 20:51:19 +08:00
hyper 6281044f14 feat: add som shape parsing 2026-04-12 20:44:35 +08:00
hyper 18eae59891 feat: add hero fighter item pool 1 2026-04-12 20:34:08 +08:00
hyper 6dc85b443e feat: shape parsing 2026-04-12 20:26:46 +08:00
hyper d5f65fa6cd chore: export TicTactToePart 2026-04-12 16:28:50 +08:00
hyper eb4716200a refactor: some thoughts on design 2026-04-11 18:03:57 +08:00
hyper 547d378d50 feat: fleshing out the design 2026-04-11 17:07:59 +08:00
hyper 330aa43d7b feat: ideas for slay-the-backpack 2026-04-10 20:48:50 +08:00
hyper cf3123b3f1 refactor: shorter skill 2026-04-10 15:56:57 +08:00
hyper 5849c0a343 feat: update skill def 2026-04-10 13:45:10 +08:00
hyper 617057988d feat: regicide full 2026-04-10 13:43:12 +08:00
hyper 28e548d3de feat: regicide code 2026-04-10 13:24:29 +08:00
hyper 8b271448d2 feat: regicide rule 2026-04-10 13:15:03 +08:00
hyper b8e4f73126 refactor: rewritten skill 2026-04-10 13:14:43 +08:00
hyper 9d6e7a75f8 refactor: add export for createPart 2026-04-10 12:34:47 +08:00
hyper 3d5a484e52 feat: skill doc for game module 2026-04-10 12:34:34 +08:00
hyper b71ba12454 feat: add new functions 2026-04-02 21:58:11 +08:00
hyper 11d6cbd030 chore: switch to npm link based dependencies 2026-04-02 21:07:43 +08:00
hyper ab1f27e662 chore: add prepare script 2026-04-02 20:11:55 +08:00
hyper 39e1f52f71 refactor: allow the player to choose kitten to graduate in 8-piece-rule 2026-04-02 19:56:55 +08:00
hyper 793c7d834b refactor: update boop implementation 2026-04-02 19:46:49 +08:00
hyper 15122defcc refactor: update usage pattern for tic tac toe and boop 2026-04-02 19:32:07 +08:00
hyper 5f812a3478 fix: fix tests for PromptEvent refactor 2026-04-02 19:27:36 +08:00
hyper c886e904a8 refactor: change PromptEvent reject/resolve to cancel/tryCommit 2026-04-02 19:08:14 +08:00
hyper a766050773 feat: upgrade inline-schema 2026-04-02 18:39:59 +08:00
hyper c315e0643b feat: add inline-schema for command schema 2026-04-01 19:04:09 +08:00
hyper 95015b090c feat: add command schema 2026-04-01 18:54:02 +08:00
hyper 00bed92d46 fix: change the way region align works 2026-04-01 18:33:09 +08:00
hyper 729f15c2bf fix: fix region align & shuffle 2026-04-01 17:48:40 +08:00
hyper 284251ddf2 fix: command parsing quotes 2026-04-01 17:40:28 +08:00
hyper 8d778f9867 fix: rng impl 2026-04-01 17:37:24 +08:00
hyper df9698b67b feat: rng & commands impl & tests 2026-04-01 17:34:21 +08:00
hyper ea337acacb chore: clean up 2026-04-01 17:08:08 +08:00
hyper d0d051f547 feat: add rule engine & tic tac toe test 2026-03-31 18:20:18 +08:00
hyperandQwen-Coder d27948fbfc Initial commit: boardgame-core with build fixes
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-03-31 18:01:57 +08:00