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

Improve iterators #80

Merged
merged 1 commit into from
Jun 7, 2021
Merged

Improve iterators #80

merged 1 commit into from
Jun 7, 2021

Conversation

charleskawczynski
Copy link
Owner

@charleskawczynski charleskawczynski commented Jun 7, 2021

  • Button -> Dealer
  • circle_table -> circle_index, which only takes the length and state for indexing players
  • Remove position
  • add n_iter to iterators, so that we can collect the results and simplify the tests

@charleskawczynski
Copy link
Owner Author

bors r+

bors bot added a commit that referenced this pull request Jun 7, 2021
80: Improve iterators r=charleskawczynski a=charleskawczynski

 - Button -> Dealer
 - circle_table -> circle_index, which only takes the length and state for indexing `players`
 - Remove position
 - add `n_iter` to iterators, so that we can collect the results and simplify the tests

Co-authored-by: Charles Kawczynski <kawczynski.charles@gmail.com>
@charleskawczynski
Copy link
Owner Author

bors r-

@bors
Copy link
Contributor

bors bot commented Jun 7, 2021

Canceled.

@charleskawczynski
Copy link
Owner Author

bors r+

@charleskawczynski
Copy link
Owner Author

Closes #81

@charleskawczynski
Copy link
Owner Author

charleskawczynski commented Jun 7, 2021

This doesn't close #73, but we may be able to just skip non-active players on the fly. This PR at least ensures that we start iterating on only active players.

@codecov
Copy link

codecov bot commented Jun 7, 2021

Codecov Report

Merging #80 (b010a02) into main (8e037ac) will increase coverage by 0.39%.
The diff coverage is 97.36%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #80      +/-   ##
==========================================
+ Coverage   86.81%   87.20%   +0.39%     
==========================================
  Files           8        8              
  Lines         872      899      +27     
==========================================
+ Hits          757      784      +27     
  Misses        115      115              
Impacted Files Coverage Δ
src/table.jl 99.06% <97.36%> (+0.13%) ⬆️

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 8e037ac...b010a02. Read the comment docs.

@bors bors bot merged commit c429876 into main Jun 7, 2021
@bors bors bot deleted the ck/fix_iterators branch June 7, 2021 03:54
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