Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def calculate_jam_chance(C,J,S,N):
- jam_chance = (1 - (1 - jam_strength / sensor_strength) ^ num_jammers) * 0 + 100
- print(jam_chance)
- #Constants
- jam_chance = 0.0
- jam_strength = int(input("What is your jam strength? ->").strip())
- sensor_strength = int(input("What is the sensor strength of the ship you're trying to jam? ->").strip())
- num_jammers = int(input("How many jammers do you have? ->").strip())
- calculate_jam_chance(jam_chance,jam_strength,sensor_strength,num_jammers)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement