1) go to this: https://www.programiz.com/python-progra ... -compiler/
2) delete these 3 lines on the left half of screen
3) copy there my code
4) click run
5) enter data to the right right half of the screen
note: If it bugs in input, just run it again
note2: When Albert attacks Gamma. I think the probabilities are correct, I checked few numbers and it seems to correct.
def chanceToRoll (number, rolls):
if number < 0 or number > rolls*2:
return 0
if rolls == 1:
return 1/3
return (chanceToRoll(number, rolls-1) + chanceToRoll(number - 1, rolls-1) + chanceToRoll(number - 2, rolls-1)) / 3
mode = int(input("If you wish to activate lab, enter 0. If you wish to attack, enter 1: "))
if mode == 0:
myStat = int(input("Enter your knowlege: "))
activationCost = int(input("Enter how many knowledge to activate the lab: "))
result = 0
for i in range (activationCost, myStat * 2 + 1):
result += chanceToRoll (i, myStat)
print ("You will activate the lab with probability of: " + str(round(result*100, 1)) + "%")
if mode == 1:
myStat = int(input("Enter your roll stat: "))
enemyStat = int(input("Enter enemy roll stat: "))
bonus = int(input("Enter your bonus to roll (can be negative): "))
knockOut = int(input("Enter how many damage is needed for KO: "))
result = []
for i in range (0, myStat*2 + bonus + 1):
result.append(0)
for i in range (0, enemyStat*2 + 1):
for j in range (0, myStat*2 + bonus + 1):
if j < i:
result[0] += chanceToRoll(i, enemyStat) * chanceToRoll(j - bonus, myStat)
else:
result[j-i] += chanceToRoll(i, enemyStat) * chanceToRoll(j - bonus, myStat)
for i in range (0, knockOut):
print("Chance to deal " + str(i) + " damage is " + str(round(result[i]*100, 1)) + "%")
a = 0
for i in range (knockOut, myStat*2 + bonus + 1):
a += result[i]
print("Chance to kill the enemy is " + str(round(a * 100, 1)) + "%")
I wrote a program to tell you how likely you are to activate lab/ attack enemy.
I am a Prophet. Twice per game I can select the type of room I discover with my next exploration action.
Mod: can we use this ability to say for example, I want to find a weapons cache room? Or say we want to find a Vault? What if there's no room called vault? How does this item / lavar's prophet ability work?
The types of rooms that can be selected using this ability are listed in the description of player actions:
you find a new Room, which could contain one of the following: Items, Events, Rooms with permanent actions, or
LABS
.
I'm not sure whether any actions have been confirmed as submitted. Please make sure you are bolding your submissions of actions so I can distinguish discussion from submission.
Posted: Wed Oct 14, 2020 7:32 am
by I Keep Siteflaking
Gamma:
Chance to deal 0 damage is 40.3%
Chance to deal 1 damage is 19.3%
Chance to deal 2 damage is 17.3%
Chance to deal 3 damage is 12.3%
Chance to kill the enemy is 10.7%
Posted: Wed Oct 14, 2020 7:33 am
by I Keep Siteflaking
Cake:
Chance to deal 0 damage is 21.0%
Chance to deal 1 damage is 18.5%
Chance to deal 2 damage is 21.0%
Chance to deal 3 damage is 18.5%
Chance to deal 4 damage is 12.3%
Chance to kill the enemy is 8.6%
Posted: Wed Oct 14, 2020 7:42 am
by I Keep Siteflaking
IKS finds room containing Items
Lavar finds room containing Items
ABR rampages on Gamma using factional attack
ABR rampages on FaG using his action
ABR ropes gym
We reduce knowledge of Nosferatu
IKS finds room containing Items
Lavar finds room containing Items
ABR rampages on Gamma using factional attack
ABR rampages on FaG using his action
ABR ropes gym
We reduce knowledge of Nosferatu
Please note that the Rope has been discarded. confirming the remaining actions.
Posted: Wed Oct 14, 2020 7:51 am
by I Keep Siteflaking
In post 225, Albert B. Rampage wrote:can we crunch some numbers for stats to find out my % to kill a 3-3 player and a 3-2 player?
On paper, you basically can write all possible combinations, count how many times you do n damage and divide it by total amount of combinations.
You can speed up the process a little by using Bernoulli. But it still is a nuisance.
Posted: Wed Oct 14, 2020 7:52 am
by Albert B. Rampage
the rope is one-use only.
IKS finds room containing Items using his item power
Lavar finds room containing Items using his career power
ABR attacks Gamma using factional attack + career power
ABR goes to the gym
We reduce knowledge of Nosferatu
Depends on ABR, but I think that ability to kill is more useful than labs.
Plus there is an obnoxiously huge amount of players who can disable labs right now.