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

Fix returned winning players #101

Merged
merged 1 commit into from
Jul 23, 2021
Merged

Fix returned winning players #101

merged 1 commit into from
Jul 23, 2021

Conversation

charleskawczynski
Copy link
Owner

#100 didn't quite do what was needed. Since check_for_and_declare_winners! only works when one player is still playing. This misses the cases when there are multiple winners, or when nobody folds. This PR ensures that the winners (who money is distributed to) are returned from play!.

@charleskawczynski
Copy link
Owner Author

bors r+

@codecov
Copy link

codecov bot commented Jul 23, 2021

Codecov Report

Merging #101 (306f1f4) into main (f28f60d) will increase coverage by 0.04%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #101      +/-   ##
==========================================
+ Coverage   88.31%   88.36%   +0.04%     
==========================================
  Files           8        8              
  Lines         984      988       +4     
==========================================
+ Hits          869      873       +4     
  Misses        115      115              
Impacted Files Coverage Δ
src/game.jl 97.58% <100.00%> (+0.01%) ⬆️
src/player_actions.jl 100.00% <100.00%> (ø)
src/table.jl 98.77% <100.00%> (ø)
src/transactions.jl 90.60% <100.00%> (+0.19%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f28f60d...306f1f4. Read the comment docs.

@bors bors bot merged commit a50dd38 into main Jul 23, 2021
@bors bors bot deleted the ck/assert_winner branch July 23, 2021 20:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant