Skip to content

not-official/Not-Chess

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

♟️ Not-Chess

A clean, console-based chess game built in C++, focused on understanding how a chess system works from the ground up.


🚀 Getting Started

🔹 Clone the Repository

git clone https://github.com/YOUR_USERNAME/Not-Chess.git
cd Not-Chess

🔹 Engine Setup (Optional)

This project supports playing against an engine using Stockfish.

Download Stockfish separately and place the executable inside a stockfish/ folder in the project root.

Not-Chess/
├── include/
├── src/
├── stockfish/
│   └── stockfish-windows-x86-64-avx2.exe

Make sure the engine path in your code matches the executable name.


🔹 Compile

👥 Two Player Mode (Manual)

g++ -std=c++17 src/main.cpp src/board.cpp -Iinclude -o notchess

🤖 Engine Mode (Play vs Stockfish)

g++ -std=c++17 src/main.cpp src/board.cpp src/engine.cpp -Iinclude -DUSE_ENGINE -o notchess

🔹 Run

./notchess

💡 Tip: Use Git Bash with Unicode enabled so chess pieces (♔ ♕ ♖) and board lines render correctly.


🧠 How It Works

♜ Board System

  • Uses an 8×8 grid
  • Each square holds a piece (type + color)
  • Rendered using Unicode chess pieces and clean box-style borders

🎮 Move Input

Moves follow standard chess notation:

e2 e4
  • e2 → starting position of the piece
  • e4 → destination square

Examples

  • e2 e4 → move a piece from e2 to e4
  • g1 f3 → move a piece from g1 to f3

⚙️ Modes

👥 Two Player Mode

  • No engine required
  • Two players can play by taking turns
  • Movement is manual (trust-based)

🤖 Engine Mode

  • Play against Stockfish
  • Choose difficulty (Medium / Hard)
  • Engine responds after each move

🔄 Current Behavior

  • The board updates based on your input
  • Movement is currently manual
  • Rule validation (legal moves, checks, etc.) is not enforced yet

📌 Note

This is a personal learning project, so updates will be gradual as I learn and build step by step.

About

A unicode-enabled, console-based chess game.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors