diff --git a/guess_number.sh b/guess_number.sh index 612ac66..d45ce94 100755 --- a/guess_number.sh +++ b/guess_number.sh @@ -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 }