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

When resigning and rejoining, one's hand changes order #152

Open
zuzak opened this issue May 5, 2015 · 1 comment
Open

When resigning and rejoining, one's hand changes order #152

zuzak opened this issue May 5, 2015 · 1 comment

Comments

@zuzak
Copy link
Contributor

zuzak commented May 5, 2015

If you resign a game using pah: resign, then deal back in relatively soon, you get mostly the same cards but the order of the hand changes. It would be nice if the cards you had before remained in the same position.

Example

Before resignation
< pah> Your white cards in #channel:
< pah> 1. foo
< pah> 2. bar
< pah> 3. baz
< pah> 4. xyzzy
...
Current behaviour
< pah> 10 new cards have been dealt to you in #channel:
< pah> 1. baz
< pah> 2. plugh
< pah> 3. bar
< pah> 4. foo
...
Expected behaviour
< pah> 10 new cards have been dealt to you in #channel:
< pah> 1. foo
< pah> 2. bar
< pah> 3. baz
< pah> 4. plugh
...
@grifferz
Copy link
Owner

grifferz commented May 5, 2015

Tricky one, as cards coming off the deck or off the discard pile have no position associated with them and just go into whatever hand positions are available.

I might experiment with putting cards into the discard pile in hand position order and then take them back out again in that same order, so they hopefully end up in the same places.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants