diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-10-07 15:34:29 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-12-10 18:16:55 +0100 |
commit | c90f1e3a43709736d7a61c517e94f19b2dff8e8e (patch) | |
tree | bdcf6f61c85bbc5c03da14647489c2c44e7bb2d3 /play.html | |
parent | 936a573b340afda735139318646cca057a6d2c03 (diff) | |
download | plantagenet-c90f1e3a43709736d7a61c517e94f19b2dff8e8e.tar.gz |
Fix P1/P2 vs York/Lancaster issues.
P1 and P2 are dynamically set to either York or Lancaster.
Only use these to determine play order during steps.
Use YORK or LANCASTER for everything else.
Bugs fixed:
* P1/P2 aliases were not set after setup is done, leaving them
unset for first action since load_state doesn't call update_alias unless
the state object changes.
* goto_command_activation should only end after both players exhaust,
not as soon as Lancaster has run out of cards.
* current_hand was returning opponents hand if rebel is not York.
Diffstat (limited to 'play.html')
0 files changed, 0 insertions, 0 deletions