Post: Make Me A Simple Calculator (vBux)
08-12-2011, 02:45 AM #1
Adam West
git muny
(adsbygoogle = window.adsbygoogle || []).push({}); I'll 50k vBux to whoever can make me an odds calculator when the odds are 50/50
What i want it to do: calculate my odds of winning and showing it in % after a series of wins and losses.
The Math (probably explained terribly) :
If the odds are 50/50 the one that gets picked (Win or Loose) gets divided in 2 and Half stays and the other Half goes to the other side. If you don't get it look at the example below


Example:The beginning Odds are 50%Win/50%Loss
1rst Game: If I win the odds will be 25%Win/75%Loss
2nd Game: if I win again the odds will be 12.5%Win/87.5%Loss
3rd Game: If I loose the odds will be 56.25%Win/43.75%Loss

250k vBux and +10 rep to the first person that makes this for me
(adsbygoogle = window.adsbygoogle || []).push({});
08-13-2011, 08:05 AM #20
Epic?
Awe-Inspiring
Originally posted by Adam
You must login or register to view this content.

Uploaded with You must login or register to view this content. I Hope this helps


I see what you're getting at. I'll rebuild the program for ya!
08-13-2011, 08:10 AM #21
Adam West
git muny
Originally posted by Curt View Post
hm, so you wan't something that gives a 50/50 output ? why not toss a coinAwesome face

for the results i want it's much more complicated than that, read later posts to find out

---------- Post added at 04:10 AM ---------- Previous post was at 04:10 AM ----------

Originally posted by AsianInvasion View Post
I see what you're getting at. I'll rebuild the program for ya!

alright i hope you get i right this time Happy
08-13-2011, 08:15 AM #22
Epic?
Awe-Inspiring
Originally posted by Adam
for the results i want it's much more complicated than that, read later posts to find out

---------- Post added at 04:10 AM ---------- Previous post was at 04:10 AM ----------


alright i hope you get i right this time Happy

Okay, I'm working on it now, I think it'll be more efficient to not do it in C++, so I'll probably create it in C#, if that's okay with you.

It should be correct, I'm following your explanation.
08-13-2011, 08:20 AM #23
Adam West
git muny
Originally posted by AsianInvasion View Post
Okay, I'm working on it now, I think it'll be more efficient to not do it in C++, so I'll probably create it in C#, if that's okay with you.

It should be correct, I'm following your explanation.

whats C#? as long as i don't need to download anything extra than the program i'm fine
08-13-2011, 08:23 AM #24
Epic?
Awe-Inspiring
Originally posted by Adam
whats C#? as long as i don't need to download anything extra than the program i'm fine


Do you have Microsoft Windows?

If you have any version of Windows, you should be fine. I believe it may also be able to run on Linux or Mac operating systems with the use of other programs.

Otherwise, I'll just re-implement it into another language, but C# would be optimal because it has all the parts I need, and can be compiled into an executable.
08-13-2011, 08:25 AM #25
Adam West
git muny
Originally posted by AsianInvasion View Post
Do you have Microsoft Windows?

yes Windows 7, if i have evrything i should need just get to it no need to reply
08-13-2011, 08:43 AM #26
Epic?
Awe-Inspiring
Originally posted by Adam
yes Windows 7, if i have evrything i should need just get to it no need to reply


If you have Windows 7, it should run beautifully.

I think I have it working, tell me what you think, based on the screenshot of its completed calculations....

You must login or register to view this content.

Does that work for you?

Don't mind the 0.25 at the beginning, I know its supposed to be a 50% chance, and 0.25 would correspond to a 25% chance... This is because that's actually the first calculation it performs. I didn't set it to show initial "first run" values. I can set it that way if you like, but it'll always be 0.5 and that's pretty boring.
08-13-2011, 08:46 AM #27
Adam West
git muny
not exactly, both win potential and loss potential should add up to 100, these numbers dont
08-13-2011, 08:51 AM #28
Epic?
Awe-Inspiring
Originally posted by Adam
not exactly, both win potential and loss potential should add up to 100, these numbers dont


Oh yeah. LOL.
That's my bad. Its because in order to get the 78.90... number I multiply by 100. Forgot to do that to the loss number. Here ya go:

You must login or register to view this content.

Better?

Yeah... I'm sorry, that was just a stupid mistake (partially resulting from my tiredness). Just added the multiply by 100, so it'll come out looking like a percentage.

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo