Plans

Chess

v2
By MEE6
Two-player chess on one card, moves picked from menus

Prompt

Build chess between two members as a /chess command with subcommands, each game being one Components V2 card updated in place after every move. /chess play challenges someone. The card is a container: a heading with both players, the board as one full-width picture (a gallery, not a thumbnail) composed from a set of twelve piece sprites you make with the image model, then whose turn it is, a check warning, the pieces each side has taken, the last move and the recent move list, then a two-step move input: a select menu of the pieces of the side to move that have at least one move, and once one is picked the card is rewritten with a menu of that piece's squares, each marked with what it takes and whether it gives check, plus a Back button; a Resign button is always there. Only the player to move can use the menus; others get a private explanation. Keep /chess move from one square to another in algebraic notation like e2 to e4 as a typed alternative, with an optional promotion piece. Pieces move and capture as in chess without castling or en passant, a pawn reaching the last rank becomes the piece picked (a queen by default), capturing the king wins, and /chess resign gives up. A setting chooses between rewriting one card and posting a new card after every move.

What else does it do?

A two-player chess game on one card that updates after every move. Challenge someone with /chess play @opponent: the card shows both players, the board as one large picture with coordinates on all sides, whose turn it is, a warning when a king is in check, the pieces each side has taken, the last move and the move list. To move, pick one of your pieces in the menu under the board (only pieces that can move are listed), then pick its square in the second menu, which marks captures and checks; Back returns to the pieces, and only the player to move can use them. Typing /chess move e2 e4 still works, and /chess resign or the Resign button gives up. A pawn reaching the last rank becomes the piece you pick (a queen by default), and capturing the king wins the game.

Commands it adds

  • /chess play
    Challenge someone to a chess game
  • /chess move
    Make a chess move
  • /chess resign
    Resign from your current chess game

Reacts to

select
🎮 Members play with buttons

Made by MEE6. Remix it to get a copy of your own and change anything you like.

Sandbox · nothing here touches your serverv2
Test server
Text channels
Voice channels
Testing as
#general
Youused/chess play
MEE6
MEE6AppToday at 06:19 AM

♟️ Chess

⚪ @You vs ⚫ @Jordan

Game over

👑 @You took the king and wins! White has taken ♟ · Black has taken —

Last move: ♕ f7-e8, took ♚ King Moves: 1. e2-e4 e7-e5 2. f1-c4 b8-c6 3. d1-h5 g8-f6 4. h5-f7 a7-a6 5. f7-e8

You picked e2
You picked e4
Jordan picked from a menu.
Jordan picked from a menu.
Jordan picked from a menu.
You picked g1
You picked f1
You picked c4
You picked d1
You picked h5
Jordan picked from a menu.
Jordan picked from a menu.
You picked h5
You picked f7
Jordan picked from a menu.
Jordan picked from a menu.
You picked f7
You picked e8
Runor type below