Coder Social home page Coder Social logo

asymptote's People

Contributors

malu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

renwild

asymptote's Issues

Bug re: en passant square in TB probing

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...

Unable to compile on a Raspberry Pi 32-bit

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.