X-Git-Url: https://git.ucc.asn.au/?p=progcomp2013.git;a=blobdiff_plain;f=qchess%2Fsrc%2Fplayer.py;h=53edb44f7758e84e5a6a93e85db3e22f63153dc7;hp=99d36165412e76c21173a57427679e7da4943018;hb=df2c20df9b55fd3ab24c494d745a260662f1da67;hpb=639646adb020e0be9433da7b3d5ef6b987c99f71 diff --git a/qchess/src/player.py b/qchess/src/player.py index 99d3616..53edb44 100644 --- a/qchess/src/player.py +++ b/qchess/src/player.py @@ -20,6 +20,12 @@ class Player(): def reset_board(self, s): pass + + def __str__(self): + return self.name + "<"+str(self.colour)+">" + + def base_player(self): + return self # Player that runs from another process class ExternalAgent(Player):