Advertisement
philRG

TVC JBM

Jun 1st, 2021
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.50 KB | None | 0 0
  1.     if stones != 0:
  2.         if stones > troll_distance:
  3.             # Si troll de mon cรดtรฉ
  4.             if troll_distance < road_length / 2:
  5.                 # Si j'ai plus de pierres que l'ennemi
  6.                 if stones > opponent_stones:
  7.                     stones_to_throw = road_length // 2 - troll_distance                
  8.             else:
  9.                 stones_to_throw = random.randint(1, troll_distance)
  10.         else:
  11.             stones_to_throw = stones
  12.     else:
  13.         stones_to_throw = 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement