Chinese chess-QT

Source: Internet
Author: User

Because I was very interested in chess AI at that time, I simply re-developed one by practicing QT.

This version has been thoroughly written from start to end by referring to the library's (C ++ Chinese chess getting started and improved). Although no heuristic algorithms have been written in the end of the article, in general, it is quite easy to beat cainiao.

In fact, the workload is really huge, and the UI + background is all designed by yourself.

Algorithm: 1. The way the chess pieces are played-the generation of the handsome elephant carriage artillery. Efficient generation and routing using bitwise operations and auxiliary Arrays

2. Search Algorithm: α-β pruning algorithm + History Table + replacement table

3. evaluation function: simple position sub-force score + flexibility sub-force score + stress score between chess pieces, etc.

Http://pan.baidu.com/s/1sjtyyJj

 

Chinese chess-QT

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.