Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/andreie91/chess-game

A Chess Game implemented in C# using the Windows Presentation Foundation (WPF) framework.
https://github.com/andreie91/chess-game

chess chess-game chessboard

Last synced: about 16 hours ago
JSON representation

A Chess Game implemented in C# using the Windows Presentation Foundation (WPF) framework.

Awesome Lists containing this project

README

        

# Chess-Game

![GIF chess](Screenshots/chess_gif.gif)

## Description

This is a Chess Game implemented in C# using the Windows Presentation Foundation (WPF) framework. The game follows the standard rules of chess and provides a user-friendly interface for playing against another player locally.



Starting Position


Starting Position


Checkmate


Checkmate

## Features

- Classic chess gameplay with standard rules.
- User-friendly interface built with WPF.
- Highlights legal moves for pieces when selected.
- Keeps track of game state, including check and checkmate conditions.
- All special rules included (En Passant, Fifty-Move Rule, Threefold Repetition).
- Sound effects for every interaction.
- Responsive design for different screen sizes.


En Passant


En Passant


Stalemate


Stalemate


Pawn Promotion


Pawn Promotion

## Getting Started

1. **Clone the repository:**
```bash
git clone https://github.com/AndreiE91/Chess-Game.git
```

Open the solution file ChessGame.sln in Visual Studio.
Build the solution (Ctrl+Shift+B) to restore NuGet packages and build the project.
Start the application by running the project (F5).

## Usage

Upon starting the application, the chessboard is displayed along with the pieces in their starting positions.
Click on a piece to select it. Legal moves for the selected piece will be highlighted.
Click on a highlighted square to move the selected piece there.
The game ends when a player's king is in checkmate, or when players agree to a draw by pressing ESC and "RESTART".
To start a new game, use the "RESTART" button in the ESC menu.

## Contributing

Contributions are welcome! If you'd like to contribute to this project, please follow these steps:

1.Fork the repository.
2.Create a new branch (git checkout -b feature/new-feature).
3.Make your changes and commit them (git commit -am 'Add new feature').
4.Push to the branch (git push origin feature/new-feature).
5.Create a new Pull Request.

## Credits

This Chess Game project is maintained by AndreiE91.