mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-24 17:29:28 +01:00
Fix INTRUDER and add padding to second text line
b41ce8828c (r47461104)
This commit is contained in:
parent
75a4e23996
commit
9525978f26
@ -60,7 +60,7 @@ then
|
|||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for num in "${NUMBERS[@]}"
|
for num in ${NUMBERS}
|
||||||
do
|
do
|
||||||
get_random
|
get_random
|
||||||
R=$((R % 100))
|
R=$((R % 100))
|
||||||
@ -76,9 +76,9 @@ get_random
|
|||||||
R=$((R % 100))
|
R=$((R % 100))
|
||||||
|
|
||||||
if [[ $R -lt 50 ]]; then
|
if [[ $R -lt 50 ]]; then
|
||||||
printf "Type %s by\n deleting the %s" "$NEWINPUT" "${DIGIT[$INTRUDER]}"
|
printf "Type %s by\n deleting the %s" "$NEWINPUT" "${DIGIT[$INTRUDER]}"
|
||||||
else
|
else
|
||||||
printf "Enter %s by\n removing the %s" "$NEWINPUT" "${DIGIT[$INTRUDER]}"
|
printf "Enter %s by\n removing the %s" "$NEWINPUT" "${DIGIT[$INTRUDER]}"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -100,13 +100,13 @@ get_random
|
|||||||
R=$((R % 100))
|
R=$((R % 100))
|
||||||
|
|
||||||
if [[ $R -lt 25 ]]; then
|
if [[ $R -lt 25 ]]; then
|
||||||
printf "Type the result\n of %s + %s" "$A" "$B"
|
printf "Type the result\n of %s + %s" "$A" "$B"
|
||||||
elif [[ $R -lt 50 ]]; then
|
elif [[ $R -lt 50 ]]; then
|
||||||
printf "SUMx\n %s and %s" "$A" "$B"
|
printf "SUMx\n %s and %s" "$A" "$B"
|
||||||
elif [[ $R -lt 75 ]]; then
|
elif [[ $R -lt 75 ]]; then
|
||||||
printf "Add\n %s and %s" "$A" "$B"
|
printf "Add\n %s and %s" "$A" "$B"
|
||||||
else
|
else
|
||||||
printf "Enter the result\n of %s + %s" "$A" "$B"
|
printf "Enter the result\n of %s + %s" "$A" "$B"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user