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

Blank cards #49

Open
wants to merge 49 commits into
base: master
Choose a base branch
from
Open

Blank cards #49

wants to merge 49 commits into from

Conversation

Arc676
Copy link
Collaborator

@Arc676 Arc676 commented Apr 5, 2018

Note: I unintentionally branched this off configurable-skips so PR #47 has to be merged before this one.

Implemented wild cards

  • Match creation UI now asks user for the number of wild cards in the game
  • Wild cards can be drawn and their text edited when selected
  • Wild cards are discarded once played; wild card drawing algorithm prevents the queue from ever being rebuilt because wild cards are never requested if there aren't any left
  • Participants draw fewer cards if they have wild cards; hand size is always 12
  • Did some refactoring in Multideck

Closes #37.

Arc676 added 22 commits February 3, 2018 20:08
Defaults to server owner
Match phase skip method now takes nickname argument
Follow 80 char line convention
Fixed syntax error in match.js
Indicates who wants to skip
Indicates how many skips required to reach majority
Checking for majority now O(n) time
Prevent same user from making multiple skip requests
user_can_skip_phase now takes participant argument
Fixed to use new function call
Added argument to comment for user_can_skip_phase
POST request handler can also return numbers
If parameter doesn't have a filename, assume it's the wild card counter
instead
Get wild card count from POST request
Added WILD type to API
(Card set needs resizing)
No longer try to replenish wild cards
Server side API can change card text
Changed to `is not None` for more Python-y-ness and consistency
Increased wild card limit to 100
Moved queue building and picking to separate methods
Build queue when creating MultiDeck
Added default text to wild cards
Now says "Wild card" instead of being empty
Added method for determining participant hand size
Use participant hand size to determine size of available card pool
Probability of drawing wild card depends on size of card pool
Particpant.replenish_hand now returns number of cards drawn
Draw fewer cards if wild cards in hand
@Arc676
Copy link
Collaborator Author

Arc676 commented Apr 5, 2018

I'll resolve the merge conflicts after #47 is merged.

Arc676 added 4 commits May 26, 2018 11:25
Defaults to server owner
Match phase skip method now takes nickname argument
Follow 80 char line convention
Fixed syntax error in match.js
Indicates who wants to skip
Indicates how many skips required to reach majority
Arc676 added 21 commits May 26, 2018 11:26
Checking for majority now O(n) time
Prevent same user from making multiple skip requests
user_can_skip_phase now takes participant argument
Fixed to use new function call
Added argument to comment for user_can_skip_phase
POST request handler can also return numbers
If parameter doesn't have a filename, assume it's the wild card counter
instead
Get wild card count from POST request
Added WILD type to API
(Card set needs resizing)
No longer try to replenish wild cards
Server side API can change card text
Changed to `is not None` for more Python-y-ness and consistency
Increased wild card limit to 100
Moved queue building and picking to separate methods
Build queue when creating MultiDeck
Added default text to wild cards
Now says "Wild card" instead of being empty
Added method for determining participant hand size
Use participant hand size to determine size of available card pool
Probability of drawing wild card depends on size of card pool
Particpant.replenish_hand now returns number of cards drawn
Draw fewer cards if wild cards in hand
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