Questions tagged [probability]
The probability tag has no summary.
32 questions
0
votes
0
answers
90
views
How to Implement Ray Casting and Aim Assist Scaling in UE5 Using C++ for FPS Mechanics?
I'm developing an FPS shooter in Unreal Engine 5 and currently working on the aiming mechanics for keyboard and mouse (KBM). I want to implement an aim assist system that uses ray casting to detect ...
0
votes
1
answer
146
views
Slot reels RTP(return to player) estimation
I am making a slot game with 3 x 5 reels. The RTP I am targeting is 99%. My reel data is given as (yaml):
...
0
votes
2
answers
181
views
How "Dodge" characteristic is calculated on enemy troops
I was torn about whether to post this as a game problem or as a maths problem. My maths is a little shaky, so thought maybe best to post here. The game, for anyone who is familiar with it, is War and ...
4
votes
2
answers
1k
views
How to calculate Chance of Success in a turn-based battle with chance to hit and damage roll + damage modifier?
I'm coding a choice-driven role-playing game and I want to give the player a percentage of his success chance in winning a battle before he chooses to start it. However, I have no clue how to make ...
1
vote
2
answers
250
views
Methods for generating unevenly distributed item stats?
Conceptually, generating item stats is the same as placing balls into buckets. An even distribution of 50 balls into 5 buckets looks like this: [10,10,10,10,10] whereas an uneven distribution might ...
1
vote
0
answers
180
views
Attack/Defence formula: ensure defender wins a certain percentage of the time
I have two simple stats for my attack formula, attack and defence.
I was reading through this answer which made it seem like ...
1
vote
1
answer
4k
views
How to generate boards for a game like GamePigeon's Word Hunt?
Naively, I would assume that there's an even probability of any of the 26 given letters appearing in a tile and that each tile is generated independently. After playing around a hundred times, though, ...
1
vote
1
answer
214
views
RNG random numbers/preset payout rate contradiction
Taking a casino slot machine for example: How can the probability of a payout TRULY be random with a preset payout rate?
If a casino has slots programmed to a specific rate or percentage of payout, ...
1
vote
1
answer
326
views
Calculating probabilities for a custom drop table system
I have a "drop table" / "loot table" / "item table" / "whatever you want to call it" system and I need to solve two Problems. Apologies in advance for the text ...
0
votes
1
answer
133
views
Preferred way of calculating run chances in Game of Cricket
For modelling a simple game of cricket, Considering a batsman has a single attribute rating. I can go about deciding run chances by weighted probabilities. ...
3
votes
1
answer
6k
views
How to make MathNet.Numerics work with Unity?
I have installed the latest version of MathNet on Visual Studio using the NuGet Package Manager. I've also, copied the MathNet.Numerics.dll to an Plugins folder in ...
5
votes
0
answers
120
views
Slot Probability Function
Please can someone point me in the right direction. I'm working on a slot game. that I'm having trouble figuring how to implement the probability function for. The game has a set of symbols that bets ...
3
votes
2
answers
444
views
Pathfinding with non-deterministic transitions between nodes
Consider a map not unlike a board game, where some of the moves are made non-deterministic. For example, moving onto certain cells will require you to roll a dice to determine where you should move ...
1
vote
2
answers
301
views
Spawn chance, modulated by probability weighted by progress
I've been struggling with this for over a day now. What seemed a simple task, has just wrecked me. I hope someone here can help me figure out what I'm missing. Please, please help me :)
The ...
1
vote
1
answer
337
views
How simulate a random distribution?
I'm working on a battle algorithm for a text-based game and I stumble when it comes to randomly distributing attacks on a set of units.
E.G, 100 archers shoot 100 targets at the same time. I thought ...