colding10 / kingfish Goto Github PK
View Code? Open in Web Editor NEWC++ UCI chess engine (2000 ELO)
License: GNU General Public License v3.0
C++ UCI chess engine (2000 ELO)
License: GNU General Public License v3.0
Is your feature request related to a problem? Please describe.
When I play the bot, it sometimes thinks for annoyingly long. It is understandable but I want it to be faster.
Describe the solution you'd like
I want the engine to calculate faster. Incorporating threading would make it faster.
Describe alternatives you've considered
It could use threads to calculate faster.
Additional context
Add any other context or screenshots about the feature request here.
Describe the bug
The engine is pretty slow during the game. Seems to overspend allocated time.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I expect it to be faster on simple moves like captures. Also, it should stop searching if time is over.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
Describe the bug
It moves a knight down 2 right 2.
To Reproduce
Steps to reproduce the behavior:
position startpos moves e2e4 b8c6 b1c3 g8f6 d2d4 d7d5 e4e5 f6e4 c3e4 d5e4 c1g5 d8d4 g1f3 d4d1 a1d1 e4f3 g2f3 c6e5 f1b5 c8d7 b5d7 e5d7 c2c4 d7e5 e1g1 e5f3 g1h1 f3g5 c4c5 g5f3 b2b4
go wtime -452926 btime 120619 movestogo 25
Expected behavior
It should make another better move that is not illegal. Also, king captures are illegal.
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
all in the title. I might work on this later but string boards are a lot simpler to implement and to use.
Describe the bug
Plays (pawn) e7e5 when there is a piece at e5.
To Reproduce
Steps to reproduce the behavior:
position startpos moves e2e4 b8c6 g1f3 g8f6 b1c3 c6e5 f3e5
go wtime 224651 btime 223074 movestogo 37
Expected behavior
It should not make that illegal move
Desktop (please complete the following information):
Additional context
N/A
Describe the bug
At position e2e4 b8c6 g1f3 g8f6 b1c3 d7d5 e4d5 f6d5 d2d4 d5c3 b2c3 e7e5 d4e5 d8d1 e1d1 c8g4 f1b5
, the move a9d8
suggested by the engine is illegal. a9
is out of bounds.
To Reproduce
Steps to reproduce the behavior:
position startpos moves e2e4 b8c6 g1f3 g8f6 b1c3 d7d5 e4d5 f6d5 d2d4 d5c3 b2c3 e7e5 d4e5 d8d1 e1d1 c8g4 f1b5
go wtime 168235 btime 63208 movestogo 32
Expected behavior
The rook moving is understandable. However, it should be a8d8
.
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
example board output:
CHESSBOARD INFO
Turn: white
Move: 6294
FEN: pppppppp/pppppppp/pppppppp/pppppppp/pppppppp/pppppppp/pppppppp/pppppppp/
Hash: -1190157721
BLACK is winning!
White: -3.40282e+38
Black: 3.40282e+38
0 0 0 0 13 0 0 0
0 0 8 8 0 0 0 8
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 18 0 0 0 0
0 0 16 0 0 0 0 0
0 0 16 0 0 16 0 16
11 0 0 0 0 0 21 10
$ ./kingfish_1.2.0_compiled_HP
uci
id name Kingfish 1.2.0
id author Colin D
uciok
ucinewgame
go infinite
info string remaining time: 0 time allocated: 0
info depth 1 score cp 0 nodes 2 nps 2000 hashfull 0 time 1 pv d2d4
info depth 1 score cp 46 nodes 3 nps 3000 hashfull 0 time 1 pv d2d4
info depth 1 score cp 22 nodes 637 nps 4649 hashfull 0 time 137 pv d2d4
info depth 1 score cp 15 nodes 1393 nps 5484 hashfull 1 time 254 pv f2f4
info depth 2 score cp 0 nodes 1395 nps 5492 hashfull 1 time 254 pv d2d4
info depth 2 score cp 118 nodes 1436 nps 5565 hashfull 1 time 258 pv d2d4
info depth 2 score cp 19 nodes 1572 nps 5695 hashfull 1 time 276 pv d2d4
info depth 2 score cp 9 nodes 2344 nps 5904 hashfull 2 time 397 pv d2d4
info depth 3 score cp 1 nodes 2397 nps 5947 hashfull 2 time 403 pv d2d4
info depth 3 score cp 118 nodes 2440 nps 5995 hashfull 2 time 407 pv d2d4
info depth 3 score cp 46 nodes 2471 nps 6041 hashfull 2 time 409 pv d2d4
[...]
$ ./kingfish_1.2.0_compiled_HP
uci
id name Kingfish 1.2.0
id author Colin D
uciok
ucinewgame
go wtime 603000 btime 603000 winc 3000 binc 3000
info string remaining time: 753000 time allocated: 11295
Floating point exception (core dumped)
it seems my second go
command is not recognized .. this gives an error in CuteChess, which uses the wtime & btime format.
[ i'm on Xubuntu 22.04 ]
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.