From 2d48a704500081ba92799006c96c1a1ec7abc4ff Mon Sep 17 00:00:00 2001 From: Luxferre Date: Mon, 8 Jun 2026 17:56:30 +0300 Subject: [PATCH] simplified deck shuffling in scoundrel --- scoundrel | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scoundrel b/scoundrel index f97bbb3..724f4f5 100755 --- a/scoundrel +++ b/scoundrel @@ -24,8 +24,8 @@ declare -i score=-208 hp=20 can_run=1 engaged=0 drank=0 \ weapon=0 durability=0 rooms_clrd=0 last_potion_val=0 declare -a deck room=() -# initialize the deck the harder way to possibly avoid mapfile/subshell issues with iSH -IFS=' ' read -r -a deck <<< "$(shuf -e {1..13} {1..31} | { mapfile -t d; echo "${d[@]}"; })" +# initialize the deck +deck=($(shuf -e {1..13} {1..31})) # game logic functions