Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create Chess Game #2920

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Create Chess Game #2920

wants to merge 3 commits into from

Conversation

KrishOnGH
Copy link

@KrishOnGH KrishOnGH commented Feb 24, 2025

Your checklist for this pull request

Author name

Krish Arora

Author:

Krish Arora

About your game

Link
It simulates a normal chess game with two players starting off with a king, queen, two knights, two bishops, two rooks, and eight pawns. The game has automatic check and checkmate detection, along with enforcing chess rules which allow you to only move specific pieces the way they are allowed to be moved, only move in check if your move avoids check. However, the game does not yet support en passant moves, promotion, or castling, but it does allow pawns to move 2 up if they are on the starting row.

How do you play your game?

The player whose turn it is (starts with white, and then iterates swapping between the two until a draw or checkmate is reached) uses WASD to move their selector, and presses I to select or unselect a specific piece, once selected they can use WASD to choose where to place it, and L to complete the action. (Note: if the move is not chess legal, you will not be able to complete it, for example if you are in check and your move does not avoid check, or if you are trying to move a pawn 3 tiles up)

Code

Check off the items that are true.

  • The game was made using the Sprig editor.
  • The game is placed in the in the /games directory.
  • The code is significantly different from all other games in the Sprig gallery (except for games labeled "demo").
  • The game runs without errors.
  • The name of the file/game contains only alphanumeric characters, -s, or _s.
  • The game name is not the same as the others from gallery

Image (If an image is used)

Thanks for your PR!
(You're Welcome!)

Copy link

vercel bot commented Feb 24, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
sprig ❌ Failed (Inspect) Feb 24, 2025 2:27am

Copy link

You can play your game at Play Here!

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.

1 participant