lg-set: Add a broadcast whenever a user finds a set.
[loudgame] / lg-set.c
index 3a1a85383ffae31f75eb916c05f18bb0736b3740..a6594b27a3de4bc9ad9a621f68755f97e9a985ec 100644 (file)
--- a/lg-set.c
+++ b/lg-set.c
@@ -430,6 +430,10 @@ set_game_handle_set (set_game_t    *game,
 
     loudgame_sendf (&game->lg, peer,
                    "Yes, that's a set!");
+    loudgame_broadcastf (&game->lg,
+                        "%s found the set: %d %d %d. Please send a new 'show' command.",
+                        peer,
+                        slots[0], slots[1], slots[2]);
 
     for (i = 0; i < 3; i++)
        game->board.slots[slots[i]].has_card = 0;
@@ -451,7 +455,7 @@ set_game_handle_help (set_game_t *game,
                    "\tshuffle  \tReturn the cards to the deck, shuffle and deal\n"
                    "\t         \t(this is only allowed if no sets are possible)\n"
                    "\tset X Y Z\tClaim three cards as a set. The cards are numbered\n"
-                   "\t         \tleft-to-right, and top-to-bottom from 0 to 12.\n"
+                   "\t         \tleft-to-right, and top-to-bottom from 0 to 11.\n"
                    "\n"
                    "For more information about SET, or to purchase your own deck, visit\n"
                    "http://setgame.com . Please note that this server is unaffiliated\n"