Get up to 60 % extra points for free! More info
Save up to 80 % on our Python e-learning courses. Only this week!

Chess in WPF

Well-known board game for two players, in which players try to use their logical skills and strategy to outplay opponents. It's possible to train against the computer player with three levels of difficulty.

The game is designed for Windows 10, 8.1, 8, and 7; Both 32-bit and 64-bit (NET Framework 4.6.1 must be installed).

I tried to create the graphical user interface as intuitive and clear as possible. Game settings are dynamic, so only the settings that are useful for the current game mode (modes = player vs player, player vs ai, ai vs ai) are displayed.

The application can also
save and load game sessions
move back and forth in the history of your moves
set to both sides whether the player will be human or ai
set ai to play against itself with different levels of difficulty ("intelligence")
set a minimum turn length, as some ai turns can be very fast
modify the settings of the game session that's in progress
take advantage of modern hardware or the potential of multi-core processors
The best move algorithm for the ai is minimax. I tried to improve it to the "alpha-beta pruning" algorithm, unfortunately without success. If someone has experience with this algorithm, I'll definitely appreciate any advice or implementation hints. The environment should be ready for this.


Game was created in 2016.



Downloaded 39x (1.49 MB)
Application includes source codes in language C# .NET


All articles in this section
C# .NET Community Projects - WPF Form Applications
Game has been written for you by Lukas Fusek
Do you like this article?
No one has rated this quite yet, be the first one!
Activities (2)




To maintain the quality of discussion, we only allow registered members to comment. Sign in. If you're new, Sign up, it's free.

No one has commented yet - be the first!