We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, I read the code in bridge.cc and find the observation tensor only use three types ,
open_spiel/open_spiel/games/bridge/bridge.cc
Line 317 in d8a3bab
Line 400 in d8a3bab
However, in bridge.h, four types of observation are declared.
open_spiel/open_spiel/games/bridge/bridge.h
Line 55 in d8a3bab
The text was updated successfully, but these errors were encountered:
Hi, thanks. @elkhrt any ideas?
Sorry, something went wrong.
Yes, this looks like a bug - thanks for reporting it. Line 317 should be something like:
const bool defending = (partnership != Partnership(contract_.declarer)); if (phase_ == Phase::kPlay) ptr[2 + defending] = 1;
Do you fancy fixing it?
In general, we've only really used the bidding phase of the bridge implementation, so there may be some small issues with the play phase.
Thanks for the reply. To be honest, I don't know how to fix it on github. Should I create a pull request or something? Are there any tutorials?
Yes, submit a pull request. You'll need to sign an contributor agreement also. There's no OpenSpiel specific tutorial, but plenty of general ones!
Fixed by PR #1172 . Thanks @zizhang-qiu !
Commit here: 931e39a
No branches or pull requests
Hi, I read the code in bridge.cc and find the observation tensor only use three types ,
open_spiel/open_spiel/games/bridge/bridge.cc
Line 317 in d8a3bab
open_spiel/open_spiel/games/bridge/bridge.cc
Line 400 in d8a3bab
However, in bridge.h, four types of observation are declared.
open_spiel/open_spiel/games/bridge/bridge.h
Line 55 in d8a3bab
The text was updated successfully, but these errors were encountered: