Commit cfdc401c authored by user472393's avatar user472393
Browse files

set ask variable in which_game funct

parent de2e6ed7
......@@ -104,7 +104,7 @@ parser () {
which_game
;;
ready|READY) # advertise
printer ">> GO << race wanted by $p1! (!$game help for more)"
printer ">> GO << $ask race wanted by $p1! (!$game help for more)"
quit "race wanted advertisement"
;;
live)
......@@ -232,6 +232,18 @@ which_game () {
[4]=big_master [5]=secret_master )
;;
esac
case $game in
camb)
ask=cambridge
;;
texy)
ask=texmaster
;;
shiro)
ask=shiromino
esac
test -z "$ask" && ask=$game
}
# are the resources (players, tv) available?
......@@ -407,17 +419,6 @@ remote_control () {
player_query () {
# ask for a game
case $game in
camb)
ask=cambridge
;;
texy)
ask=texmaster
;;
shiro)
ask=shiromino
esac
test -z "$ask" && ask=$game
printer "@$p2 (${elo_db[$p2]%.*}) want a $ask race with @$p1 (${elo_db[$p1]%.*})? reply !yes and you got it."
sleep 1
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment