From amiller @ vic.bigpond.net.au Thu Jun 3 13:47:53 CDT 1999 Article: 33989 of sci.math.num-analysis Path: news.math.niu.edu!husk.cso.niu.edu!vixen.cso.uiuc.edu!NewsNG.Chicago.Qual.Net!207.24.245.130!nyd.news.ans.net!news.idt.net!news.maxwell.syr.edu!intgwpad.nntp.telstra.net!news2.c2.telstra-mm.net.au!not-for-mail From: "Alan Miller" Newsgroups: sci.math.num-analysis Subject: Solitaire odds Date: Mon, 31 May 1999 14:43:01 +1000 Organization: Telstra Big Pond Cable - Sydney Site 1 Lines: 239 Message-ID: <7it40f$ddu$1@m2.c2.telstra-mm.net.au> NNTP-Posting-Host: 24.192.8.179 X-Trace: m2.c2.telstra-mm.net.au 928125775 13758 24.192.8.179 (31 May 1999 04:42:55 GMT) X-Complaints-To: news@m2.c2.telstra-mm.net.au NNTP-Posting-Date: 31 May 1999 04:42:55 GMT X-Newsreader: Microsoft Outlook Express 4.72.3155.0 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3155.0 Xref: news.math.niu.edu sci.math.num-analysis:33989 Someone asked about the chance of getting out the Windows game of Solitaire. I wrote a small Fortran program (attached) to estimate the chance. Using no skill, and running this program many times, the chance seems to be about 8.1%. If I find time, I may add some skill to see how much it lifts the chance. The attached program can be run using Lahey's free ELF90 compiler. -- Alan Miller, Retired Scientist (Statistician) CSIRO Mathematical & Information Sciences Alan.Miller -at- vic.cmis.csiro.au http://www.ozemail.com.au/~milleraj begin 666 Soltaire.f90 M4%)/1U)!32!S;VQI=&%IF5M86EL M+F-O;2YA=2]^;6EL;&5R86H-"B$@3&%T97-T(')E=FES:6]N("T@,S$@36%Y M(#$Y.3D-"@T*(2!497)M:6YO;&]G>2 H9G)O;2!T:&4@4V]L:71A:7)E(&AE M;' @9FEL92D-"@T*(2 K+2TM+2TM*R @*RTK("LM*R K+2L@*RTK#0HA('P@ M1$5#2R!\("!\07P@?#-\('PR?"!\-'P@(#PM+2!4:&4@-"!@4U5)5"!35$%# M2U,G#0HA("LM+2TM+2TK(" K+2L@*RTK("LM*R K+2L-"@T*(2 @("LM+2TM M+2TM+2TM+2TM+2TM+2TM+2T-"B$@("!\+2U\+2U\+2U\+2U\+2U\("!\+2U\ M#0HA(" @?"TM?"TM?" @?"TM?"TM?"TM?"TM? T*(2 @('PM+7PM+7PM+7PM M+7PM+7P@('PM+7P-"B$@("!\+2U\+2U\("!\+2U\+2U\("!\+2U\#0HA(" @ M?"TM?"TM?" @?"TM?"TM?" @?"TM? T*(2 @('PM+7PM+7P@('PM+7P@('P@ M('PM+7P-"B$@("!\+2U\("!\("!\+2U\+2U\("!\+2U\#0HA(" @?"TM?"TM M?" @?"TM?" @(" @?"TM? T*(2 @('PM+7P@(" @('PM+7P@(" @('P@('P- M"B$@("!\("!\(" @("!\("!\(" @("!\+2U\#0HA(" @?"TM?" @(" @?"TM M? T*(0T*(2 @(" @5&AE(#<@8%)/5R!35$%#2U,G#0H-"@T*24U03$E#250@ M3D].10T*#0I465!%(#HZ(&-AF4-"DQ/1TE#04P@(" @(#HZ('-U M8V-E2@I#0H@($-!3$P@<&QA>2AS=6-C M97-S*0T*("!)1B H2!O9B!C87)DF5S(#$L(#(L+BXN+" W+ T*(2!W:71H(&]N;'D@=&AE('1O M<"!C87)D('9I0T*#0H-"@T*4U5"4D]55$E.12!R86YD;VU?;W)D97(H;W)D97(L(&XI#0H- M"B$@(" @($=E;F5R871E(&$@2!T:&4@2@I#0H-"C$P('!O2!C M;VQU;6X_#0H-"B @248@*'9A;" ]/2 Q,RD@5$A%3@T*#0HA($$@2VEN9R H M=F%L(#T@,3,I(&-A;B!O;FQY(&=O(&EN=&\@86X@96UP='D@8V]L=6UN+@T* M#0H@(" @1$\@8V]L(#T@,2P@-PT*(" @(" @248@*&)O='1O;2AC;VPI(#T] M(# I(%1(14X-"B @(" @(" @8F]T=&]M*&-O;"D@/2 Q#0H@(" @(" @(&9I MF4I#0H@(" @(" @(&1E8VM?F4@ M/3T@,"D@5$A%3@T*("!)1BA!3$PH2!P=71T M:6YG('5P(&]N=&\@=&AE('-U:70@2!O=&AE2@I#0H-"B$@1&ES<&QA>2!C=7)R96YT('-T86-KF4@/2F4I)7-U:70L("<@(" @4W5I M="!S=&%C:W,Z("'0@/2 G)PT*("!$3R!C;VP@/2 Q+" W#0H@(" @248@*')O M=R ^(&)O='1O;2AC;VPI*2!#64-,10T*(" @('!O'0H<&]S.G!O0T*#0I%3D0@4%)/1U)!32!S;VQI=&%I