json_copy(game, "hands", sp_hands);
json_copy(game, "players", sp_players);
json_copy(game, "auths", sp_auths);
json_copy(game, "hands", sp_hands);
json_copy(game, "players", sp_players);
json_copy(game, "auths", sp_auths);
sp_acopy(sp_hands, game["hands"]);
sp_acopy(sp_players, game["players"]);
sp_acopy(sp_auths, game["auths"]);
sp_acopy(sp_hands, game["hands"]);
sp_acopy(sp_players, game["players"]);
sp_acopy(sp_auths, game["auths"]);
}
function sp_hand(to, who, sort, str)
}
function sp_hand(to, who, sort, str)
(sp_nil[i] == 1 && !sp_tricks[i] ? "makes nil!" :
sp_nil[i] == 1 && sp_tricks[i] ? "fails at nil!" :
sp_nil[i] == 2 && !sp_tricks[i] ? "makes blind nil!" :
(sp_nil[i] == 1 && !sp_tricks[i] ? "makes nil!" :
sp_nil[i] == 1 && sp_tricks[i] ? "fails at nil!" :
sp_nil[i] == 2 && !sp_tricks[i] ? "makes blind nil!" :
- say(sp_pile[winner] " wins with " sp_pretty(winner, FROM) \
- " (" sp_pretty(sp_piles, FROM) ")")
+ sp_say(sp_pile[winner] " wins with " sp_pretty(winner, FROM) \
+ " (" sp_pretty(sp_piles, FROM) ")")
winner = sp_scores[0] > sp_scores[1] ? 0 : 1
looser = !winner
say(CHANNEL, sp_team(winner) " wins the game " \
winner = sp_scores[0] > sp_scores[1] ? 0 : 1
looser = !winner
say(CHANNEL, sp_team(winner) " wins the game " \
- say(sp_channel, "Cards have been passed!")
- say(sp_channel, sp_player ": you have the opening lead!")
+ sp_say("Cards have been passed!")
+ sp_say(sp_player ": you have the opening lead!")
} else {
sp_looked[sp_players[sp_from]] = 1
say(FROM, "You have: " sp_hand(FROM, sp_from))
} else {
sp_looked[sp_players[sp_from]] = 1
say(FROM, "You have: " sp_hand(FROM, sp_from))
if (length(sp_hands[sp_from]))
say(FROM, "You have: " sp_hand(FROM, sp_from))
if (sp_piles)
if (length(sp_hands[sp_from]))
say(FROM, "You have: " sp_hand(FROM, sp_from))
if (sp_piles)