Skip to content

Sreinumder/cppchess

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cppchess

A very basic two player c++ TUI chess game implementation.

Screenshot

game

Controls

  • Use numpad for directions with 5 as enter or select square
7 8 9  ↖ ↑ ↗ 
4 5 6  ← ⏎ → 
1 2 3  ↙ ↓ ↘ 
  • Alternatively for player 2, t for toggle two control mode
q w e    ↖ ↑ ↗
a s d f  ← ↓ → ⏎
z   c    ↙   ↘
  • u and i to undo and redo the moves
  • h for help
  • r for redraw or reload

Features

  • supports all the basic rules like castling, en-passant etc properly.
  • move log implementation with the ability to undo and redo and prune move tree
  • two player keyboard support

To-Do

  • PVE support with different difficulty level
  • save and load games on standard file format
  • local leaderboard
  • Train AI chess-bots with recursive move searches

Requirements

Visual Studio 2022 community version with g++ and MSVC compiler.

Installation

On Windows

Please use! Windows Terminal for proper Text rendering. Then, You can Download the Latest Release and test it.

On Linux or MacOs

Not supported yet :(

Sidenote

ik this project is kinda mess ngl. I wrote it on whim for college side project within 2-3 days. I will probably rewrite this in more cross-platform friendly environment. I might try rust idk. Anyway I did had blast coming up with the strategies for generating possible moves for given piece at any given scenario and realizing a hilarious bug.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages