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
Mastermind-Game - A game to test programming and logical skills

Bem vindo ao jogo Mastermind! O jogo consiste em adivinhar uma senha que será ge

Marcelo Daros 0 Jan 27, 2022
Setup minecraft server (Tuinity) to your directory

hapeshiva server-setup Setup minecraft server (Tuinity) for you. Support for optimization Create optimized yml Customazible server port and view dista

3 May 11, 2022
Tic Tac Toe game developed in python; have 2 difficulty levels

Tic Tac Toe Game This is a code for Tic Tac Toe game in python. Game has 2 difficulty levels. Easy Hard To play the game, use this command in a LINUX

Akshat Mittal 1 Jun 25, 2022
A short non 100% Accurate Solar System in pygame

solar-system-pygame Controls UP/DOWN for Emulation Speed Control ESC for Pause/Unpause q to Quit c or ESC again to Continue LEFT CLICK to Add an orbit

LightCrimson 2 May 28, 2022
A small module for creating a card deck, used for making card games

card-deck This module can be used to create small card games such as BlackJack etc.. To initialize the deck, use: Deck() To shuffle the deck, use: Dec

4 Dec 31, 2021
MCTS (among other things) for 2048

2048 Created by Chad Palmer for CPSC 474, Fall 2021 Overview: This is an application which can play 2048 and simulate games of 2048 with a variety of

Chad Palmer 1 Dec 16, 2021
Python Interactive Mini Games

Python Interactive Mini Games Mini projects from Coursera's An Introduction to I

Ashish Choudhary 1 Jan 16, 2022
a game of life implementation in python

gameoflife-py python implementation of game of life Installing As long as you have bash and curl installed and are on Linux the install script should

Raghav 5 Jun 09, 2021
Rock Paper Scissors Game with PyQt5

Rock-Paper-Scissors-Game rock paper scissors is a old game that all of us played it but this time let's play with computer Description This is Rock Pa

MohammadAli.HBA 4 Nov 11, 2021
OpenGL experiments with Pygame & ModernGL

pygame-opengl OpenGL experiments with Pygame & ModernGL TODO Skybox & Reflections Post-process effects (motion blur, color correction, etc..) Normal m

Kadir Aksoy 4 Oct 28, 2022
I got bored and wrote a wordle solver... Its pretty good though, just saying

Wordle Solver I got bored and wrote a wordle solver... Its pretty good though, just saying. Please go support Josh and have fun with Wordle on the off

Darrell Best 2 Jan 25, 2022
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

Boštjan Mejak 1 Oct 16, 2022
An entropy-based strategy to wordle

An entropy-based strategy to wordle

Gilles Vandewiele 24 Dec 31, 2022
A game developed while learning python

Alien_Invasion a game developed while learning python you must have python-3 installed in your computer. and pygame module is also required for this.

Jani Shubham 0 Oct 10, 2022
WORDLE Helper and Solver

WORDLE Helper and Solver There is a pupular game around WORDLE The game could be hard for non-English speaking people so I started to think of a helpe

1 Jan 24, 2022
My first Minecraft CPU. Created in collaboration with Peer Carnes as a final project in CS 281: Architecture and Assembly at the University of Puget Sound

Minecraft CPU This is my first ever Minecraft CPU, created in collaboration with Peer Carnes. We created a custom assembly language, including an asse

Andy Chamberlain 4 Oct 10, 2022
Wordle Solver: A simple script which is also called Wordle solver

wordle-solver this code is a simple script which is also called Wordle solver. t

amirreza 1 Feb 15, 2022
Hex-brawl-v25 - Simple Brawl Stars v25.107 server emulator written in Python

Hex Brawl Simple Brawl Stars v25.107 server emulator written in Python. Requirem

Shark01 3 Nov 24, 2022
Text-Adventure-Game [Open Source] A group project by the Python TASK Force

Text-Adventure-Game [Open Source] A group project by the Python TASK Force

Mircea Dumitrescu 2 Sep 17, 2021
Discord.py Gaming Bot🎮, for fun & engaging discord minigames

Status 🧭 This Project will not no longer be developed/finished due to a) discord.py's ( main dependency ) discontinuation b) My personal lack of int

Wordsetter 11 Nov 21, 2022