Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if stones != 0:
- if stones > troll_distance:
- # Si troll de mon cรดtรฉ
- if troll_distance < road_length / 2:
- # Si j'ai plus de pierres que l'ennemi
- if stones > opponent_stones:
- stones_to_throw = road_length // 2 - troll_distance
- else:
- stones_to_throw = random.randint(1, troll_distance)
- else:
- stones_to_throw = stones
- else:
- stones_to_throw = 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement