Commit Graph

149 Commits

Author SHA1 Message Date
hypercross 91c993b223 refactor: clean up boop implementation structure 2026-04-07 15:43:17 +08:00
hypercross 10393f45b6 refactor: add rng & seeding 2026-04-07 15:32:06 +08:00
hypercross 6b736ab083 fix: more tests 2026-04-07 15:13:10 +08:00
hypercross beb8088009 refactor: api change to add prompt text 2026-04-07 15:03:15 +08:00
hypercross b3cea805b0 feat: onitama tests 2026-04-07 14:53:50 +08:00
hypercross 4cb9f2dbd6 feat: onitama rules & cards 2026-04-07 14:40:44 +08:00
hypercross a84aa2426b refactor: add samples to export & use inline-schema's esbuild plugin 2026-04-07 11:37:05 +08:00
hypercross 83658c9898 chore: remove unused api 2026-04-07 11:26:43 +08:00
hypercross 6352977791 chore: add more tests 2026-04-06 16:11:26 +08:00
hypercross 6cfb3b6df8 refactor: PromptDef 2026-04-06 15:54:02 +08:00
hypercross fe3bef0a01 chore: update api / test 2026-04-06 15:02:31 +08:00
hypercross 49109963bc refactor: hide api 2026-04-06 12:05:11 +08:00
hypercross b3ff589aa5 refactor: api changes 2026-04-06 11:07:11 +08:00
hypercross e673f60657 refactor: update api 2026-04-06 10:39:10 +08:00
hypercross 129c58fb08 refactor: update samples 2026-04-06 10:18:55 +08:00
hypercross 70b1ac1e43 refactor: change how we define command 2026-04-06 10:06:04 +08:00
hypercross 2d5200bdb7 refactor: renaming api 2026-04-06 09:48:20 +08:00
hypercross c4290841e5 refactor: clean up exports 2026-04-05 10:41:42 +08:00
hypercross cc7f302677 refactor: make game host return the setup promise 2026-04-04 23:58:12 +08:00
hypercross dd73deabb0 refactor: just throw Error if fail 2026-04-04 23:42:49 +08:00
hypercross bd2988902a fix: boop 2026-04-04 22:29:25 +08:00
hypercross e58690c9c6 fix: impl 2026-04-04 22:11:02 +08:00
hypercross b90a4bba52 refactor: massive way of writing fix 2026-04-04 21:53:37 +08:00
hypercross 8f86b88c88 refactor: update sample 2026-04-04 21:38:16 +08:00
hypercross 9e2947a8d6 refactor: prompt validation 2026-04-04 21:38:07 +08:00
hypercross af9254603a refactor: don't use this 2026-04-04 20:57:58 +08:00
hypercross 6e1c42015f refactor: api surface change 2026-04-04 20:50:17 +08:00
hypercross 467a56bd84 fix: fix tic tac toe tests 2026-04-04 18:42:21 +08:00
hypercross de7006ef19 refactor: api change 2026-04-04 18:33:44 +08:00
hypercross 97ef1df4fb refactor: moveRegion & add csv loader 2026-04-04 17:51:26 +08:00
hypercross 80f0796f3c refactor: async boop 2026-04-04 15:51:27 +08:00
hypercross 775bb00bed refactor: addInterrupt is now on GameHost 2026-04-04 15:37:22 +08:00
hypercross a0dd5c94f5 feat: produceAsync 2026-04-04 15:08:34 +08:00
hypercross 25f9992be6 refactor: remove host options 2026-04-04 14:06:27 +08:00
hypercross 22d40fdc50 refactor: remove setup command from host creation 2026-04-04 12:48:51 +08:00
hypercross ae98e0735a chore: add GameModule type 2026-04-04 11:06:41 +08:00
hypercross be4ff7ae08 feat: add currentPlayer to prompt 2026-04-04 11:01:25 +08:00
hypercross 6c8d6e0790 refactor: add promptEnd event 2026-04-04 01:00:46 +08:00
hypercross 697d23e932 feat: add game host 2026-04-04 00:55:09 +08:00
hypercross 50c146964d chore: update tests and imports 2026-04-03 17:56:35 +08:00
hypercross 65a3d682b6 refactor: Part[] -> Record<string, Part> 2026-04-03 17:36:25 +08:00
hypercross 118007168a fix: export command result as well 2026-04-03 15:12:51 +08:00
hypercross 4bf6eb2f6b refactor: add some part management utilities 2026-04-03 15:00:25 +08:00
hypercross 86714e7837 refactor: entity -> MutableSignal 2026-04-03 14:19:44 +08:00
hypercross b1b059de8c refactor: improved PromptEvent handling 2026-04-03 14:10:42 +08:00
hypercross 8b2a8888d3 refactor: use part map for tictactoe 2026-04-03 13:09:40 +08:00
hypercross eb0ebf5411 refactor: transition to non child entity format 2026-04-03 12:46:50 +08:00
hyper b71ba12454 feat: add new functions 2026-04-02 21:58:11 +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 c886e904a8 refactor: change PromptEvent reject/resolve to cancel/tryCommit 2026-04-02 19:08:14 +08:00
hypercross d4d428b577 refactor: improved line checks 2026-04-02 17:45:03 +08:00
hypercross 975d363769 refactor: fix boop placement 2026-04-02 17:36:42 +08:00
hypercross ecb09c01a1 feat: add boop sample 2026-04-02 16:53:17 +08:00
hypercross 06c801e6ae refactor: improve tic tac toe with region entity 2026-04-02 16:52:58 +08:00
hypercross b1a6619ae3 refactor: add region entity 2026-04-02 16:32:26 +08:00
hypercross 2581a8e0e6 refactor: add src alias to @/ 2026-04-02 16:03:44 +08:00
hypercross 4f49599527 fix: fix imports 2026-04-02 15:36:32 +08:00
hypercross bd9569992b fix: fix tic tac toe test 2026-04-02 15:25:17 +08:00
hypercross 0948e5a742 fix: fix game/region tests. 2026-04-02 15:16:30 +08:00
hypercross e945d28fc3 refactor: even tighter api 2026-04-02 14:46:34 +08:00
hypercross b2b35c3a99 refactor: reduce api surface 2026-04-02 14:11:35 +08:00
hypercross e3bc63b088 refactor: make sides/side optional 2026-04-02 13:58:52 +08:00
hypercross e78caf481d refactor: use mutative for entity signals 2026-04-02 13:56:44 +08:00
hypercross 74f56b9da4 refactor: state signal 2026-04-02 12:53:49 +08:00
hypercross 004d49c36f refactor: update api 2026-04-02 12:48:29 +08:00
hypercross 846badc081 tests: game and tic tac toe 2026-04-02 11:31:57 +08:00
hypercross 1cb7fa05ec refactor: rewrite game & tic tac toe 2026-04-02 11:06:29 +08:00
hypercross 5042d6ebc7 refactor: allow run command to return a typed result 2026-04-02 10:38:31 +08:00
hypercross d4a8668b54 refactor: remove context. add game. 2026-04-02 10:26:42 +08:00
hypercross 9c7baa29ef refactor: add a new async queue 2026-04-02 10:04:22 +08:00
hypercross 40788d445d refactor: replace rule.ts with a command runner based solution 2026-04-02 09:33:03 +08:00
hypercross bcb31da773 refactor: move runner context to handler's this 2026-04-02 09:05:47 +08:00
hypercross 3bc35df63c feat: add command runner and registry 2026-04-02 08:58:11 +08:00
hypercross 281cbf845d refactor: change CommandSchema's options/flags to be Records 2026-04-02 08:29:40 +08:00
hypercross f1b1741db8 refactor: move command.ts to command/index.ts 2026-04-02 08:19:14 +08:00
hypercross e06dc8ecba refactor: improve rule handling 2026-04-02 00:44:29 +08:00
hypercross ff9d9bd9a1 refactor: fix command parsing 2026-04-02 00:14:43 +08:00
hypercross a8ff79e4e5 fix: fix tic-tac-toe test 2026-04-02 00:01:45 +08:00
hypercross b33c901c11 feat: add tic-tac-toe with rule invoking rule 2026-04-01 23:58:07 +08:00
hypercross dbd2a25185 refactor: fix reactivity 2026-04-01 22:57:33 +08:00
hypercross 4761806a02 refactor: break up command.ts 2026-04-01 22:37:15 +08:00
hypercross ad0d349090 chore: tests for rule 2026-04-01 22:31:07 +08:00
hypercross 170217db30 feat: rule dispatch 2026-04-01 22:20:38 +08:00
hypercross dbe567ea1d refactor: various improvements 2026-04-01 21:44:20 +08:00
hypercross 033fb6c894 refactor: command syntax improvement 2026-04-01 21:18:58 +08:00
hypercross d1ea04c442 fix: command parsing 2026-04-01 21:12:34 +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
hypercross 6740584fc8 refactor: mass refactoring 2026-04-01 13:36:16 +08:00
hyper d0d051f547 feat: add rule engine & tic tac toe test 2026-03-31 18:20:18 +08:00
hyper 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