Skip to content
Snippets Groups Projects
Commit ac8b8d06 authored by Nikolai Milenko's avatar Nikolai Milenko :grinning:
Browse files

fix errors

parent 90e0e091
Branches
No related tags found
No related merge requests found
......@@ -8,6 +8,7 @@ declare -A deck=(
choice="j"
bilanz=1000
declare -a player_cards dealer_cards
karte_ziehen() {
local keys=(${!deck[@]})
......@@ -49,7 +50,8 @@ while [[ true ]]; do
player_score=0
dealer_score=0
declare -a player_cards dealer_cards
player_cards=()
dealer_cards=()
einsatz=0
echo -e "\033[34mIhr Kontozustand: $bilanz\033[0m"
......@@ -57,6 +59,7 @@ while [[ true ]]; do
if [[ $einsatz -gt $bilanz ]]; then
echo -e "\n\033[31mLeider haben Sie nicht genügend Guthaben für diese Runde.\033[0m"
continue
fi
while [[ player_score -lt 21 ]]; do
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment