Skip to content

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

Notifications You must be signed in to change notification settings

AndreiE91/Chess-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Chess-Game

GIF chess

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:
    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.

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages