Skip to content

Add cursed mode to Connect 4#111

Merged
BagToad merged 1 commit into
mainfrom
bagtoad/connect4-cursed-mode
Jun 14, 2026
Merged

Add cursed mode to Connect 4#111
BagToad merged 1 commit into
mainfrom
bagtoad/connect4-cursed-mode

Conversation

@BagToad

@BagToad BagToad commented Jun 14, 2026

Copy link
Copy Markdown
Owner

Adds an optional mode to /connect4.

Adds an optional `mode` to /connect4. normal plays as before; cursed swaps the piece emoji for 🫃🫄.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings June 14, 2026 22:59
@BagToad BagToad added the deploy-dev Request a deployment to the dev bot label Jun 14, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 adds a new optional mode parameter to the /connect4 slash command to support an alternate (“cursed”) piece theme, and updates Connect 4 rendering to use a theme resolver so the chosen mode affects board/embeds consistently.

Changes:

  • Adds a mode option to the /connect4 command with “Normal” and “Cursed” choices.
  • Introduces per-mode theming (piece emoji) and routes all embed/board rendering through the selected theme with a safe fallback to normal.
  • Adds tests to verify cursed-mode rendering and default-mode fallback behavior.
Show a summary per file
File Description
internal/commands/modules/fun/module.go Adds the /connect4 mode command option and choice list.
internal/commands/modules/fun/connect4.go Stores mode on the game, resolves a theme, and uses themed emojis across embeds/board/win reasons.
internal/commands/modules/fun/connect4_test.go Adds coverage for cursed rendering and default fallback behavior.

Copilot's findings

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 3/3 changed files
  • Comments generated: 1

Comment on lines 74 to +76
Player1 string // challenger (🔴)
Player2 string // challenged (🟡)
Mode string // c4ModeNormal or c4ModeCursed
@github-actions github-actions Bot removed the deploy-dev Request a deployment to the dev bot label Jun 14, 2026
@BagToad BagToad merged commit 0e55c95 into main Jun 14, 2026
9 checks passed
@BagToad BagToad deleted the bagtoad/connect4-cursed-mode branch June 14, 2026 23:10
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.

2 participants