In this project, I've created an algorithm that can read if a certain gamble is worth it. Per example, rolling a die and if it lands on 6 you get 7 dollars, but everything else you get nothing and it costs 1 dollar to play. It can calculate this by finding the total number of outcomes and winning outcomes, then finding the winning probability. It then simply multiplies the benefit, or what you get for winning, by the probability and finally subtracts the cost to find the expected value. The expected value is the amount you will earn or lose each time you gamble and bet according to scientific reasoning (not luck). Obviously, the larger the number the better. (The algorithm Bp - C = EV)