Cleanup
This commit is contained in:
@ -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}"
|
||||
|
Reference in New Issue
Block a user