• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

fredericojordan/fast-chess:

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

fredericojordan/fast-chess

开源软件地址:

https://github.com/fredericojordan/fast-chess

开源编程语言:

C 84.1%

开源软件介绍:

fast-chess

Build Status CircleCI

fast-chess

Simple chess game intended to be faster than my (now abandoned) python version, hence the name.

Many thanks to Chess Programming Wiki and TSCP for some ideas and tuning values.

Features

  • Board Representation:
    • Bitboards
  • Search:
    • Iterative Deepening
    • Alpha-Beta Pruning
    • Parallel Processing
    • Quiescence Search
    • Static Exchange Evaluation
  • Evaluation:
    • Material Balance
    • Piece-Square Tables
    • Pawn Structure
  • Graphical User Interface:
    • Attack Heatmap
    • Edit Board Mode

Quickstart

  1. Download latest release
  2. Extract file contents
  3. Run chess.exe (Windows) or ./chess (macOS/Linux)
  4. ???
  5. Profit

GUI Hotkeys

Hotkey Usage
▲ / ▼ Increase/decrease AI search depth
A Toggle [A]I opponent
I [I]nvert player's colors
H Toggle attack [H]eatmap
C Change board [c]olor scheme
R [R]andom board color
T Random [t]inted board color
E [E]dit mode (drag to move or click to cycle pieces)
P Export to [P]GN
D [D]ump game info to file
M List legal [M]oves (console mode only)
V Static board e[v]aluation (console mode only)
Q [Q]uit
U [U]ndo move

Screenshots

Chess Heatmap

Building the project

macOS/Linux

In order to successfully build the project we need a C++ compiler, CMake and also the SDL graphics libraries: SDL2, SDL2_image and SDL2_ttf.

In Debian/Ubuntu, this can be achieved by running the command:

apt-get install -y g++ cmake libsdl2-dev libsdl2-image-dev libsdl2-ttf-dev

In macOS, we can run:

brew install cmake sdl2 sdl2_image sdl2_ttf

Then we just download the code, build the project and run the program:

git clone https://github.com/fredericojordan/fast-chess.git
cd fast-chess
cmake .
make
./chess



鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap