diff --git a/horseshoes/horseshoes b/horseshoes/horseshoes index b5d9f5f..45b5721 100755 --- a/horseshoes/horseshoes +++ b/horseshoes/horseshoes @@ -21,12 +21,11 @@ read -n 1 -p "Press any key to continue. " continue get_cpu_name() { -local playerName=$1 -local getCpuNameVariable=$2 +local getCpuNameVariable=$1 local continue="false" while [ "$continue" == "false" ] ; do local cpuName=$(shuf -n 1 -e "Alicia" "Alonzo" "Anthony" "Billy" "Burt" "Cayden" "Dorothy" "Draken" "Dave" "Ember" "Jeremy" "Kendell" "Kyle" "Storm" "Tux") -if [ "${playerName^}" != "${cpuName^}" ] ; then +if [ "${player[1]^}" != "${cpuName^}" ] ; then local continue="true" fi done