bonanza.git
10 years agoFix analysis mode in non-XBoard build
H.G. Muller [Sat, 14 Sep 2013 10:05:26 +0000]
Fix analysis mode in non-XBoard build

The declaration of the analyze_mode flag was in an XBOARD-controlled
conditional code section.

10 years agoFix Linux sigint problem
H.G. Muller [Sat, 14 Sep 2013 09:27:18 +0000]
Fix Linux sigint problem

Bonanza does not disable signals, and would thus be killed by XBoard
sending SIGINT. The sigint=0 feature now pervents that.

10 years agoFix pondering in XBoard mode
H.G. Muller [Sat, 14 Sep 2013 09:24:13 +0000]
Fix pondering in XBoard mode

The piece ID needed in CSA move notation is now obtained from the
root_move_list in case a ponder search is in progress, so that it
cannot be obtained from the BOARD.

10 years agoMake multi-PV mode accessible from XBoard protocol
H.G. Muller [Fri, 13 Sep 2013 17:37:59 +0000]
Make multi-PV mode accessible from XBoard protocol

Multi-PV mode uses another routine for printing the PVs, which had to be
adapted. In native mode Bonanza repeats all PVs all the time; in XBoard mode
it suppresses printing of all but the latest. Option features were added
to set number of PVs and margin.

10 years agoImplement analyze command
H.G. Muller [Fri, 13 Sep 2013 15:49:44 +0000]
Implement analyze command

To implement infinite analysis, the 'analyze' and 'exit' commands are added.
A search with flag_ponder set is used to do the analysis. When in analyze
mode, such a search will be automatically restarted after receiving a move
or undo command.

10 years agoImplement undo command
H.G. Muller [Fri, 13 Sep 2013 13:42:27 +0000]
Implement undo command

This is decoded with the native bonanza commands, and should thus work
both in xboard and native mode. It resets the game by faking a 'new' command,
and then loads all moves except the last. For this the move list and startup
string needed to be remembered.

13 years agoAdd XBoard protocol drivers
H.G. Muller [Wed, 20 Oct 2010 18:25:57 +0000]
Add XBoard protocol drivers

So far only those commands needed for playing games from the initial
position. Commands like 'memory', 'post', 'nopost', 'analyze' do not
work yet. Neither does pondering, as Bonanza's board is not valid when a
move comes in during pondering, so the wrong piece type is appended to
the move to convert t to CSA format.

13 years agoCheck in Bonanza Feliz 0.0
H.G. Muller [Wed, 20 Oct 2010 17:52:29 +0000]
Check in Bonanza Feliz 0.0