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

Include tie bounty in move history #7

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion gops-clients/python/players/util/game.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def get_next_game_state(game_state, my_bid, their_bid):
new_state["all_bounties"].remove(new_state["active_bounty"])
new_state["my_bids"].remove(my_bid)
new_state["their_bids"].remove(their_bid)
new_state["move_history"].append((new_state["active_bounty"], my_bid, their_bid))
new_state["move_history"].append((my_bid, their_bid, new_state["active_bounty"], new_state["tie_bounty"]))

if my_bid == their_bid:
new_state["tie_bounty"] += new_state["active_bounty"]
Expand Down
2 changes: 1 addition & 1 deletion gops-engine/app/game.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def _reset_round():
for player in range(2):
self.available_bids[player].remove(self._active_bids[player])

self.move_history.append((self._active_bounty, self._active_bids[0], self._active_bids[1]))
self.move_history.append((self._active_bids[0], self._active_bids[1], self._active_bounty, self.tie))

if self._active_bids[0] == self._active_bids[1]:
self.tie += self._active_bounty
Expand Down