filter hints to whom they concern

This commit is contained in:
Fabian Dill
2021-05-13 01:37:50 +02:00
parent fb192b989d
commit d5cdff5ec9
2 changed files with 13 additions and 5 deletions

View File

@@ -308,3 +308,7 @@ class Hint(typing.NamedTuple):
add_json_text(parts, ".")
return {"cmd": "PrintJSON", "data": parts, "type": "hint"}
@property
def local(self):
return self.receiving_player == self.finding_player