Data commit

This commit is contained in:
Ingy döt Net 2023-07-01 11:58:00 -04:00
parent 7387c8f97b
commit cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions

View file

@ -0,0 +1 @@
pick=: {~ ?@#

View file

@ -0,0 +1 @@
DOORS=:1 2 3

View file

@ -0,0 +1 @@
scenario=: ((pick@-.,])pick,pick) bind DOORS

View file

@ -0,0 +1 @@
stayWin=: =/@}.

View file

@ -0,0 +1 @@
switchWin=: pick@(DOORS -. }:) = {:

View file

@ -0,0 +1,2 @@
+/ (stayWin,switchWin)@scenario"0 i.1000
320 680

View file

@ -0,0 +1,11 @@
simulate=:3 :0
1 2 3 simulate y
:
pick=. {~ ?@#
scenario=. ((pick@-.,])pick,pick) bind x
stayWin=. =/@}.
switchWin=. pick@(x -. }:) = {:
r=.(stayWin,switchWin)@scenario"0 i.y
labels=. ];.2 'limit stay switch '
smoutput labels,.":"0 y,+/r
)

View file

@ -0,0 +1,4 @@
simulate 1000
limit 1000
stay 304
switch 696

View file

@ -0,0 +1,4 @@
1 2 3 4 simulate 1000
limit 1000
stay 233
switch 388