From 84d1d8fa6b1a8757ab6fef7174c6f115b4a75862 Mon Sep 17 00:00:00 2001 From: IFcoltransG <47414286+IFcoltransG@users.noreply.github.com> Date: Thu, 23 Nov 2023 15:33:59 +1300 Subject: [PATCH] I136, ensure sequences contain each entry once per shuffle --- ink/I136/input.txt | 0 ink/I136/metadata.json | 6 ++++++ ink/I136/story.ink | 19 +++++++++++++++++++ ink/I136/transcript.txt | 2 ++ 4 files changed, 27 insertions(+) create mode 100644 ink/I136/input.txt create mode 100644 ink/I136/metadata.json create mode 100644 ink/I136/story.ink create mode 100644 ink/I136/transcript.txt 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