}
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;
}
{
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"