Moderator: Andres Valverde
H.G.Muller wrote:Well, I made Smirfoglot. But that was long ago, and I don't remember much about it. I wonder if I could still find the source code. Perhaps on some old computer I have still lying around somewhere.
if((sscanf(line+8, "normal%c", &c)==1 && c=='\n')||(sscanf(line+8, "fischerandom%c", &c)==1 && c=='\n')) FEN = FENs[0]; else
H.G.Muller wrote:Apparently SMIRF uses another notation for castling as WinBoard provides. I think the default in FRC is O-O and O-O-O. Perhaps SMIRF wants KxR format?
H.G.Muller wrote:You could get that by having the engine emit feature oocastle=0 .
(* deleted *)
Roland Chastain wrote:I confirm that Smirf accepts Schredder-FEN.
uses
SysUtils, SmirfEngine;
begin
// Set initial position
WriteLn(DoCmd('E', 'F', 0, 'nrnkbrqb/pppppppp/8/8/8/8/PPPPPPPP/NRNKBRQB w FBfb - 0 1'));
// Get current position
WriteLn(DoCmd('F', 'S'));
end.
// Output
{
nrnkbrqb/pppppppp/8/8/8/8/PPPPPPPP/NRNKBRQB w KQ - 0 1
}
position fen rnqnkrbb/pppppppp/8/8/8/8/PPPPPPPP/RNQNKRBB w FAfa - 0 1 moves d2d3 b8c6 f2f3 d8e6 g1f2 g7g5 e2e4 h8e5 e1f1 // nok
position fen rnqnkrbb/pppppppp/8/8/8/8/PPPPPPPP/RNQNKRBB w FAfa - 0 1 moves d2d3 b8c6 f2f3 d8e6 g1f2 g7g5 e2e4 h8e5 O-O // nok
position fen rnqnkrbb/pppppppp/8/8/8/8/PPPPPPPP/RNQNKRBB w FAfa - 0 1 moves d2d3 b8c6 f2f3 d8e6 g1f2 g7g5 e2e4 h8e5 e1g1 // ok
position fen nrnqbbkr/pppppppp/8/8/8/8/PPPPPPPP/NRNQBBKR w HBhb - 0 1 moves e2e4 c8d6 f2f3 a8b6 b2b3 e7e6 c2c4 f7f5 c4c5 f5e4 c5d6 f8d6 f3e4 g8h8
'M' 'A' nr -- => show the currently prepared move <nr> in
algebraic form (letter, digit, letter, digit, extra),
source before target, where extra is the lower promotion
piece code (English) or zero. When a King's castling
move does less than two elementary steps, the involved
Rook's coordinate will be used as target coordinate.
(or else 0L, if move <nr> does not exist)
This codes are sent back to the engine in case that
a move would be selected.
Return to Programming and Technical Discussions
Users browsing this forum: No registered users and 2 guests