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

fix errors

parent 90e0e091
No related branches found
No related tags found
No related merge requests found
...@@ -8,6 +8,7 @@ declare -A deck=( ...@@ -8,6 +8,7 @@ declare -A deck=(
choice="j" choice="j"
bilanz=1000 bilanz=1000
declare -a player_cards dealer_cards
karte_ziehen() { karte_ziehen() {
local keys=(${!deck[@]}) local keys=(${!deck[@]})
...@@ -49,7 +50,8 @@ while [[ true ]]; do ...@@ -49,7 +50,8 @@ while [[ true ]]; do
player_score=0 player_score=0
dealer_score=0 dealer_score=0
declare -a player_cards dealer_cards player_cards=()
dealer_cards=()
einsatz=0 einsatz=0
echo -e "\033[34mIhr Kontozustand: $bilanz\033[0m" echo -e "\033[34mIhr Kontozustand: $bilanz\033[0m"
...@@ -57,6 +59,7 @@ while [[ true ]]; do ...@@ -57,6 +59,7 @@ while [[ true ]]; do
if [[ $einsatz -gt $bilanz ]]; then if [[ $einsatz -gt $bilanz ]]; then
echo -e "\n\033[31mLeider haben Sie nicht genügend Guthaben für diese Runde.\033[0m" echo -e "\n\033[31mLeider haben Sie nicht genügend Guthaben für diese Runde.\033[0m"
continue
fi fi
while [[ player_score -lt 21 ]]; do 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