https://github.com/mdraith/shellchess
A chess program for the Linux shell.
https://github.com/mdraith/shellchess
board chess cli game linux play shell terminal text unicode
Last synced: 3 months ago
JSON representation
A chess program for the Linux shell.
- Host: GitHub
- URL: https://github.com/mdraith/shellchess
- Owner: mdraith
- License: gpl-3.0
- Created: 2025-02-11T19:07:44.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-11T18:53:08.000Z (over 1 year ago)
- Last Synced: 2025-07-25T23:40:56.084Z (11 months ago)
- Topics: board, chess, cli, game, linux, play, shell, terminal, text, unicode
- Language: C
- Homepage:
- Size: 111 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ShellChess
ShellChess is a brute force chess program for the Linux terminal.
It's recommended to run it with the *Termux* app on your smartphone.
Extract for ARM 64-Bit Linux:
`tar -xJf shellchess-linux-aarch64-1.0.tar.xz`
Extract for Intel or AMD 64-Bit Linux:
`tar -xJf shellchess-linux-x86-64-1.0.tar.xz`
A new directory *ShellChess* will be created.
For starting the binary program:
`cd ShellChess && ./chess`
Just enter the move you want to make in small letters: **e2e4**
Enter the command **side** to play the black pieces.
To weaken the opponent, enter **dpth**, press Return, and choose a number between **1** (very weak) and **3** (novice).
To make it faster, you can compile the program like this:
`clang -O3 -flto -o chess chess.c && strip chess`
If you have modified the code and want to benchmark it, use the following settings:
- **dpth** should be set to a matching depth of maybe **10**
- **extn** should be off to disable move extensions
- **rand** should be off to disable random moves
- **book** should be off to disable book openings
- **test** starts the calculation of a test position
"Every chess master was once a beginner."
(Irving Chernev)