22:54
I was trying to run the challenge to see if I could stitch a bot by mixing other people's functions and found out that the game controller doesn't run with more than one bot
python3 main.py Traceback (most recent call last): File "main.py", line 216, in <module> for i in Mod: File "main.py", line 186, in __next__ self.isBS() File "main.py", line 155, in isBS if self.BotList[(i+self.isTurn)%self.numBots].callBS(i,self.BotList[self.isTurn].name,len(self.BotList[isTurn].hand),self.currCard,len(self.play),len(self.pile)): NameError: name 'isTurn' is not defined
Am I getting something wrong and maybe BotParams = [(naive_CallBS, naive_PlayCards, naive_StartRound),
(example_CallBS, example_PlayCards, example_StartRound),(asshole_CallBS,asshole_PlayCards,asshole_StartRound), (moniathan_CallBS,moniathan_PlayCards,moniathan_StartRound)]
(example_CallBS, example_PlayCards, example_StartRound),(asshole_CallBS,asshole_PlayCards,asshole_StartRound), (moniathan_CallBS,moniathan_PlayCards,moniathan_StartRound)]
Applying codegolf.stackexchange.com/questions/172628/… (changing line 155 to have self.isTurn every time helps, but it still fails
Now it fails inside a bot: python3 main.py
Traceback (most recent call last):
File "main.py", line 216, in <module>
for i in Mod:
File "main.py", line 186, in __next__
self.isBS()
File "main.py", line 155, in isBS
if self.BotList[(i+self.isTurn)%self.numBots].callBS(i,self.BotList[self.isTurn].name,len(self.BotList[self.isTurn].hand),self.currCard,len(self.play),len(self.pile)):
File "main.py", line 205, in <lambda>
self.callBS = lambda pos, player, handSize, currCard, numCards, numPile: CallBS(self,pos,player, handSize, currCar…
« first day (29 days earlier) ← previous day last day (15 days later) »