cpu name changes on continue
This commit is contained in:
parent
3f79c0493d
commit
7aee2e1a7d
@ -232,6 +232,13 @@ play -qV0 sounds/win.ogg
|
|||||||
read -n 1 -p "Play again? " answer
|
read -n 1 -p "Play again? " answer
|
||||||
if [ "${answer^}" != "Y" ] ; then
|
if [ "${answer^}" != "Y" ] ; then
|
||||||
gameLoop="false"
|
gameLoop="false"
|
||||||
|
else
|
||||||
|
if [ "$1" == "c" ] ; then
|
||||||
|
player[1]="$(get_cpu_name)"
|
||||||
|
fi
|
||||||
|
if [ "$vsCpu" == "true" ] ; then
|
||||||
|
player[2]="$(get_cpu_name)"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
exit 0
|
exit 0
|
||||||
|
Loading…
Reference in New Issue
Block a user