Skip to content

Add time to opponent feature#1692

Open
macaquedev wants to merge 2 commits intowoogles-io:masterfrom
macaquedev:add-time-to-opponent
Open

Add time to opponent feature#1692
macaquedev wants to merge 2 commits intowoogles-io:masterfrom
macaquedev:add-time-to-opponent

Conversation

@macaquedev
Copy link

@macaquedev macaquedev commented Jan 28, 2026

Summary

  • Add a "+" button next to the opponent's timer that adds 15 seconds to their clock
  • Available only in casual real-time games (not tournaments, leagues, correspondence, or vs bots)
  • Backend: Implement ADD_TIME meta event handler and AddTimeToPlayer method
  • Frontend: Add button UI, handle meta event, show toast notifications

Fixes #751

Test plan

  • Start a casual real-time game between two human players
  • Verify "+" button appears next to opponent's timer (not your own)
  • Click "+" and verify opponent gains 15 seconds
  • Verify toast notification appears for both players
  • Verify button does NOT appear in tournament/league/correspondence games
  • Verify button does NOT appear in bot games

🤖 Generated with Claude Code

macaquedev and others added 2 commits January 28, 2026 01:32
Add a "+" button next to the opponent's timer that adds 15 seconds to
their clock. This is a unilateral action available only in casual
real-time games (not tournaments, leagues, correspondence, or vs bots).

Backend: Implement ADD_TIME meta event handler and AddTimeToPlayer method
Frontend: Add button UI, handle meta event, show toast notifications

Fixes woogles-io#751

Co-Authored-By: Claude Opus 4.5 <[email protected]>
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.

Add time button for directors and players to add time to their opponents' clocks

1 participant