This commit is contained in:
raul 2025-01-13 10:10:35 +01:00
parent 00b10964fa
commit 5786934cbc
Signed by: raul
GPG Key ID: C1AA797073F17129
1 changed files with 0 additions and 15 deletions

View File

@ -15,19 +15,6 @@ usage ()
exit
}
# for arg in "$@"; do
# if [[ "$arg" == "-h" || "$arg" == "--help" ]]; then
# usage
# exit
# fi
# if [[ "$arg" == "--attempts" ]]; then
# test=$((arg+2))
# ATTEMPTS_NUM=$((arg + 1))
# #ACTION_TO_TAKE="create-group"
# echo "Setting attempts to $ATTEMPTS_NUM"
# echo "${!1}"
# fi
# done
while getopts a:p:h flag; do
case "${flag}" in
a) ATTEMPTS_NUM=${OPTARG};;
@ -50,7 +37,6 @@ status() {
END_CAT
echo "Intenta adivinar el número entre 0 y $POOL_NUM!"
echo "Intentos restantes: $ATTEMPTS_NUM"
#echo "El numero es $RANDOM_NUM lol"
}
checkWin() {
@ -70,7 +56,6 @@ checkWin() {
ATTEMPTS_NUM=$((ATTEMPTS_NUM - 1))
return 0
fi
fi
}