Silent Duelsвђ”constructing The Solution Part 2 Вђ“ Math В€© Programming File
In Part 3, we will look at , where one player is more accurate or has more bullets than the other.
While the math is continuous, a game engine or simulation usually runs on discrete ticks. You must normalize the PDF so that the sum of probabilities across all frames equals 1. 5. Summary of the Construction To build the solution: Define : How likely are you to hit at time Calculate the Threshold : The point where "waiting" becomes statistically viable. Generate the PDF : Use the derived to distribute firing chances. In Part 3, we will look at ,
The goal is to make the opponent's payoff constant regardless of when they shoot. This leads to an integral equation where the payoff The goal is to make the opponent's payoff
This second part of our dive into moves from the theoretical game-theoretic framework into the actual "meat" of the implementation: constructing the optimal firing strategy. : In the actual game loop
, but real-world simulations might use a sigmoid or exponential curve.
: In the actual game loop, sample from this distribution to decide the exact frame of the "Silent" shot.
is symmetric. Through some heavy lifting in calculus, we find that the optimal density is proportional to: