[PR #3557] [MERGED] Add tic-tac-toe and rock-paper-scissors turn games #5992

Closed
opened 2026-10-23 04:05:59 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/3557
Author: @Gunterlie
Created: 7/13/2026
Status: ✅ Merged
Merged: 7/13/2026
Merged by: @SpicyMarinara

Base: staging ← Head: ttt-and-rps


📝 Commits (9)

  • f3cd91b Add tic-tac-toe and rock-paper-scissors
  • 1890765 Fix tic-tac-toe and RPS turn flow
  • c263f1b Add RPS cast clash animation
  • 53abe5e Refine RPS cast reveal timing
  • 2d43ed1 Persist RPS clash result animation
  • 6a26c26 Tighten RPS throw UI
  • f018a12 Center RPS clash icons
  • 21f0482 Merge staging into ttt-and-rps
  • 364f3bf Address RPS review feedback

📊 Changes

35 files changed (+2484 additions, -41 deletions)

View changed files

📝 CHANGELOG.md (+1 -0)
📝 packages/client/src/components/chat/ChatSettingsDrawer.tsx (+10 -0)
📝 packages/client/src/components/chat/ChatSetupWizard.tsx (+10 -0)
📝 packages/client/src/components/chat/ConversationInput.tsx (+19 -0)
📝 packages/client/src/components/chat/ConversationView.tsx (+28 -2)
➕ packages/client/src/components/chat/RockPaperScissorsBoard.tsx (+291 -0)
➕ packages/client/src/components/chat/RockPaperScissorsSetup.tsx (+148 -0)
➕ packages/client/src/components/chat/TicTacToeBoard.tsx (+161 -0)
➕ packages/client/src/components/chat/TicTacToeSetup.tsx (+149 -0)
📝 packages/client/src/hooks/use-generate.ts (+16 -0)
➕ packages/client/src/hooks/use-rock-paper-scissors.ts (+139 -0)
➕ packages/client/src/hooks/use-tic-tac-toe.ts (+132 -0)
📝 packages/client/src/lib/slash-commands.ts (+30 -0)
➕ packages/client/src/stores/rock-paper-scissors-game.store.ts (+36 -0)
➕ packages/client/src/stores/tic-tac-toe-game.store.ts (+36 -0)
📝 packages/client/src/styles/globals.css (+40 -0)
📝 packages/server/src/routes/conversation-calls.routes.ts (+4 -0)
📝 packages/server/src/services/conversation/character-commands.ts (+32 -0)
📝 packages/server/src/services/generation/conversation-command-runtime.ts (+26 -2)
📝 packages/server/src/services/generation/turn-game-command-runtime.ts (+80 -0)

...and 15 more files

📄 Description

Linked issue

No linked issue. Maintainer requested this PR without one.

Why this change

  • Adds playable lightweight turn games that can run inside conversations, giving users structured character-vs-character table interactions beyond freeform chat.

What changed

  • Added shared deterministic turn-game engines, types, tools, and generated registry entries for tic-tac-toe and rock-paper-scissors.
  • Added client board UI, setup UI, hooks, stores, slash commands, and conversation wiring for both games.
  • Added server-side command/runtime wiring so bot turns can execute game tool calls and fall back safely when needed.
  • Updated RPS presentation with throw reveal and clash result animation refinements.
  • Updated CHANGELOG with the new turn-game support.

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Manual verification notes

  • Manual verification needed: start a tic-tac-toe conversation game, complete a player-vs-bot match, and verify legal move handling and terminal state.
  • Manual verification needed: start a rock-paper-scissors conversation game, complete a match, and verify hidden throws, reveal timing, clash animation, and match winner state.
  • Manual verification needed: run pnpm check locally before marking validation complete.
  • DONE ABOVE

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Version/release files updated (only if this PR includes a version bump)

UI evidence (if applicable)

Bildschirmfoto 2026-07-13 um 14 55 08 Bildschirmfoto 2026-07-13 um 13 27 17

Summary by CodeRabbit

  • New Features
    • Added one-on-one Tic-Tac-Toe and Rock-Paper-Scissors games in Conversation mode.
    • Added setup options for selecting opponents, marks, and match length.
    • Added interactive boards with turn tracking, win/draw detection, score history, resignation, and replay options.
    • Added /tictactoe (/ttt) and /rps commands, plus natural-language game launchers.
    • Added per-chat command toggles for both games.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/3557 **Author:** [@Gunterlie](https://github.com/Gunterlie) **Created:** 7/13/2026 **Status:** ✅ Merged **Merged:** 7/13/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `ttt-and-rps` --- ### 📝 Commits (9) - [`f3cd91b`](https://github.com/Pasta-Devs/Marinara-Engine/commit/f3cd91bb2b195cd3e98b7680000b162e0d583b73) Add tic-tac-toe and rock-paper-scissors - [`1890765`](https://github.com/Pasta-Devs/Marinara-Engine/commit/18907650bd09df4d74d683d4f02d2a47972404f9) Fix tic-tac-toe and RPS turn flow - [`c263f1b`](https://github.com/Pasta-Devs/Marinara-Engine/commit/c263f1b796d23ac8918db74bd7359518b98bd255) Add RPS cast clash animation - [`53abe5e`](https://github.com/Pasta-Devs/Marinara-Engine/commit/53abe5ec388e08f60bf9d0150eebb32ec01ad19c) Refine RPS cast reveal timing - [`2d43ed1`](https://github.com/Pasta-Devs/Marinara-Engine/commit/2d43ed19a5751a1c1d03b306bf0a35de12879905) Persist RPS clash result animation - [`6a26c26`](https://github.com/Pasta-Devs/Marinara-Engine/commit/6a26c26389a736c7df13cd3259c7bccb555bb412) Tighten RPS throw UI - [`f018a12`](https://github.com/Pasta-Devs/Marinara-Engine/commit/f018a1243c406ac36245ddfc698ba50d9d54ec24) Center RPS clash icons - [`21f0482`](https://github.com/Pasta-Devs/Marinara-Engine/commit/21f0482182f6f4c8bdff9e006cfe40bfede7d3a9) Merge staging into ttt-and-rps - [`364f3bf`](https://github.com/Pasta-Devs/Marinara-Engine/commit/364f3bf71746841227d9cac8b187609bdfc022a6) Address RPS review feedback ### 📊 Changes **35 files changed** (+2484 additions, -41 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+1 -0) 📝 `packages/client/src/components/chat/ChatSettingsDrawer.tsx` (+10 -0) 📝 `packages/client/src/components/chat/ChatSetupWizard.tsx` (+10 -0) 📝 `packages/client/src/components/chat/ConversationInput.tsx` (+19 -0) 📝 `packages/client/src/components/chat/ConversationView.tsx` (+28 -2) ➕ `packages/client/src/components/chat/RockPaperScissorsBoard.tsx` (+291 -0) ➕ `packages/client/src/components/chat/RockPaperScissorsSetup.tsx` (+148 -0) ➕ `packages/client/src/components/chat/TicTacToeBoard.tsx` (+161 -0) ➕ `packages/client/src/components/chat/TicTacToeSetup.tsx` (+149 -0) 📝 `packages/client/src/hooks/use-generate.ts` (+16 -0) ➕ `packages/client/src/hooks/use-rock-paper-scissors.ts` (+139 -0) ➕ `packages/client/src/hooks/use-tic-tac-toe.ts` (+132 -0) 📝 `packages/client/src/lib/slash-commands.ts` (+30 -0) ➕ `packages/client/src/stores/rock-paper-scissors-game.store.ts` (+36 -0) ➕ `packages/client/src/stores/tic-tac-toe-game.store.ts` (+36 -0) 📝 `packages/client/src/styles/globals.css` (+40 -0) 📝 `packages/server/src/routes/conversation-calls.routes.ts` (+4 -0) 📝 `packages/server/src/services/conversation/character-commands.ts` (+32 -0) 📝 `packages/server/src/services/generation/conversation-command-runtime.ts` (+26 -2) 📝 `packages/server/src/services/generation/turn-game-command-runtime.ts` (+80 -0) _...and 15 more files_ </details> ### 📄 Description ## Linked issue No linked issue. Maintainer requested this PR without one. ## Why this change - Adds playable lightweight turn games that can run inside conversations, giving users structured character-vs-character table interactions beyond freeform chat. ## What changed - Added shared deterministic turn-game engines, types, tools, and generated registry entries for tic-tac-toe and rock-paper-scissors. - Added client board UI, setup UI, hooks, stores, slash commands, and conversation wiring for both games. - Added server-side command/runtime wiring so bot turns can execute game tool calls and fall back safely when needed. - Updated RPS presentation with throw reveal and clash result animation refinements. - Updated CHANGELOG with the new turn-game support. ## Validation - [x] `pnpm check` passes locally - [x] Container (Docker / Podman) built and ran without issue - [x] Ran the app, clicked through the changes manually - [x] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [x] Above manual verification completed (describe below) - [x] Read and followed `CONTRIBUTING.md` ### Manual verification notes - Manual verification needed: start a tic-tac-toe conversation game, complete a player-vs-bot match, and verify legal move handling and terminal state. - Manual verification needed: start a rock-paper-scissors conversation game, complete a match, and verify hidden throws, reveal timing, clash animation, and match winner state. - Manual verification needed: run `pnpm check` locally before marking validation complete. - [x] DONE ABOVE ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Version/release files updated (only if this PR includes a version bump) ## UI evidence (if applicable) <img width="1070" height="308" alt="Bildschirmfoto 2026-07-13 um 14 55 08" src="https://github.com/user-attachments/assets/64942b12-8e56-4e82-b389-4bac8bc98587" /> <img width="1053" height="458" alt="Bildschirmfoto 2026-07-13 um 13 27 17" src="https://github.com/user-attachments/assets/1bd99257-cf09-45e9-81a5-0e2341c31b9c" /> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added one-on-one Tic-Tac-Toe and Rock-Paper-Scissors games in Conversation mode. * Added setup options for selecting opponents, marks, and match length. * Added interactive boards with turn tracking, win/draw detection, score history, resignation, and replay options. * Added `/tictactoe` (`/ttt`) and `/rps` commands, plus natural-language game launchers. * Added per-chat command toggles for both games. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-23 04:05:59 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#5992
No description provided.