All Projects → marcusbuffett → Command Line Chess

marcusbuffett / Command Line Chess

Licence: mit
A python program to play chess against an AI in the terminal.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Command Line Chess

Ancientbeast
Turn Based Strategy Game. Master your beasts! 🐺
Stars: ✭ 907 (+139.95%)
Mutual labels:  hacktoberfest, chess
Lila
♞ lichess.org: the forever free, adless and open source chess server ♞
Stars: ✭ 10,315 (+2628.84%)
Mutual labels:  hacktoberfest, chess
Openingtree
Consolidated view of all your chess games from chess.com, lichess, grandmaster games or custom pgn.
Stars: ✭ 143 (-62.17%)
Mutual labels:  hacktoberfest, chess
Netjsonconfig
Network configuration management library based on NetJSON DeviceConfiguration
Stars: ✭ 372 (-1.59%)
Mutual labels:  hacktoberfest
Rustscan
🤖 The Modern Port Scanner 🤖
Stars: ✭ 5,218 (+1280.42%)
Mutual labels:  hacktoberfest
Castero
TUI podcast client for the terminal
Stars: ✭ 375 (-0.79%)
Mutual labels:  hacktoberfest
Villus
🏎 A tiny and fast GraphQL client for Vue.js
Stars: ✭ 378 (+0%)
Mutual labels:  hacktoberfest
Hexapod
Blazing fast hexapod robot simulator for the web.
Stars: ✭ 370 (-2.12%)
Mutual labels:  hacktoberfest
Mosdepth
fast BAM/CRAM depth calculation for WGS, exome, or targeted sequencing
Stars: ✭ 376 (-0.53%)
Mutual labels:  hacktoberfest
Redux Json Api
Redux actions, action creators and reducers to make life with JSON APIs a breeze.
Stars: ✭ 374 (-1.06%)
Mutual labels:  hacktoberfest
Sp Dev Solutions
Repository for SharePoint development reusable solutions
Stars: ✭ 373 (-1.32%)
Mutual labels:  hacktoberfest
Awesome Uses
A list of /uses pages detailing developer setups, gear, software and configs.
Stars: ✭ 3,861 (+921.43%)
Mutual labels:  hacktoberfest
Openwisp Config
OpenWRT configuration agent for OpenWISP Controller
Stars: ✭ 375 (-0.79%)
Mutual labels:  hacktoberfest
Slimefun4
Slimefun 4 - A unique Spigot/Paper plugin that looks and feels like a modpack. We've been giving you backpacks, jetpacks, reactors and much more since 2013.
Stars: ✭ 369 (-2.38%)
Mutual labels:  hacktoberfest
Mongo Seeding
The ultimate solution for populating your MongoDB database.
Stars: ✭ 375 (-0.79%)
Mutual labels:  hacktoberfest
Magento2 Theme Blank Sass
SASS based version of Magento 2 Blank theme
Stars: ✭ 373 (-1.32%)
Mutual labels:  hacktoberfest
Hyperjson
A hyper-fast Python module for reading/writing JSON data using Rust's serde-json.
Stars: ✭ 374 (-1.06%)
Mutual labels:  hacktoberfest
Anglesharp
👼 The ultimate angle brackets parser library parsing HTML5, MathML, SVG and CSS to construct a DOM based on the official W3C specifications.
Stars: ✭ 4,018 (+962.96%)
Mutual labels:  hacktoberfest
Axe Core
Accessibility engine for automated Web UI testing
Stars: ✭ 4,293 (+1035.71%)
Mutual labels:  hacktoberfest
Ruby Net Ldap
Pure Ruby LDAP library
Stars: ✭ 374 (-1.06%)
Mutual labels:  hacktoberfest

Run on Repl.it command-line-chess

A python program to play chess against an AI in the terminal.

Installation

Requires Python 3, run the following to install :

pip3 install cl-chess

Usage

Run the following command after installation

chess

Type '?' to get help at any time during the game.

You'll be asked to choose between playing as white or black, and what depth you want the AI to search :

Initial

You can then make any (legal) move :

First move

Options

Instead of a move, you can input :

  • l to see every legal move
  • r to make a random move
  • u to undo your last move

Technical stuff

The AI is a simple brute-force AI with no pruning. It evaluates a given position by counting the value of the pieces for each side (pawn -> 1, knight/bishop -> 3, rook -> 5, queen -> 9). It will evaluate the tree of moves, and take the path that results in the greatest gain. To learn more, check out my post on how it works.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].