Skip to content

atpt/C-Chess

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 

Repository files navigation

C-Chess

[Work in progress]

ASCII Chess game in pure C

Compatible with UNIX-based OS, but only tested on Mac so far.

Terminal Screenshot

Build

Make

  cd src
  chmod 711 make
  ./make

Run

  ./chess-b [args]

Arguments

1 args

  ./chess-b 5

Run perft(5) (count leaf nodes of game tree up to 5 ply)

2 args

  ./chess-b [PLAYER-1] [PLAYER-2]

Start a game, with AI players using default settings

  • 0: Human player
  • 1: Fixed depth alpha-beta AI
  • 2: Iterative deepening AI (recommended)
  • 3: Quick-and-dirty minimax AI

4 args

  ./chess-b [PLAYER-1] [PLAYER-2] [DEPTH] [EXTENSION]

Same as 2 args, but specifies depth of search and maximum extension depth for forcing lines.

About

ASCII Chess game in pure C

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages