(My English is not good, so the translation may be wrong) English: #Special Thanks# The basic UI reference is from https://ccw.site/s/DEZaP3m5 The piece weight reference is from https://github.com/58c/Chinese-chess The algorithms are all written by myself #Code Introduction# The code currently has around 6000 lines. If you think the AI is weak, you can increase the depth of thinking. There is a pruning algorithm that can significantly speed up the search process. There is an opening library, but not many, with less than ten moves in total. The difficulty level increases automatically on turbowarp. #Commands# Q: Logs T: Display the score for each piece Space + R: Cheat mode #Developer Tools# Space + 1: Switch to the red side Space + 2: Switch to the black side Space + 3: Switch to god mode (Note: Please do not move the generals outside the palace, as it may cause unexpected errors) 中文: #特别鸣谢# 基础UI参考了 https://ccw.site/s/DEZaP3m5 棋子权重参考了 https://github.com/58c/Chinese-chess 算法全是我自己写的 #代码简介# 代码目前有6000左右。 觉得AI弱可以提高思考层数。 有剪枝算法,可以大幅度加快搜索速度。 有开局库但不多 十种走法都不到。 难度等级在turbowarp上自动增加一层。 #操作# Q 日志 T 显示每个棋子的评分 空格 + R 外挂 #开发者工具# 空格+1 切换到红方 空格+2 切换到黑方 空格+3 切换到上帝模式 注:请不要把将帅移动到九宫格之外,否则容易出现意外错误
I refer to the following code: https://ccw.site/s/DEZaP3m5 https://github.com/58c/Chinese-chess