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

All-in command implementation #33

Closed
wants to merge 1 commit into from
Closed

Conversation

pstutes
Copy link

@pstutes pstutes commented Sep 3, 2015

This adds the (A)ll-in command to bet all available chips for a player. Issue #10

TODO:

  • Add a test (or two) that verifies using this action

@@ -195,6 +199,10 @@ class PlayerInteraction {
name = 'raise';
amount = input[1] ? parseInt(input[1]) : NaN;
break;
case 'a':
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'a' is a little too easy to type by accident. Since this is a nuclear option, let's only look for the strings "all in," "all-in," and possibly "allin."

@CharlieHess
Copy link
Owner

This should be OK, but I'd feel more comfortable if there were additional tests (see texas-holdem-spec.js) that verified the action.

@pstutes pstutes closed this Sep 4, 2015
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.

2 participants