diff --git a/ink/I136/input.txt b/ink/I136/input.txt new file mode 100644 index 0000000..e69de29 diff --git a/ink/I136/metadata.json b/ink/I136/metadata.json new file mode 100644 index 0000000..13916bf --- /dev/null +++ b/ink/I136/metadata.json @@ -0,0 +1,6 @@ +{ + "oneLineDescription": "Shuffle gives all results", + "tags": [ + "sequences" + ] +} diff --git a/ink/I136/story.ink b/ink/I136/story.ink new file mode 100644 index 0000000..504f122 --- /dev/null +++ b/ink/I136/story.ink @@ -0,0 +1,19 @@ +VAR loops_left = 100 +VAR ace_of_hearts = 0 +VAR ace_of_spades = 0 +-> draw_cards + +=== draw_cards +{loops_left == 0: -> end} +// every shuffle of the cards produces each card once (in a random order) +{shuffle: +- ~ ace_of_hearts++ +- ~ ace_of_spades++ +} +~ loops_left-- +-> draw_cards + +=== end +Hearts: {ace_of_hearts} +Spades: {ace_of_spades} +-> END diff --git a/ink/I136/transcript.txt b/ink/I136/transcript.txt new file mode 100644 index 0000000..f747a2b --- /dev/null +++ b/ink/I136/transcript.txt @@ -0,0 +1,2 @@ +Hearts: 50 +Spades: 50