How to create opening library for bughouse chess playing Sjeng engine ?
- Create text file (in notepad) bug.opn in subdirectory where Sjeng is (typically DoubleChessBoard1_22\Engines\Sjeng85\)
- In bug.opn You can write variants as lines, one row is one variant, if more variants is playable in the same time, Sjeng will select one randomly.
- Example:
e2e4 d7d5
e2e4 g8f6
e2e4 b8c6
means that Sjeng as black will play as response on 1.e4 d5 or Nf6 or Nc6
Bughouse chess opening library for Sjeng - Hints
- You can sign moves by ? or !
Moves with ? will Sjeng never play, but will use library to play moves which are wrote as reaction.
Moves sign ! will always be preferred.
Example:
h2h3? e7e5
e2e4 h7h5? d2d4!
e2e4 h7h5 d2d3
Sjeng will never play as white 1.h3 and never 1.-h5 as black if white plays 1.e4,
but Sjeng as white after playing 1.e4, if black will play 1.-h5 will always play 2.d4
and the line e2e4 h7h5 d2d3 has no sense here.
-
In variants can be also pieces drops, use @ character, if Sjeng has in stuff the piece,
it will play such move, attention: the droped pieces has to be in lowercase (some sjeng speciality :)) !
Example:
g1f3 p@f6 n@g5? f6g5 f3g5 g8h6
g1f3 b@f6 n@g5? f6g5 f3g5 g8h6
Attention:
Example:
g1f3 p@f6 n@g5? f6g5 f3g5 g8h6
g1f3 b@f6! n@g5? f6g5 f3g5 g8h6
This is bad, because if Sjeng as black will not have Bishop to drop B@f6,
it will not play p@f6, even if will have pawn in hand, but will simply ignore this by ! not signed alternative and will think instead what to play.
so right is or
g1f3 p@f6 n@g5? f6g5 f3g5 g8h6
g1f3 b@f6 n@g5? f6g5 f3g5 g8h6
or
g1f3 p@f6! n@g5? f6g5 f3g5 g8h6
g1f3 b@f6! n@g5? f6g5 f3g5 g8h6
- Examples:
b2b4 b7b5 a2a4 b5a4 a1a4 d7d5 g1f3 p@f6
if will play 4 Sjengs and only this in opening library, they will always drop Pawn on f6 in 4. black move.
-
Probability/frequency with which will Sjeng play some move, is simply given numbers of lines that including that move in given position.
Example:
e2e4
b2b4
b2b4
b2b4
b2b4
b2b4
b2b4
b2b4
b2b4
b2b4
Sjeng will in 10% play 1.e4 and in 90% 1.b4
- Opening library example : bug.opn (mattjb), bug2.opn (SKAcz)
- Sjeng reading opening book always when new game stars, so You can continuously after every game (or after opening) improving moves in library without restarting this chess engine.
Tato stranka cesky ...