Skip to content
New issue

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

Add capability to goto player option #196

Merged
merged 2 commits into from
Aug 10, 2023
Merged

Add capability to goto player option #196

merged 2 commits into from
Aug 10, 2023

Conversation

charleskawczynski
Copy link
Owner

@charleskawczynski charleskawczynski commented Aug 9, 2023

This is nearly finished, the only quark is that initial_∑brs is stateful inside play!, so recomputing it from a preset game ends up corrupting the initial bank rolls. I.e., this needs to be handled more carefully. Re-sampling the games from the river does show different rewards for different options against the Bot5050 🎉

Maybe we can bikeshed names a bit.

This is the last thing, AFAICT, needed to do search for training bots.

@codecov
Copy link

codecov bot commented Aug 9, 2023

Codecov Report

Merging #196 (15cb504) into main (505a6f3) will increase coverage by 0.39%.
The diff coverage is 93.45%.

@@            Coverage Diff             @@
##             main     #196      +/-   ##
==========================================
+ Coverage   81.68%   82.08%   +0.39%     
==========================================
  Files          11       12       +1     
  Lines        1223     1267      +44     
==========================================
+ Hits          999     1040      +41     
- Misses        224      227       +3     
Files Changed Coverage Δ
src/TexasHoldem.jl 100.00% <ø> (ø)
src/game.jl 93.10% <92.04%> (-1.17%) ⬇️
src/goto_player_option.jl 100.00% <100.00%> (ø)
src/player_options.jl 79.57% <100.00%> (ø)
src/transactions.jl 88.18% <100.00%> (+0.33%) ⬆️

... and 2 files with indirect coverage changes

@charleskawczynski
Copy link
Owner Author

I'm pretty sure this is working. It complicates the code a bit, but it's not too invasive, and most of it is statically elided when we start from the beginning of a fresh game. The only part where we are runtime affected is inside the circle(table, FirstToAct()) loop, which only adds some Bool checks (again, not super clean but it works).

@charleskawczynski
Copy link
Owner Author

bors r+

@charleskawczynski
Copy link
Owner Author

bors r-

@bors
Copy link
Contributor

bors bot commented Aug 10, 2023

Canceled.

@charleskawczynski
Copy link
Owner Author

bors r+

@bors
Copy link
Contributor

bors bot commented Aug 10, 2023

Build succeeded!

The publicly hosted instance of bors-ng is deprecated and will go away soon.

If you want to self-host your own instance, instructions are here.
For more help, visit the forum.

If you want to switch to GitHub's built-in merge queue, visit their help page.

@bors bors bot merged commit f6b6ed4 into main Aug 10, 2023
19 checks passed
@bors bors bot deleted the ck/goto_option branch August 10, 2023 05:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant