Skip to content

A chess game you can play in the console, coded in C++.

Notifications You must be signed in to change notification settings

AgentMax05/cpp_console_chess

Repository files navigation

cpp_console_chess

A CLI chess game you can play in the console, coded in C++.

This is a small project I started when I was in 9th grade, and never really finished. Currently it should work for 2 players, however the program doesn't allow en passant moves nor castling.

P.S. keep in mind this isn't the cleanest code as most of it was written when I was first learning C++!

UI

Here's what the game looks like:

Each piece is represented by a letter: p for pawn, r for rook, n for knight, b for bishop, q for queen, and k for king. Uppercase letters represent white pieces, while lowercase letters represent black pieces.

Entering Moves

Moves must be entered in the following format: [file-from][rank-from]-[file-to][rank-to] (for example e2-e4).

In other words, the position of the piece with the letter first and then number, followed by a dash, and then the destination for the piece to be moved to.

About

A chess game you can play in the console, coded in C++.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages