This commit is contained in:
2023-12-05 14:15:19 +01:00
parent f9d37a028a
commit 8ccbf40783
3 changed files with 0 additions and 7 deletions

View File

@ -14,7 +14,6 @@ CARDS="${#INPUT[@]}"
run_cards ()
{
# Receives space separated list of cards I have.
for ((x=1; x<=CARDS; x++)); do
declare -a winning=() mine=()
declare -i matching=0
@ -45,7 +44,6 @@ main ()
done
run_cards "${hand[@]}"
for ((z=1; z<=CARDS; z++)); do
echo "card $z: ${hand[$z]}"
sum=$((sum+${hand[$z]}))
done
echo "${sum}"