Make basic blocks obvious in logs

This commit is contained in:
Christian Wolf 2023-11-20 21:03:49 +01:00
parent 04b43def9d
commit 3ea5b74557
3 changed files with 5 additions and 5 deletions

View File

@ -6,7 +6,7 @@ class CompetitionClass:
self.name = text self.name = text
def __repr__(self): def __repr__(self):
return self.name return f"C({self.name})"
class CombinedCompetitionClass: class CombinedCompetitionClass:

View File

@ -6,7 +6,7 @@ class Group:
self.name = text self.name = text
def __repr__(self): def __repr__(self):
return self.name return f"G({self.name})"
def getContainedGroups(self): def getContainedGroups(self):
return (self,) return (self,)

View File

@ -3,8 +3,8 @@ class Place:
self.place = place self.place = place
self.placeTo = placeTo self.placeTo = placeTo
def __str__(self): def __repr__(self):
if self.placeTo is None: if self.placeTo is None:
return f"{self.place}." return f"P({self.place}.)"
return f"{self.place}.-{self.placeTo}" return f"P({self.place}.-{self.placeTo}.)"