{
loudgame_sendf (&game->lg, peer,
"I'm a bot that allows you to play the game Lines of Action.\n"
- "Here are some commands I understand:\n"
+ "Here are some generic commands I understand:\n"
+ LOUDGAME_HELP
+ "\n"
+ "And some game-specific commands:\n"
"\tshow \t\tShow the current board\n"
"\tmove aNbN\tMove a piece, (eg. 'move b1d3')\n"
"\tpass \t\tSkip a turn (only legal if no moves are possible)\n"
{
loudgame_sendf (&game->lg, peer,
"I'm a bot that allows you to play the game of SET.\n"
- "Here are some commands I understand:\n"
+ "Here are some generic commands I understand:\n"
+ LOUDGAME_HELP
+ "\n"
+ "And some game-specific commands:\n"
"\tshow \tShow the current cards on the board\n"
"\thint \tIndicate how many sets are currently possible\n"
"\tshuffle \tReturn the cards to the deck, shuffle and deal\n"
handle_message_cb handle_message;
};
+#define LOUDGAME_HELP \
+"\tsay message \t\tSay 'message' to everyone in the current game\n" \
+"\twhisper user message\tSay 'message' to 'user' only\n"
+
int
loudgame_init (loudgame_t *lg, int argc, char **argv);