Welcome to my Command Line Chess implementation in Batch! This project demonstrates a functional chess game that runs directly in the Windows command prompt.
This repository contains a chess game implementation using Batch scripting. The game features a command-line interface with piece movement validation, turn system, and basic chess rules.
Currently, pieces are inadvertently removed when displaying possible moves on the board.
- Issue occurs during move preview
- Affects pieces located in potential movement squares
- Related to board refresh mechanism
Future implementation will include:
- Secondary array to store piece positions
- Position restoration after clearing movement indicators
- Enhanced board state management
📦 chess-game
├── 📁 core
│ ├── Init.bat
│ ├── Menu.bat
│ └── Game.bat
├── 📁 ui
│ ├── Header.bat
│ └── ShowBoard
├── 📁 utils
│ ├── CheckMovement.bat
│ ├── ClearSelection.bat
│ └── LetterToNumber.bat
├── Game.bat
└── README.md
The repository is organized into components and utilities, with each file handling specific game functionalities.
- Interactive chess board display in command prompt
- Turn-based gameplay (White/Black)
- Piece movement validation
- Support for all standard chess pieces:
- Pawns
- Rooks
- Knights
- Bishops
- Queens
- Kings
To run this chess game, you'll need:
- Windows Operating System
- Command Prompt (CMD)
- Basic understanding of chess rules
- Run
CHESS.BAT
to start the game - Select pieces using chess notation (e.g., "E2")
- Move pieces by selecting destination square
- Use "D" to deselect a piece
- Follow standard chess rules for piece movement
- Written entirely in Batch scripting
- Modular code structure
- Clear visual feedback for:
- Selected pieces
- Possible moves
- Current turn
- Board state
- Check and checkmate detection
- Save/Load game functionality
- Move history
- AI opponent implementation
Have any questions or suggestions? I'd love to hear from you!