Skip to content

Implement game ending mechanism#8

Merged
Gawor270 merged 2 commits intomainfrom
fce-2104
Oct 23, 2025
Merged

Implement game ending mechanism#8
Gawor270 merged 2 commits intomainfrom
fce-2104

Conversation

@Gawor270
Copy link
Member

No description provided.

@linear
Copy link

linear bot commented Oct 22, 2025

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR implements a mechanism to end the game when players correctly solve riddles. The implementation uses ElevenLabs' client tool system to trigger game termination after a correct answer is provided.

Key Changes:

  • Added client tool registration for game-ending events
  • Implemented room tracking to prevent duplicate game-ending calls
  • Created client tool instructions for when to trigger game ending

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
elevenlabs-session.ts Added game-ending tool registration, client tool handler, and room tracking logic
client-tool-instructions.md Created instructions for the AI agent on when to trigger the game-ending tool
config.ts Exported the client tool instructions constant

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@Gawor270 Gawor270 merged commit d172f77 into main Oct 23, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants