Fulqrum Publishing Home   |   Register   |   Today Posts   |   Members   |   UserCP   |   Calendar   |   Search   |   FAQ

Go Back   Official Fulqrum Publishing forum > Fulqrum Publishing > IL-2 Sturmovik: Cliffs of Dover > Pilot's Lounge

Pilot's Lounge Members meetup

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 05-08-2012, 11:36 PM
raaaid's Avatar
raaaid raaaid is offline
Approved Member
 
Join Date: Apr 2008
Posts: 2,329
Default informatic proof that the 8 ball that tells the fture works partially

this is a simple program most can do and its made on the monty hall problem

re:
'this is the door of 3 behind behind which it is the prize
a=math.GetRandomNumber(3)
re1:
'this is the door the host discarded the previous week
b= math.GetRandomNumber(3)
'this is the door number you pick without having wathced the show the previous week
'and not knowing a door has been discarded
c= math.GetRandomNumber(3)
'this is in case you pick the discraded by the host door by
'which you would be sent to sleep and start over
If b=c Then
Goto re1
EndIf
'there are two left doors so its a 50% chance

If a=c Then
'If you get the right door right you win one coin
bob=bob+1
Else
'if you get the wrong door you lose one coin
bob=bob-1
EndIf
'remember its a 50% chance there being two door, if you win you win one if you lose you lose one
'now you can run the program and check how bad you lose for not swithcing door
TextWindow.WriteLine(bob)
Goto re

the key for this is that in a 2 choice option you add a virtual 3rd option

so you trow a 3 sides dice and every time it appears the virtual option you say plz ask another time

then applying the monty hall thing you have a 66% chance to be right following the 8 ball where if you didnt you would have just a 50%

seems the truth its been always out there:



edit:

another identical thing between my program and the magic 8ball:

from the wiki:

To use the ball, it must be held with the window initially facing down. After "asking the ball" a yes-no question (and shaking the ball), the user then TURNS the ball so that the window faces up,

edit:

its wrong, the logic is wrong its posible with this program the prize and the discarded door its the same

edit:

here the program corrected and tweaked seems right now, oh my god this is stealing my energies

re:
'this is the door of 3 behind behind which it is the prize
a=math.GetRandomNumber(3)
'this is the door the host discarded the previous week, you have bad memory but you remember
'it was not discarded door number 3
re1:
b= Math.GetRandomNumber(2)

'this is so the discarded door is different than the price
If a=b Then
Goto re1
EndIf
'this is the door number you pick without being very sure which was the discraded door
'as you know for sure the 3 wasnt discarded you decide to always pick door number 3 initially
c= 3
'there are two left doors so its a 50% chance
If a<>c Then
'If you get the right door right you win one coin
bob=bob+1
Else
'if you get the wrong door you lose one coin
bob=bob-1
EndIf
'remember its a 50% chance there being two door, if you win you win one if you lose you lose one
'now you can run the program and check how much you win by switching the pick
TextWindow.WriteLine("your gains are="+bob)
Goto re
__________________
http://i40.photobucket.com/albums/e222/raaaid/fmkld-1.jpg2.4ghz dual core cpu
3gb ram
ASUS Radeon EAH4650 DI - 1 GB GDDR2

I PREFER TO LOVE WITHOUT BEING LOVED THAT NOT LOVE AT ALL

Last edited by raaaid; 05-09-2012 at 11:36 PM.
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:41 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2007 Fulqrum Publishing. All rights reserved.