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

Configurable wild replacement #50

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

Configurable wild replacement #50

wants to merge 56 commits into from

Conversation

Arc676
Copy link
Collaborator

@Arc676 Arc676 commented Apr 11, 2018

To be merged after #49.

The wild-replace-mode option in the configuration file specifies whether wild cards are returned to the queue after being played, allowing them to be redrawn later in the game.

Currently, setting this option to "no" prevents wild cards from being replaced. Any other value enables wild card replacement.

Arc676 added 30 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
Can be used to put wild cards back
Fixed underscore style method names in MultiDeck
Added wild card replacement mode property to Math
Wild card replacement determined by config
Try to replace wild cards when deleting chosen cards
Defaults to server owner
Match phase skip method now takes nickname argument
Follow 80 char line convention
Fixed syntax error in match.js
Arc676 added 26 commits May 26, 2018 11:25
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
Can be used to put wild cards back
Fixed underscore style method names in MultiDeck
Added wild card replacement mode property to Math
Wild card replacement determined by config
Try to replace wild cards when deleting chosen cards
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