X-Git-Url: https://git.cworth.org/git?p=loudgame;a=blobdiff_plain;f=lg-loa.c;h=a1949d3b8af20b640328da449c486ed82f0dd58c;hp=61e635124c5c591a6135f8e030668b92cef5431f;hb=8c682e3290eb67aa6e036fb83df92fbc1003e22f;hpb=7e33d9d0482f397390bea2f2ce17562ac2bb736d diff --git a/lg-loa.c b/lg-loa.c index 61e6351..a1949d3 100644 --- a/lg-loa.c +++ b/lg-loa.c @@ -412,7 +412,9 @@ loa_game_move (loa_game_t *game, const char * peer, } if (! board_move_legal (&game->board, x1, y1, x2, y2, &error)) { - loudgame_sendf (&game->lg, peer, "Illegal move: %s."); + loudgame_sendf (&game->lg, peer, "Illegal move: %c%d%c%d", + 'a' + x1, BOARD_SIZE - y1, + 'a' + x2, BOARD_SIZE - y2); return FALSE; } @@ -524,7 +526,10 @@ loa_game_handle_help (loa_game_t *game, const char *peer) { 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"