Skip to content

This Python Chess Game is a two-player strategy game implemented using Python's built-in functions and object-oriented programming principles. It provides a simple and interactive command-line interface for players to enjoy a game of chess.

Notifications You must be signed in to change notification settings

bhuvanmdev/chess-2player-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

Python Chess Game

Overview

This Python Chess Game is a two-player strategy game implemented using Python's built-in functions and object-oriented programming principles. It provides a simple and interactive command-line interface for players to enjoy a game of chess.

Features

  • Two-Player Mode: Challenge a friend to a match and take turns to make your moves.
  • Object-Oriented Design: The game is designed with classes representing the chess pieces, board, and game logic.
  • Command-Line Interface: Easy-to-use interface for game interaction and move input.

How to Play

  1. Clone the repository to your local machine.
  2. Run the game using the command:
  3. python chess_2_player.py
  4. Follow the on-screen instructions to input your moves.

Game Rules

The game follows the standard rules of chess. Each player starts with 16 pieces: one king, one queen, two rooks, two knights, two bishops, and eight pawns. The objective is to checkmate the opponent's king.

Requirements

  • Python 3.x

Contributing

Contributions to the project are welcome! Please feel free to fork the repository, make your changes, and submit a pull request.

License

This project is open-source and available under the MIT License.

Acknowledgements

A special thanks to everyone who has played the game and provided valuable feedback.

Enjoy the game!

About

This Python Chess Game is a two-player strategy game implemented using Python's built-in functions and object-oriented programming principles. It provides a simple and interactive command-line interface for players to enjoy a game of chess.

Resources

Stars

Watchers

Forks

Languages