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

Visibility of earlier cards in the history #20

Open
miselico opened this issue Oct 18, 2021 · 0 comments
Open

Visibility of earlier cards in the history #20

miselico opened this issue Oct 18, 2021 · 0 comments
Milestone

Comments

@miselico
Copy link
Contributor

When a bot is looking trough the history of the game, it might be useful to have that part the opponent hand which has been played later visible. The bot could, for example, use this to learn the opponent's strategy.

We could, for example, have:

    def get_move(self, state: PlayerGameState) -> Card:
        if state.leaders_turn():
            previous_state = state.get_previous()
            opponent_hand = previous_state.opponent.hand
            # at this point, the card of the last trick is back in the hand of the opponent, so we might as well make it visible
@miselico miselico added this to the Low priortiy milestone Oct 20, 2021
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

No branches or pull requests

1 participant