#how do you make a value affect a chance without being the chance
1 messages · Page 1 of 1 (latest)
Let me explain
The formula on the right is the percentage that will be shown
n is the number you put in
x is the number that if put in it gives 100%
y is the number that if you put in it gives you 0%
Basically you choose x and y
And n is just a parameter
Better version (does the same thing)
there's 5 inputs
I might as well say it
I'm trying to make a bot for rock paper scissors that adapts based on your moves
there's 5 factors that it's meant to take into account:
- how many times have you played rock
- the above but for paper
- ditto but for scissors
- what was your last move
- what was your move before that
thanks for attempting to help though