11 years agoAdd control for overrideLineGap in WB Board dialog
H.G. Muller [Mon, 9 Jan 2012 20:23:52 +0000 (21:23 +0100)]
Add control for overrideLineGap in WB Board dialog

Make it a checkbox to choose between 0 and -1.

11 years agoAdd Ctrl-D as alternative to Ctrl+Alt+F12 in WinBoard
H.G. Muller [Mon, 9 Jan 2012 19:56:40 +0000 (20:56 +0100)]
Add Ctrl-D as alternative to Ctrl+Alt+F12 in WinBoard

The acellerator key Ctrl+Alt+F12 seems reserved on Windows 7.

11 years agoFix seek graph for VICS
H.G. Muller [Mon, 9 Jan 2012 19:52:05 +0000 (20:52 +0100)]
Fix seek graph for VICS

The sought command on the open-source ICS code is ICC-like (no terminating
line), although the server is FICS like. So also accept prompt as seek-graph
trigger on FICS.

11 years agoOpen WB startup chat boxes only after logged on
H.G. Muller [Mon, 9 Jan 2012 19:27:01 +0000 (20:27 +0100)]
Open WB startup chat boxes only after logged on

The init code for opening the chat boxes ismoved to DisplayIcsTitle().

11 years agoInstall mime types directly
H.G. Muller [Sat, 7 Jan 2012 19:31:34 +0000 (20:31 +0100)]
Install mime types directly

11 years agoInstall desktop files directly
H.G. Muller [Sat, 7 Jan 2012 19:29:10 +0000 (20:29 +0100)]
Install desktop files directly

11 years agoInstall icons directly
H.G. Muller [Sat, 7 Jan 2012 19:19:09 +0000 (20:19 +0100)]
Install icons directly

Rather than letting make-install copy the pixmaps to the XBoard data
directory they are installed directly from the source files. The name
of the TRN icon was also corrected and changed.

11 years agoUpdate texi file and remove duplicate control
H.G. Muller [Thu, 5 Jan 2012 17:41:13 +0000 (18:41 +0100)]
Update texi file and remove duplicate control

Some missing option descriptions were added. The highlight-dragging
control was removed from the General Options dialog, as it did the same
as Show Target Squares. -highlightDragging wa changed to a volatile option
with default value true, making it effectively disappear as an XBoard
option. (In WinBoard it is still persistent.)

11 years agoRemove the direct commands to the engines
H.G. Muller [Thu, 5 Jan 2012 14:55:54 +0000 (15:55 +0100)]
Remove the direct commands to the engines

11 years agoforgot to list new desktop files in EXTRA_DIST section in Makefile.am
Arun Persaud [Fri, 6 Jan 2012 05:15:11 +0000 (21:15 -0800)]
forgot to list new desktop files in EXTRA_DIST section in Makefile.am

11 years agoadded some autogenerated po files to .gitignore
Arun Persaud [Fri, 6 Jan 2012 04:08:23 +0000 (20:08 -0800)]
added some autogenerated po files to .gitignore

11 years agoadded desktop and mime-type association to autoconf install process
Arun Persaud [Fri, 6 Jan 2012 04:05:44 +0000 (20:05 -0800)]
added desktop and mime-type association to autoconf install process

This should install and uninstall the mime assocciation and also the icons.
Also renamed the desktop files to avoid possible name collisions.

11 years agocode cleanup: make function definition confirm to GNU coding style
Arun Persaud [Wed, 4 Jan 2012 05:30:59 +0000 (21:30 -0800)]
code cleanup: make function definition confirm to GNU coding style

change everything in the main directory to

funcname (int a, int b)


11 years agoUpdated copyright notice to 2012
Arun Persaud [Wed, 4 Jan 2012 02:43:18 +0000 (18:43 -0800)]
Updated copyright notice to 2012

11 years agoImplement -viewerOptions
H.G. Muller [Tue, 3 Jan 2012 20:32:04 +0000 (21:32 +0100)]
Implement -viewerOptions

A mechanism is added to allow the user to configure persistently if the
game viewer that starts on clicking PGN files will use -ncp mode, or
load an egine for analysis (or, in fact, do anything). This by introducing
a persistent string option -viewerOptions, which will be parsed as a
command line after the real command line when the option -viewer was present.

11 years agoFix crash in auto-comment
H.G. Muller [Tue, 3 Jan 2012 10:29:00 +0000 (11:29 +0100)]
Fix crash in auto-comment

Trailing linefeeds in AppendComment were not properly stripped off,
leading to a mismatch between the allocted and used memory, and thus
possible buffer overruns.

11 years agoFix crash at match end
H.G. Muller [Mon, 2 Jan 2012 22:46:18 +0000 (23:46 +0100)]
Fix crash at match end

The -afterTourney option had broken old-style matches, because the ranking
string that was tested for "busy" is not set there at all, and remains a
NULL pointer, which strcmp doesn't like.

11 years agoAdd desktop files for PGN viewer and tournament player
H.G. Muller [Sun, 1 Jan 2012 18:56:58 +0000 (19:56 +0100)]
Add desktop files for PGN viewer and tournament player

The desktop files define startup commands for handling PGN, FEN and
tourney files, calling xboard with the proper command-line options.

11 years agoAdd xml file for defining mime types
H.G. Muller [Sun, 1 Jan 2012 18:53:02 +0000 (19:53 +0100)]
Add xml file for defining mime types

The file xboard.xml defines application/x-chess-pgn, aplication/x-chess-fen
and application/x-xboard-trn as mime types for *.pgn, *.fen and *.trn files,
so these files can be associated with XBoard in various modes.

11 years agoAdd icons for PGN and tourney files
H.G. Muller [Sun, 1 Jan 2012 18:41:39 +0000 (19:41 +0100)]
Add icons for PGN and tourney files

Icons are provided in two sizes: 32x32 and 48x48.

11 years agoClear square markers on new game
H.G. Muller [Thu, 29 Dec 2011 18:55:33 +0000 (19:55 +0100)]
Clear square markers on new game

Now that the markers can stay on after a first click, they need to be
explicitly cleared when moving to another board, including a new game.

11 years agoAbandon single-letter menus in tinyLayout
H.G. Muller [Thu, 29 Dec 2011 14:51:18 +0000 (15:51 +0100)]
Abandon single-letter menus in tinyLayout

Now that the items on the main menu bar are clipped, it iso longer
necessary to abbreviate them.

11 years agoImplement peeking previous position in WinBoard
H.G. Muller [Thu, 29 Dec 2011 14:38:46 +0000 (15:38 +0100)]
Implement peeking previous position in WinBoard

The backspace key is used to temporarily display the previous position.

11 years agoFix parsing of faulty PGN tags
H.G. Muller [Thu, 29 Dec 2011 14:32:20 +0000 (15:32 +0100)]
Fix parsing of faulty PGN tags

A closing bracket could be missed in a malformed tag

11 years agoFix parser for variant seirawan
H.G. Muller [Thu, 29 Dec 2011 14:29:00 +0000 (15:29 +0100)]
Fix parser for variant seirawan

The new parser didnot understand gating suffixes with /, and did not
allow any suffix at all on SAN castling moves.

11 years agoTry to not confuse ICS rating adustments as shouts
H.G. Muller [Wed, 28 Dec 2011 21:32:38 +0000 (22:32 +0100)]
Try to not confuse ICS rating adustments as shouts

An explicit pattern match for the rating adjustment is added before
matching the shouts.

11 years agoDescribe -overrideLineGap option in texi file
H.G. Muller [Wed, 28 Dec 2011 21:21:54 +0000 (22:21 +0100)]
Describe -overrideLineGap option in texi file

11 years agoUse <Enter> in stead of Ctrl+. for peeking last move
H.G. Muller [Wed, 28 Dec 2011 21:03:30 +0000 (22:03 +0100)]
Use <Enter> in stead of Ctrl+. for peeking last move

I commented out the explicit detection of the Ctrl key, as this
is not needed when there are no 'unnatural' Ctrl keystrokes used
for binding.

11 years agoNext try for menu-bar sizing
H.G. Muller [Wed, 28 Dec 2011 18:37:49 +0000 (19:37 +0100)]
Next try for menu-bar sizing

This time request the width needed to just fit everything, and then start
shaving off pixels from the currently largest until the entire thing fits.

11 years agoClip texts on menu bar
H.G. Muller [Wed, 28 Dec 2011 14:17:49 +0000 (15:17 +0100)]
Clip texts on menu bar

The width of the items on the main menu bar is restricted so the bar
will never exceed board width.

11 years agoFix format in temporary timing printf
H.G. Muller [Wed, 28 Dec 2011 13:01:53 +0000 (14:01 +0100)]
Fix format in temporary timing printf

11 years agoDon't test drops as mate evasions in variant seirawan
H.G. Muller [Wed, 28 Dec 2011 12:38:59 +0000 (13:38 +0100)]
Don't test drops as mate evasions in variant seirawan

11 years agoFix ICS castling rights
H.G. Muller [Wed, 28 Dec 2011 12:36:23 +0000 (13:36 +0100)]
Fix ICS castling rights

Copying the castling rights together with CopyBoard seems to have
broken handling of ICS rights, where ParseBoard12 prepares a board
in a local variable, an copies it before parsing the rights.

11 years agoFix initial holdings ICS seirawan games
H.G. Muller [Wed, 28 Dec 2011 12:35:10 +0000 (13:35 +0100)]
Fix initial holdings ICS seirawan games

11 years agoFix sending of S-Chess gating moves to ICS
H.G. Muller [Tue, 27 Dec 2011 17:31:05 +0000 (18:31 +0100)]
Fix sending of S-Chess gating moves to ICS

Normal moves did not get the gating suffix sent.

11 years agoFix menu grayout after illegal move
H.G. Muller [Tue, 27 Dec 2011 16:56:07 +0000 (17:56 +0100)]
Fix menu grayout after illegal move

TheThinkingEnables were not reset to user state after the engine rejected
the entered move as illegal.

11 years agoAllow setting of holdings with edit command
H.G. Muller [Tue, 27 Dec 2011 12:26:36 +0000 (13:26 +0100)]
Allow setting of holdings with edit command

For the benefit of Fairy-Max' Seirawan Chess implementation, the edit command
no also sends holdings contents (if the engine sent feature xedit=1), encoded
as pieceType + '@' + holdingsCount (if the count is non-zero).

11 years agoFix out-of-bounds access in check test
H.G. Muller [Sat, 24 Dec 2011 16:54:16 +0000 (17:54 +0100)]
Fix out-of-bounds access in check test

Thepath to make the check test work with drops had broken the test
after null move (both have rf<0), which led to corruption of the high
word of the black clock.

11 years agoFix legality of Spartan promotion to king
H.G. Muller [Sat, 24 Dec 2011 16:51:22 +0000 (17:51 +0100)]
Fix legality of Spartan promotion to king

In the check test promotion to King is only allowed if there are not
yet 2 kings.

11 years agoFix switching back from mono-mode XB
H.G. Muller [Wed, 21 Dec 2011 21:17:01 +0000 (22:17 +0100)]
Fix switching back from mono-mode XB

Suppressing unnecesary X-server calls in InitDrawingSizes had broken
switching back from monoMode, because the animVars have to be recreated
for that, and this was only done when the variant changed.

11 years agoFix showTargetSquares in mono-mode XB
H.G. Muller [Wed, 21 Dec 2011 21:09:02 +0000 (22:09 +0100)]
Fix showTargetSquares in mono-mode XB

Make the marker dots black (captures) and white, and draw a circle
in the opposite color around them in monoMode.

11 years agoFix arrow highlighting in mono-mode XB
H.G. Muller [Wed, 21 Dec 2011 21:00:26 +0000 (22:00 +0100)]
Fix arrow highlighting in mono-mode XB

Draw a line around it in darkSquare color in monoMode.

11 years agoFix alignment of generic browse button XBoard
H.G. Muller [Wed, 21 Dec 2011 16:48:33 +0000 (17:48 +0100)]
Fix alignment of generic browse button XBoard

The width ofthe browse button is now read back after creating it,
and subtracted from the preceding text edit.

11 years agoAdd -afterTourney option
H.G. Muller [Wed, 21 Dec 2011 13:41:31 +0000 (14:41 +0100)]
Add -afterTourney option

Only the instance pinting the tourney result will execute this.

11 years agoFix buffer possible overflow when writings tags
Byrial Jensen [Thu, 22 Dec 2011 20:01:43 +0000 (21:01 +0100)]
Fix buffer possible overflow when writings tags

PGNTagsStatic() could overflow its buffer and is removed. PGNTags() do the work instead of calling it.
It starts by calculation the required buffer size and then allocate the buffer.
PrintPGNTags() now prints directly to the file without having a buffer.

11 years agoOne more string marked for translation
Byrial Jensen [Thu, 22 Dec 2011 14:01:31 +0000 (15:01 +0100)]
One more string marked for translation

And it is moved inside the if statement that uses it.

11 years agoFix checking of return value from snprintf()
Byrial Jensen [Thu, 22 Dec 2011 13:30:08 +0000 (14:30 +0100)]
Fix checking of return value from snprintf()

snprintf() returns the needed space excluding the trailing 0 byte, so
it has truncated if the returned valued is greater than or EQUAL TO the buffersize

11 years agoFix unportable memory initialisation
Byrial Jensen [Mon, 19 Dec 2011 15:49:31 +0000 (16:49 +0100)]
Fix unportable memory initialisation

Memory sat to zero by calloc() cannot safely be assumed to have the pointer value NULL

11 years agoAdd 2 strings for translation
Byrial Jensen [Mon, 19 Dec 2011 12:16:58 +0000 (13:16 +0100)]
Add 2 strings for translation

11 years agoRemove the last 2 compile warnings in gamelist.h
Byrial Jensen [Mon, 19 Dec 2011 10:25:11 +0000 (11:25 +0100)]
Remove the last 2 compile warnings in gamelist.h

11 years agoAdd #include "moves.h" to gamelist.c for def. of CopyBoard()
Byrial Jensen [Mon, 19 Dec 2011 10:17:48 +0000 (11:17 +0100)]
Add #include "moves.h" to gamelist.c for def. of CopyBoard()

11 years agoDefinition of TimeMark moved from 3 c files to backend.h
Byrial Jensen [Mon, 19 Dec 2011 10:11:34 +0000 (11:11 +0100)]
Definition of TimeMark moved from 3 c files to backend.h

11 years agoTransfer a pointer to the promoChar from PromotionPopUp() to PromotionCallback()...
Byrial Jensen [Mon, 19 Dec 2011 00:21:46 +0000 (01:21 +0100)]
Transfer a pointer to the promoChar from PromotionPopUp() to PromotionCallback(). Fixes #34980

11 years agoDuh! Initialise the argument to sscanf() inside the loop, so it always gets a known...
Byrial Jensen [Sun, 18 Dec 2011 16:24:07 +0000 (17:24 +0100)]
Duh! Initialise the argument to sscanf() inside the loop, so it always gets a known value when sscanf() fails.

11 years agoGive numeric options the value 0 if a non-numeric text is entered (one more place...
Byrial Jensen [Sun, 18 Dec 2011 16:18:12 +0000 (17:18 +0100)]
Give numeric options the value 0 if a non-numeric text is entered (one more place). Before the value ended up undefined.

11 years agoGive numeric options the value 0 if a non-numeric text is entered. Before the value...
Byrial Jensen [Sun, 18 Dec 2011 16:08:46 +0000 (17:08 +0100)]
Give numeric options the value 0 if a non-numeric text is entered. Before the value ended up undefined.

11 years agoFix possible crash on 64-bit systems when copying game or position
Byrial Jensen [Sun, 18 Dec 2011 14:41:46 +0000 (15:41 +0100)]
Fix possible crash on 64-bit systems when copying game or position

The two convertproc's for X selections caused reads out of bounds on 64-bit systems.
I hope that this is the right solution. I am not experienced with X stuff, but it
follows that I have seen in other programs, testing shows that copying still works,
and the reading out of bounds have disappearinged with this patch.

11 years agoFix a possible crash in the file browser
Byrial Jensen [Sun, 18 Dec 2011 12:26:20 +0000 (13:26 +0100)]
Fix a possible crash in the file browser

If the OK button was selected in the file browser when no file was selected
there was a read out of bounds which could crash xboard

11 years agoFix a memory leak in Sound Options
Byrial Jensen [Sat, 17 Dec 2011 21:54:34 +0000 (22:54 +0100)]
Fix a memory leak in Sound Options

11 years agoFix crash when selecting user soundfile due to free() of not malloc()'ed memory
Byrial Jensen [Fri, 16 Dec 2011 01:57:20 +0000 (02:57 +0100)]
Fix crash when selecting user soundfile due to free() of not malloc()'ed memory

11 years agoMake GenericPopUp() more readable by using more named flags instead of numerals
Byrial Jensen [Fri, 16 Dec 2011 01:32:37 +0000 (02:32 +0100)]
Make GenericPopUp() more readable by using more named flags instead of numerals

Defines the flags SAME_ROW (value 1) and NO_OK (value 2) for use with buttons and endmarks.
There should no functional change.
Also add a code comment where a condition depends on an uninitialised value. There is no direct harm, as both
branches do the same (that is nothing) when the value is uninitialised.

11 years agoAdd NO_GETTEXT flag for combobox. Fix bug #34991
Byrial Jensen [Thu, 15 Dec 2011 01:51:36 +0000 (02:51 +0100)]
Add NO_GETTEXT flag for combobox. Fix bug #34991

Define NO_GETTEXT flag to avoid calling gettext() for comboboxes, and define COMBO_CALLBACK
flag to call comboCallback() when an item is selected in a combobox (no new code for this,
just a symbolic value instead of a number). The flags are used for the min field of struct Option.
NO_GETTEXT is used for the Select engine combobixes in the Match Options and Load engine windows.

11 years agoonly translate entries in CreateComboPopup if strlen>0; fixes #34991
Arun Persaud [Wed, 14 Dec 2011 03:48:37 +0000 (19:48 -0800)]
only translate entries in CreateComboPopup if strlen>0; fixes #34991

11 years agofix for repeating key issue, with this allissues this bug should be closed; fixes...
Byrial Jensen [Tue, 13 Dec 2011 03:06:26 +0000 (19:06 -0800)]
fix for repeating key issue, with this allissues this bug should be closed; fixes #35000

11 years agoalso don't translate selection in ComboSelect; fixes #34991
Arun Persaud [Tue, 13 Dec 2011 02:45:05 +0000 (18:45 -0800)]
also don't translate selection in ComboSelect; fixes #34991

11 years agomake entries in CreateComboPopup not translateable; fixes #34991
Arun Persaud [Tue, 13 Dec 2011 02:40:23 +0000 (18:40 -0800)]
make entries in CreateComboPopup not translateable; fixes #34991

11 years agofix translation for engine list; fixes #34991
Arun Persaud [Sun, 11 Dec 2011 00:06:47 +0000 (16:06 -0800)]
fix translation for engine list; fixes #34991

* click on browse button should be recognized in translated versions
* width of button should auto-scale

11 years agochange keybindings that don't use ctrl, make MoveTypeInProc ctrl aware; fixes #35000
Arun Persaud [Sat, 10 Dec 2011 19:04:17 +0000 (11:04 -0800)]
change keybindings that don't use ctrl, make MoveTypeInProc ctrl aware; fixes #35000

two keybindings were using keys without modifiers, adjusted these to use the ctrl key.
Furthermore when typing in moves we need to check if ctrl was pressed and ignore those inputs.

Also added documentation for these keybindings.

11 years agoreplaced unicode character for "'" in xboard.texi
Arun Persaud [Sat, 10 Dec 2011 18:51:18 +0000 (10:51 -0800)]
replaced unicode character for "'" in xboard.texi

11 years agoremoved Iconify function. Should be handled by the window manager.
Arun Persaud [Sat, 10 Dec 2011 18:08:48 +0000 (10:08 -0800)]
removed Iconify function. Should be handled by the window manager.

11 years agomarked an error messages for translation
Arun Persaud [Fri, 9 Dec 2011 04:53:13 +0000 (20:53 -0800)]
marked an error messages for translation

11 years agotranslation: updated uk.po
Arun Persaud [Fri, 9 Dec 2011 04:33:29 +0000 (20:33 -0800)]
translation: updated uk.po

11 years agofixed size of XBoard icon to 48x48
Arun Persaud [Sun, 4 Dec 2011 01:52:23 +0000 (17:52 -0800)]
fixed size of XBoard icon to 48x48

the icon gets installed in the 48x48 directory, but was >200 pixel wide. This gave a warning during rpm creation.

11 years agoupdated pot file
Arun Persaud [Sat, 3 Dec 2011 16:07:32 +0000 (08:07 -0800)]
updated pot file

marked a lot of new strings for translation

11 years agoadded new files to po/POTFILES.in
Arun Persaud [Sat, 3 Dec 2011 16:06:42 +0000 (08:06 -0800)]
added new files to po/POTFILES.in

11 years agomarked more strings for translation
Arun Persaud [Sat, 3 Dec 2011 06:13:36 +0000 (22:13 -0800)]
marked more strings for translation

11 years agotranslation: added danish translation
Arun Persaud [Sat, 3 Dec 2011 04:08:01 +0000 (20:08 -0800)]
translation: added danish translation

11 years agoChange encoding of seirawan ICS gating-castlings
H.G. Muller [Thu, 1 Dec 2011 17:45:55 +0000 (18:45 +0100)]
Change encoding of seirawan ICS gating-castlings

In stead of using upper/lower-case promoChar, the ICS now uses
RxK notation, like WinBoard writes in SAN, for better consistency.

11 years agoPut promo-suffix on ICS move in variant seirawan castlings
H.G. Muller [Wed, 30 Nov 2011 14:38:21 +0000 (15:38 +0100)]
Put promo-suffix on ICS move in variant seirawan castlings

The distinction upper-case / lowercase determines gating at R / K

11 years agoRefrain from making unnecessary resize X request
H.G. Muller [Mon, 28 Nov 2011 10:56:18 +0000 (11:56 +0100)]
Refrain from making unnecessary resize X request

The window resizing code in InitDrawingSizes is suppressed when no
change is needed. Similarly, changing piece bitmaps is suppressed when
we stay in the same variant (and InitDrawingSizes is called e.g. because
of chaging lineGap through the Board dialog).

11 years agoFix parsing of O-O castling in variant janus
H.G. Muller [Sun, 27 Nov 2011 21:27:00 +0000 (22:27 +0100)]
Fix parsing of O-O castling in variant janus

The new parser did not realize it meant e1i1 rather than wild e1h1.

11 years agoShow 50-move counter also when observing ICS games
H.G. Muller [Sat, 26 Nov 2011 21:28:23 +0000 (22:28 +0100)]
Show 50-move counter also when observing ICS games

To not cheat 50-move display was suppressed in ICS mode,
but for observing a game this made no sense.

11 years agoIgnore ICS game starts when already in game
H.G. Muller [Sat, 26 Nov 2011 21:22:07 +0000 (22:22 +0100)]
Ignore ICS game starts when already in game

The advance switching of the variant on game-start messages was
disruptive for users with gin=1, which also sends such messages
for other games than your own. For now fixed by only reacting on
them when idle (detected by invalid game number).

11 years agoFix WinBoard clock-click bug
H.G. Muller [Fri, 11 Nov 2011 17:16:19 +0000 (18:16 +0100)]
Fix WinBoard  clock-click bug

Clicking on the clock in WinBoard also called the LeftClick routine
for handling clicks on the board. This led to the from-square being set
to some inalid value, so that the next genuine board click was interpreted
as a to-click, with undesired effects, especially with legality testing off
or in EditPosition mode, where weird things are accepted.

11 years agoAdd feature-override options
H.G. Muller [Sun, 6 Nov 2011 16:20:01 +0000 (17:20 +0100)]
Add feature-override options

A few (dangerous) options are added to allow a user to override
engine features, or change their defaults, by supplying a string
with feature commands (e.g. "sigint=0") which tricks XBoard into
thinking the engine sent that. There is a -featureDefaults which is
processed before the engine features, and -first/secondFeatures
which is parsed just before engine initialization.
  This goes horribly wrong when the user wouldtry silly things like
including 'option' or 'done' features!

11 years agotranslation: updated uk.po
Arun Persaud [Sat, 5 Nov 2011 19:32:39 +0000 (12:32 -0700)]
translation: updated uk.po

11 years agoFix handling of -secondOptions option
H.G. Muller [Fri, 4 Nov 2011 20:58:39 +0000 (21:58 +0100)]
Fix handling of -secondOptions option

The -firstOptions and -secondOptions settigs were not swapped when
-singleEngieList was true, so the second engine's options would never
be set in that case, but used for the first engine.

11 years agoAccept setup command in variant fairy even with legality testing on
H.G. Muller [Fri, 4 Nov 2011 20:55:21 +0000 (21:55 +0100)]
Accept setup command in variant fairy even with legality testing on

Variant fairy does not really have a defined opening position, but lots
of pieces defined, so we might want to play with legality checking on,
but still rely on the engine for the opening position

11 years agoSet pieceToCharTable by setup command even when ignoring FEN
H.G. Muller [Fri, 4 Nov 2011 20:52:20 +0000 (21:52 +0100)]
Set pieceToCharTable by setup command even when ignoring FEN

When the user starts from a set-up position, the egines default
openingposition has to be ignored, but the pieceToCharTable would
still be relevant.

11 years agoChange default sweep-promotion choicein queenless variants
H.G. Muller [Fri, 4 Nov 2011 20:48:24 +0000 (21:48 +0100)]
Change default sweep-promotion choicein queenless variants

The initial scanning of the sweep piece until a defined piece is found
is now in the increasing direction (still starting at Queen), so that
the fairy pieces are suggested before R, B and N.

11 years agoClear board markers when moving to other position
H.G. Muller [Thu, 3 Nov 2011 15:38:57 +0000 (16:38 +0100)]
Clear board markers when moving to other position

Now the markers from -showTargetSquares would stay on after a first click
for the benefit of a click-click move, they would also stay on when not
finishing the move, but operating the < > buttons in stead to call up
other positions. ForwardInner and BackwardInner now clear the markers,
like they also cleared highlights.

11 years agoupdated Changelog, NEWS, etc.
Arun Persaud [Wed, 2 Nov 2011 01:30:22 +0000 (18:30 -0700)]
updated Changelog, NEWS, etc.

11 years agoFix two warnings
H.G. Muller [Tue, 25 Oct 2011 13:32:27 +0000 (15:32 +0200)]
Fix two warnings

11 years agoDon't adjust clock on right-click in EditGame mode WB
H.G. Muller [Mon, 24 Oct 2011 18:00:28 +0000 (20:00 +0200)]
Don't adjust clock on right-click in EditGame mode WB

This was a change that was already done for the left-clicks, but somehow
never made it togit for the right-clicks

11 years agoChange chase message in .lng files
H.G. Muller [Mon, 24 Oct 2011 17:50:25 +0000 (19:50 +0200)]
Change chase message in .lng files

11 years agoLet perpetual-chase message mention square
H.G. Muller [Mon, 24 Oct 2011 17:31:08 +0000 (19:31 +0200)]
Let perpetual-chase message mention square

In stead of a boolean, PerpetualChase now returns the square the chased
piece ends on (encoded as an int), and on adjudication it will be printed.

11 years agoAdd mechanism to translate variable messages in WinBoard
H.G. Muller [Mon, 24 Oct 2011 17:26:02 +0000 (19:26 +0200)]
Add mechanism to translate variable messages in WinBoard

A message prefixed with % in the lng file will be considered a match
if it matches the start of the text to be printed, and the remaining
part of the latter will remain untranslated. This was needed to allow
translation of the perpetual change message, now it indicates the square
of the chased piece.

11 years agoUse other interpretation of Asia rules for chase detection
H.G. Muller [Mon, 24 Oct 2011 17:20:13 +0000 (19:20 +0200)]
Use other interpretation of Asia rules for chase detection

The detection of perpetual chases now ignores pre-existing checks.

11 years agoFix crash on loading garbage game file profile
H.G. Muller [Wed, 12 Oct 2011 15:28:48 +0000 (17:28 +0200)]
Fix crash on loading garbage game file

The code to cache games was not resistant to moves before a valid
game start, or a game filewithout any games at all.

11 years agoIncorporate variant type in book hash key
H.G. Muller [Sat, 8 Oct 2011 18:43:52 +0000 (20:43 +0200)]
Incorporate variant type in book hash key

This prevents booksforone variant being used for another, and allows
multi-variant books.