Skip to content
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
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,7 @@ logs
results

*.sbatch
*.log
*.log
agents/group16_agent/utils/saved/*.plk

.idea
3 changes: 3 additions & 0 deletions agents/ANL2022/dreamteam109_agent/dreamteam109_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ def notifyChange(self, data: Inform):
self.profile = profile_connection.getProfile()
self.domain = self.profile.getDomain()
# compose a list of all possible bids
# RAFA: save all bids as a property
self.all_bids = AllBidsList(self.domain)

profile_connection.close()
Expand All @@ -128,6 +129,7 @@ def notifyChange(self, data: Inform):
self.other = actor
# obtain the name of the opponent, cutting of the position ID.
self.other_name = str(actor).rsplit("_", 1)[0]
# RAFA: load any previous data from file and adapt
self.attempt_load_data()
self.learn_from_past_sessions(self.data_dict["sessions"])

Expand Down Expand Up @@ -207,6 +209,7 @@ def opponent_action(self, action):
# set bid as last received
self.last_received_bid = bid

# RAFA: add opponent_best_bid, if existant update it
if self.opponent_best_bid is None:
self.opponent_best_bid = bid
elif self.profile.getUtility(bid) > self.profile.getUtility(self.opponent_best_bid):
Expand Down
1 change: 1 addition & 0 deletions agents/group16_agent/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

Loading