https://github.com/scriptraccoon/chessvelte
multi-player chess game made with SvelteKit and socket.io
https://github.com/scriptraccoon/chessvelte
Last synced: about 2 months ago
JSON representation
multi-player chess game made with SvelteKit and socket.io
- Host: GitHub
- URL: https://github.com/scriptraccoon/chessvelte
- Owner: ScriptRaccoon
- License: mit
- Created: 2023-12-11T22:44:27.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-10T16:03:15.000Z (about 2 years ago)
- Last Synced: 2025-03-03T03:17:25.504Z (over 1 year ago)
- Language: TypeScript
- Homepage: https://chessvelte.netlify.app
- Size: 815 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Chessvelte
This is a multi-player chess game made with SvelteKit.

On the home page users can create a new game or join an existing game. The other player can simply join by using the game link. All the basic rules of chess have been implemented (except for move repetition). Players can chat with each other, draw or resign the game, and also adjust the appearance of the board. The previous move is highlighted and the captured pieces are displayed.
There is no login, users are only required to enter their name. When a player leaves the game or disconnects and comes back later, they are recognized and reconnected using a client ID saved in a cookie.
The application uses a separately hosted express server with socket.io for the whole game logic and communication between the players. This guarantees that players cannot cheat.
For a single-player version made with Svelte, see https://github.com/ScriptRaccoon/chessvelte-singleplayer. Back in 2020 I already made a much more basic chess program with Vanilla JS: https://github.com/ScriptRaccoon/chess-singleplayer