Sun Jan 15 17:16:21 2023 duel_simulation_test(): Python version: 3.6.9 Test duel_simulation() duel_once_test(): duel_once() simulates a single duel between combatants who fire alternately at each other, with known probabilities of hitting the other. In this example, the one shot probabilities are: Player[0]: 0.1 Player[1]: 0.15 Result of this duel: Player 1 survived after 12 turns duel_once_test(): duel_once() simulates a single duel between combatants who fire alternately at each other, with known probabilities of hitting the other. In this example, the one shot probabilities are: Player[0]: 0.15 Player[1]: 0.1 Result of this duel: Player 0 survived after 3 turns duel_many_test(): duel_many() simulates many duels between combatants who fire alternately at each other, with known probabilities of hitting the other. In this example, the one shot probabilities are: Player[0]: 0.1 Player[1]: 0.15 The number of duels to fight is 1000 Result of the duels: Player 0 winning percentage is 0.442 Player 1 winning percentage is 0.558 The average number of shots fired was 8.23 duel_many_test(): duel_many() simulates many duels between combatants who fire alternately at each other, with known probabilities of hitting the other. In this example, the one shot probabilities are: Player[0]: 0.15 Player[1]: 0.1 The number of duels to fight is 1000 Result of the duels: Player 0 winning percentage is 0.649 Player 1 winning percentage is 0.351 The average number of shots fired was 7.723 Player 0 survival probability = 0.447 Player 1 survival probability = 0.553 Average number of shots fired = 8.339 Player 0 survival probability = 0.631 Player 1 survival probability = 0.369 Average number of shots fired = 7.385 duel_simulation_test(): Normal end of execution. Sun Jan 15 17:16:22 2023