You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
defturn():
i=1#commented lines produce an error#uncommented lines work just finei+=1i-=1000i*=500i/=500i=i//500#i //= 500i=50i=i<<1#i <<= 1i=i>>1#i >>= 1i=i%1#i %= 1i= {0,1,2,3,4,5}
#i ^= { 1 }i=i^ {1}
#i |= {0}i=i| {0}
# i &= ii=i&i
It seems that only the most common operations have their equivalent in place operation allowed.
The following error is produced:
File "/home/user/.local/lib/python3.6/site-packages/battlehack20/engine/container/runner.py", line 218, in do_turn
exec(self.locals['turn'].__code__, self.globals, self.locals)
File "bot.py", line 26, in turn
i &= i
File "/home/user/.local/lib/python3.6/site-packages/battlehack20/engine/container/runner.py", line 122, in inplacevar_call
raise SyntaxError('Unsupported in place op "' + op + '".')
File "<string>", line None
SyntaxError: Unsupported in place op "&=".
The text was updated successfully, but these errors were encountered:
It seems that only the most common operations have their equivalent in place operation allowed.
The following error is produced:
The text was updated successfully, but these errors were encountered: