malu / asymptote Goto Github PK
View Code? Open in Web Editor NEWA UCI chess engine
License: GNU General Public License v3.0
A UCI chess engine
License: GNU General Public License v3.0
Hi,
I'm another Rust chess engine dev, and I was adding Fathom/Syzygy support to my own engine by closely following Asymptote's approach (thanks so much btw will definitely credit in release). But while doing so I noticed that when converting Asymptotes board representation into the form for Fathom (in src/position.rs
), there's a bug in determining the ep square when white did the double-push.
This position, contrived as it is, should show the problem: 8/8/8/8/5Pp1/2k5/7P/K7 b - f3 0 1
. The correct move is a capture en passant, but if using the TB, Asymptote will choose Kc4. This issue does not appear in the mirrored equivalent of this position.
setoption name SyzygyPath value /home/jtwright/chess/tablebase/3-4-5/
info string found 5-piece Syzygy Tablebases
position fen 8/8/8/8/5Pp1/2k5/7P/K7 b - f3 0 1
go wtime 1000 btime 1000
info depth 127 seldepth 0 nodes 0 nps 0 tbhits 0 score cp 0 time 0 hashfull 0 pv
bestmove c3c4
I believe the issue stems from the spot where you use 3 * rank + ep_file
(paraphrasing) in the conversion. The ranks are 0-indexed so it should be 2 * rank + ep_file
Thanks again for having such a clear example of using the fathom library in Asymptote. It was incredibly helpful for me, so I'm hoping this is giving back in some way, even though this bug would be exceptionally rare...
Hi,
Your engine used to compile fine, I’m now having problems. I am on versions 1.44.0 on both cargo and rustc:
Al@PicoChess:~/asymptote $ cargo rustc --release --bin asymptote -- -C target-cpu=native
Compiling lazy_static v1.4.0
Compiling cfg-if v0.1.7
Compiling arrayvec v0.4.11
Compiling nodrop v0.1.13
Compiling scopeguard v0.3.3
Compiling memoffset v0.2.1
Compiling libc v0.2.60
Compiling cc v1.0.52
Compiling smallvec v0.6.9
Compiling rand_core v0.2.1
Compiling crossbeam-utils v0.6.5
Compiling crossbeam-queue v0.1.2
Compiling crossbeam-channel v0.3.8
Compiling crossbeam-epoch v0.7.1
Compiling rand v0.5.3
Compiling crossbeam-deque v0.7.1
Compiling crossbeam v0.7.1
Compiling asymptote v0.8.0 (/home/Al/asymptote)
error[E0308]: mismatched types
--> src/fathom.rs:121:23
|
121 | return c::tb_init(c_string.as_ptr());
| ^^^^^^^^^^^^^^^^^ expected i8
, found u8
|
= note: expected raw pointer *const i8
found raw pointer *const u8
error: aborting due to previous error
For more information about this error, try rustc --explain E0308
.
error: could not compile asymptote
.
To learn more, run the command again with --verbose.
Al@PicoChess:~/asymptote $
Thanks,
Alan Cooper
Hallo malu,
man kann diese -umgewandelt im Bitmap Format z.B. mit http://www.photofiltre.com/ - für graphische Benutzeroberflächen wie Arena, ChessGUI oder WinBoard Interface verwenden vgl. http://computer-chess.org/doku.php?id=computer_chess:wiki:lists:gui_protocol_support_list
Laufen denn die Darwin Applikationen auch unter Mac OS? Ich nutze nur Windows 7/10.
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.