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.

Owner
Yogesh Selvarajan
Studying CSE, 2nd Year at Mepco Schlenk Engineering College
Yogesh Selvarajan
Warden - Warden guessing game 1

Warden first python project and first posted project sorry for errors warden gue

hasher 3 Jan 09, 2022
Tic-Tac-Toe - Tic-Tac-Toe game build With Python

Tic Tac Toe This game is very popular amongst all of us and even fun to build as

PyLaboratory 0 Feb 06, 2022
Find live blooket games easy with python.

Blooket-pin-finder Find live blooket games easy with python. info when you start you will see what looks like error DON'T STOP those are just the thre

Crazedpotato 1 Mar 07, 2022
A basic quiz game using Python

QuizGame A basic quiz game using Python Passwords for quizzes (NO CAPS LOCK!): -ryzermattishandsome -canisleepwithyou Before using this, please make s

Austin 1 Nov 12, 2021
Tic-Tac-Toe Game in python3 Tkinter

Tic Tac Toe Tic-Tac-Toe Game in python3 Tkinter About: Tic Tac Toe or Noughts and Crosses as called in British is a pencil and paper game for two play

Sai Swarup Yakkala 5 Nov 06, 2022
What games should I design next quarter?

Project1_Next-Quarter-Game-Design-Prediction What games should I design next quarter? 상황 : 게임회사 데이터팀 합류 문제 : '다음 분기에 어떤 게임을 설계해야할까' Data Description N

Jayden Lee(JaeHo Lee) 1 Jul 04, 2022
Average Clicker Game (AVG) is a Python made game using tkinter

Average-Clicker-Game Average Clicker Game (AVG) is a Python clicker game not made with pygame but with tkinter, it has worker, worker upgrades, times

Zacky2613 1 Dec 21, 2021
Lutris desktop client in Python / PyGObject

Lutris Lutris is an open source gaming platform that makes gaming on Linux easier by managing, installing and providing optimal settings for games. Lu

Lutris 6.1k Dec 30, 2022
A python script that uses pygame to display fractals.

Pygame-Fractals A python script that uses pygame to display interactive fractals. There are 3 fractals on the script. They can be displayed on the col

michel 2 Feb 09, 2022
Chess game for 2 players with UI

2-D Chess for 2 players Overview This is a simple 2D Chess game for 2 players using pygame library. Requirements To be able to run this game, you must

7 Apr 06, 2022
Orbital-patterns - A program which plots pattern that revolving planets make

orbital-patterns Click to spawn planets Press "S" to capture screenshot. Image w

Yuvraj.M 11 Dec 24, 2022
Editing tool (read/write) .sc files (*_tes.sc , *.sc, *_dl.sc ) from Supercell games (Brawl Stars, Clash Royale, Clash of Clans and others).

SupercellSWF Version 0.1.0.2 About Editing tool (read/write) .sc files (*_tes.sc , *.sc, *_dl.sc ) from Supercell games (Brawl Stars, Clash Royale, Cl

Fred31 11 Jun 23, 2022
An exploration of a fantasy world, to autobattle your way to ruling the demesne.

Not Quite Paradise 2 (no relation to NQP, I just like the name enough to want to keep it.) Badges! Current position: Quality of last commit: Who dunni

9 Mar 12, 2022
A Tetris Game for programming education

Tetris Game プログラミング学習を目的とした、ブロックを操作してスコアを競うゲームです。 FAQはこちら。 tutorialはこちら。 実行環境準備 Mac環境 Finder→Application→Utility→Terminalから、ターミナルを起動して以下コマンドを実行する。 # i

11 Dec 01, 2022
This is a script which can be used to autobattle, upgrade metamon, compose eggs and open eggs in metamon game.

This is a script which can be used to autobattle, upgrade metamon, compose eggs and open eggs in metamon game. The only parameters you need to input are you wallet address and sign. The sign can be o

Taxiria 37 May 11, 2022
My goofy little script for playing wordle

my wordle "solver" My goofy little script for playing wordle. It actually runs really slowly at first but once you've added some info (e.g. which lett

MB 3 Feb 04, 2022
Minecraft.nix - Command line Minecraft launcher managed by nix

minecraft.nix Inspired by this thread, this flake contains derivations of both v

12 Sep 06, 2022
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
This repository has the lessons of the gamming programming course

learning-python-game-programming This repository has the lessons of the gamming programming course Na faculdade, estou fazendo a disciplina de program

Mateus Faustino 1 Nov 16, 2021
Description NerdQuest is a social site for creating events and/or meet ups based on games.

NerdQuest Description NerdQuest is a social site for creating events and/or meet

David Allen 1 Jul 11, 2022