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
Breakout-KD - A fantastic game created in python with pygame ✌️

Breakout-KD About This Game Breakout-KD is a fantastic breakout game. It's a python based game officialy made by me on december holiday. This game wor

Keep Distance 1 Jan 01, 2022
This is a good project to train your logic game with python language

JO-KEN-PÔ!!! | Description | basic. I make this game only to train. This is a good project to train your logic game with python language. This game is

Elianderson Silva 1 Jan 24, 2022
Building a Mario-like, classic platformer game in Python using the PyGame Library

Building a Mario-like, classic platformer game in Python using the PyGame Library

Clarence Vinzcent Reyes 1 Feb 06, 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
PyCharge is an open-source computational electrodynamics Python simulator

PyCharge PyCharge is an open-source computational electrodynamics Python simulator that can calculate the electromagnetic fields and potentials genera

Matthew Filipovich 28 Jan 03, 2023
Typing test and practice on command line without the need of any internet connection

Terminal-Typing-Test Typing test and practice on command line without the need of any internet connection About CLI based typing test and practice tha

Angad Deep Singh 3 Oct 19, 2022
Are you obsessed with playing the increasingly-popular word game Wordle?

WORDLE-VISION Up your Wordle game! Are you obsessed with playing the increasingly-popular word game Wordle? Ever wondered what the optimal first word

Ravi Gupta 5 May 10, 2022
AI Mario challenges you to clear all stage of Super Mario game.

mario-ai-challenge Challenge AI Mario to clear all stages of Super Mario. GitHub Pages Site Rules Enjoy building AI Mario. Share information. Use Goog

karaage 48 Dec 10, 2022
A fully automated system that transforms Twitch clips into gaming compilations

A fully automated system that transforms Twitch clips into gaming compilations Authors: Christian C., Moritz M., Luca S. Related Projects: Neural Netw

215 Dec 27, 2022
Tic Tac Toe Python Game GUI

Tic Tac Toe is one of the most played games and is the best time killer game that you can play anywhere with just a pen and paper.

Astitva Veer Garg 1 Jan 11, 2022
Pokemon game made in Python with open ended requirements from Codecademy

Pokemon game made in Python with open ended requirements from Codecademy. This is one of my first projects utilizing OOP and classes! -This game is a

Kevin Guerrero 2 Dec 29, 2021
A python script to solve Wordle puzzles

Wordle solver A python script to solve Wordle puzzles.

Felix Weinberger 1 Feb 12, 2022
Playing memory game is fun and the more harder it is the more challenging it is.

Playing memory game is fun and the more harder it is the more challenging it is. Playing thi sgame make us stress free and also happy. So, I have decided to make a memory Game which people can play w

Shreejan Dolai 3 Nov 11, 2022
Wordle - Wordle Clone With Python

Wordle Clone Python This is a cli clone of the famous wordle game developed by J

Shivam Pandya 20 Jul 07, 2022
PyCraft - A Minecraft launcher made in python

A Minecraft launcher made in python. The main objective of this launcher is to enable players to enjoy minecraft (especially those without a mojang/microsoft account). This launcher is not illegal as

38 Dec 12, 2022
ReplitTD - Replit Tower Defense Game

IMPORTANT: I mean no offense at all in this game, this is only based off of cycl

kokomi simp :3 3 Jun 25, 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
A zombie game using Kinetic. You can control players using fingers

This is Eden Park's portpolio: Works, projects and practices This repository can be used to show the potential employers to check my works, code and p

Eden Park 4 May 16, 2022
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

kkuba91 3 Dec 16, 2022
A Cataclysm: Dark Days Ahead launcher with additional features

CDDA Game Launcher A Cataclysm: Dark Days Ahead launcher with additional features. Download here. Implemented features Launching the game Detecting th

Rémy Roy 402 Jan 02, 2023