Chess Game using Python

Overview

Chess-Game-using-Python

yogeshcenation

  • Chess Game is a single-player game where the objective is same as the original chess game.

  • You just need to place your chess piece in a correct position.

  • The purpose of the system is to provide some past time with your friends.

About the Project

The Chess Game was created using Python module that contains multiple platforms that utilize the maximum capability for programming. The game is played in a simple windowed interface that comes with a sprites and backgrounds images. The player can play the game via Mouse, you only need to use the Left Mouse Button to move a chess piece by dragging it in a correct position such as(Pawn can move two turn forward in first move and eat enemy piece diagonally, Horse can only move in L shape position, Rook can move all the way forward, backward, left, right, Bishop can only move diagonally, Queen can move anywhere diagonally or straight, king can only move one block away). The game is very hard and challenging you need to think twice before you move. White piece always go first, if you are a white make a winnable first move to increase you chance of winning. You are against with an intelligent AI, try to win the game as you can. This application is for educational purpose only, you are free to modify it as you fit your needs. The Chess Game is a simple arcade style game where your goal is to strategize your move in order to win.

Chess Game using Python Features:

  • AI Controls
    • The project contains an AI enemy that will do anything to beat you.
  • Basic UI
    • The project contains a basic UI that display the game gameplay.
  • User-friendly Interface
    • This project was design with a simple user-friendly interface.
  • Basic Controls
    • This project uses a basic control function so that player can easily be playable.

Built with:

  1. PyCharm 2021.3.1 (Professional Edition)
  2. Python 3.8

Chess Game using Python Installation:

  1. You will have to download & install the Python IDLE's, here's the link "https://www.python.org/downloads/".
  2. Extract the zip file.
  3. Open the extracted folder
  4. Locate the .py file.
  5. Then open the file via python IDLE.
  6. Run the gui.py file to launch the program.

If you have git, and you know how to use it, you can also clone the repository instead of downloading a zip and extracting it and the run the gui.py directly.

Important Message :

If you find the error message as the following (when you run gui.py) :

import pygame, chessModuleNotFoundError: No module named 'pygame'

So how can we fix that?

  1. Open the folder where your Python is installed.
  2. Open the "Scripts" folder.
  3. Copy the path of the Scripts folder using the Address Bar.
  4. Open Command Prompt/Terminal.
  5. Type "cd (use right click to paste it).
  6. Type pip install pygame and press Enter

Command Prompt Command

  1. It should Download and install the "pygame" Module to your computer.
  2. Now run gui.py in the IDE. It works fine :-)

The Chess Game was created using Python programming language. I hope that this system can help you to what you are looking for. Enjoy Coding!!


If you have trouble with this project, please tell me about it, and I'll make this project better. If you like this tutorial, please give it a star.

See LICENSE.

You might also like...
A Neural Network based chess engine and GUI made with Python and Tensorflow/Keras.

Haxaw-Chess Haxaw: Haxaw is the Neural Network based chess engine made with Python and Tensorflow/Keras. Also uses the python-chess library. (WIP: Imp

Chess GUI

Lucas Chess Lucas Chess is a GUI of chess: To learn to play chess. To play chess against engines. Dependencies Python 2.7 PyQt4 PyAudio psutil Python

PyChess - a chess client for Linux/Windows

PyChess - a free chess client for Linux/Windows The mission of PyChess is to create a free, pleasant, PyGObject based chess game for the Linux desktop

A base chess engine that makes moves on an instance of board.

A base chess engine that makes moves on an instance of board.

In the works, creating a new Chess Board and way to Play...

sWJz4KingsChess date started on github.com 11-13-2021 In the works, creating a new Chess Board and way to Play... starting to write this in Pygame, an

Running Chess Night results tabulation

Running Chess Night results tabulation

SuperChess is a GUI application for playing chess.

About SuperChess is a GUI application for playing chess. It is written in Python 3.10 programming language, uses PySide6 GUI library, python-chess lib

Visualizing and learning from games on chess.com
Visualizing and learning from games on chess.com

Better Your Chess What for? This project aims to help you learn from all the chess games you've played online, starting with a simple way to download

Chess turnament organizer (short construct concept)

Turnament Organizer Chess turnament organizer (short construct concept). It is my hobby app I want to write to support lightweight tool for smart roun

Owner
Yogesh Selvarajan
Studying CSE, 2nd Year at Mepco Schlenk Engineering College
Yogesh Selvarajan
Minimalistic generic chess variant GUI using pyffish and PySimpleGUI, based on the PySimpleGUI Chess Demo

FairyFishGUI Minimalistic generic chess variant GUI using pyffish and PySimpleGUI, based on the PySimpleGUI Chess Demo. Supports all chess variants su

Fabian Fichter 6 Dec 20, 2022
Chess Game using Python

Chess Game is a single-player game where the objective is same as the original chess game. You just need to place your chess piece in a correct position. The purpose of the system is to provide some past time with your friends.

Yogesh Selvarajan 1 Aug 15, 2022
A didactic GUI chess game made in Python3 using pygame.

Chess A didactic GUI chess game made in Python3 using pygame. At the moment, there is no AI. The only way you can test the game is by playing against

Leonardo Delfino 1 Dec 22, 2021
This a Chess PGN saver which allows you to save your game pgns, in a .pgn file

PGN Saver This a Chess PGN saver which allows you to save your game pgns, in a .pgn file This can be a very useful tool for the people using chessbase

null 3 Jan 6, 2022
Blender Game Engine Game Type Templates Logic Bricks (and Python script) based Game Templates for Blender

Blender-Game-Engine-Templates Blender Game Engine Game Type Templates Logic Bric

null 3 Oct 25, 2022
A chess engine with basic AI capabilities (search for best move using MinMax algorithm)

A chess engine with basic AI capabilities (search for best move using MinMax algorithm)

Ken Wu 1 Feb 2, 2022
A playable version of Chess – classic two-player, various AI levels, and the crazyhouse variant! Written in Python 3

A playable version of Chess – classic two-player, various AI levels, and the crazyhouse variant! Written in Python 3. Requires the installation of PIL/Pillow and Requests

null 1 Dec 24, 2021
Chess - A python gui application

Chess Python version 3.10 or greater is required to play. Note This is a gui application, and as such will not run inside WSL.

Jonxslays 1 Dec 16, 2021
j-chess implementation in python

j-chess-client-python This repository aims to be a starting point for implementing a chess ai for the j-chess-server in python. To start, you can copy

Jonas 1 Dec 25, 2021
Python code that gives the fastest path from point a to point b of a chess horse

PERSONAL-PROJECTS CARLOS MAGALLANES-ARANDA'S PERSONAL PROJECTS kchess.py is the code. its input is the start and the end. EXMPLE - a1 d5 its output is

Carlos Magallanes-Aranda 1 Dec 26, 2021