NebiuAlien and mini-Shogi (For Daniel)

Discussion of chess software programming and technical issues.

Moderator: Ras

phenri
Posts: 284
Joined: Tue Aug 13, 2013 9:44 am

Re: NebiuAlien and mini-Shogi (For Daniel)

Post by phenri »

Daniel Shawul wrote:Can't you see your 5 minute is up like your fried Lo.
Too bad I am not as patient as HG.
Sorry, I do not understand what you mean exactly?
User avatar
hgm
Posts: 28387
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: NebiuAlien and mini-Shogi (For Daniel)

Post by hgm »

phenri wrote:I forgot one thing, I do not see the option "Ponder On/Off"
Ponder can be switched in the General Options dialog as well as in the Adjudication Options dialog. I admit neither of this is very logical, and mainly for historic reasons. If I would have to design it from scratch, I would put it in Common Engine Options, as in my mind it is sort of similar in function as the number of CPUs. Perhaps in a future version I will also put a checkbox for it there.
User avatar
hgm
Posts: 28387
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: NebiuAlien and mini-Shogi (For Daniel)

Post by hgm »

I am creating the mini-Shogi package now, but I have a question about Nebiyu. By default it was configured to use a pieceToCharTable that assigns letters to the promoted pieces. WinBoard, however, needs them defined as '+', to know it has to apply the Shogi conventions on them (i.e. demote to the base type on capture rather than to Pawn, prefix the base type with + in SAN etc.) So it needs something like

Code: Select all

 P.BR.S...G.+.++.+....Kp.br.s...g.+.++.+....k
Does Nebiyu use the pieceToCharTable defined in the alien.ini file for anything else than sending it to WinBoard, or can I safely modify it to anything WinBoard needs to receive in the setup command?

I suppose Nebiyu does accept + and = as promotion suffixes. (I vaguely remember we discussed this before). Would it also accept +B in a setboard FEN as Dragon Horse? (If not, its setboard would be broken in (mini-Shogi).
Daniel Shawul
Posts: 4186
Joined: Tue Mar 14, 2006 11:34 am
Location: Ethiopia

Re: NebiuAlien and mini-Shogi (For Daniel)

Post by Daniel Shawul »

I can see in the position setup code that it accepts a '+' and decodes it to a promoted piece, so it should work as it is. Do not change the game script with a '+B' because it accepts only a single char. When it sends a setup to winboard, it uses those internal letters (so does not a prepend it with a +), and then winboard matches the letters with the corresponding char in the pieceToChar. I think it worked in the past but I am not sure if it will not fail. I will try some positions, but you can assume it works unless you make it fail somehow.
User avatar
hgm
Posts: 28387
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: NebiuAlien and mini-Shogi (For Daniel)

Post by hgm »

Well, there are no promoted pieces in the initial setup, so what it would send for them does not really matter. WinBoard would ignore later setups in variant shogi anyway. The concern is more that WinBoard should not be told in the initial setupcommand that Dragon Horse = O (for example), as this would make it use O in stead of +B in SAN it would write for Dragon-Horse moves to the PGN when the user saves the game.