Skip to content

Interactive UI Chess game using Pygame, python-chess, and stockfish.

Notifications You must be signed in to change notification settings

Cuberates/pygame-chess

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Pygame Chess

A simple interactive Chess game written using Pygame and python-chess.

Screenshot 2023-11-09 at 21 11 56

Usage

  • It is precisely recommended to install all necessary libraries: pip3 install chess pygame stockfish
  • The game is powered by Stockfish. In the source file, initialize the path to the Stockfish binary file.
# Initialize Stockfish
try:
   stockfish = Stockfish(path="PATH TO STOCKFISH BINARY")
   stockfish_elo = 800
   stockfish_elo = input("Input Stockfish ELO (Default is 800): ")
   # stockfish.update_engine_parameters({"Minimum Thinking Time": 0})
   stockfish.set_elo_rating(stockfish_elo)
except: 
   print("Stockfish path is incorrect")
  • To run the game: python3 pygame-chess.py

About

Interactive UI Chess game using Pygame, python-chess, and stockfish.

Topics

Resources

Stars

Watchers

Forks