From 7aee2e1a7d26b5339ff055072e22d602049c1fd5 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Wed, 7 May 2014 18:28:09 -0400 Subject: [PATCH] cpu name changes on continue --- horseshoes/horseshoes | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/horseshoes/horseshoes b/horseshoes/horseshoes index 6be3d97..e407364 100755 --- a/horseshoes/horseshoes +++ b/horseshoes/horseshoes @@ -232,6 +232,13 @@ play -qV0 sounds/win.ogg read -n 1 -p "Play again? " answer if [ "${answer^}" != "Y" ] ; then gameLoop="false" +else +if [ "$1" == "c" ] ; then +player[1]="$(get_cpu_name)" +fi +if [ "$vsCpu" == "true" ] ; then +player[2]="$(get_cpu_name)" +fi fi done exit 0