xboard.git
8 years agoLet PROMOTED and DEMOTED macros use argument
H.G.Muller [Fri, 29 Jan 2016 16:41:58 +0000]
Let PROMOTED and DEMOTED macros use argument

These macros were expanding to offsets added to what followed them.
Now the thing that followed them is passed to them as an argument.
This will allow them to expand the prmomotion or demotion to a table
lookup, rather than just an addition. Where PROMOTED appeared in a case
label, though, it was just a readability enhancement for the fixed
assignment, and a new macro PROMO equal to the old PROMOTED is introduced
for that.

8 years agoFix Chu promotion with added pieces
H.G.Muller [Fri, 29 Jan 2016 09:32:02 +0000]
Fix Chu promotion with added pieces

There were still some hard-coded 22s in the code, which no longer described
the difference between Pawn and Tokin and the number of promotable pieces,
now that new pieces have been added.

8 years agoMake move to own piece a swap rather than capture
H.G.Muller [Thu, 28 Jan 2016 16:55:15 +0000]
Make move to own piece a swap rather than capture

This is useful for Tamerlane Chess, where you can one time during the
game have your King swap places with a friendly piece.

8 years agoImplement 'choice' engine->GUI command
H.G.Muller [Thu, 28 Jan 2016 16:32:19 +0000]
Implement 'choice' engine->GUI command

A new CECP command is implemented: With 'choice XYZ' in reply to a
'lift' or 'put' command an engine can redefine the promotion choice
of the promotion move that emitted these to X, Y or Z. (Always capitals!)
For now only affects sweep & detour promotions, not the promotion
popup.

8 years agoLet target-square highlighting prevail over legality test
H.G.Muller [Thu, 28 Jan 2016 13:08:28 +0000]
Let target-square highlighting prevail over legality test

For engine-defined variants the highlight command is accepted even
with legality testing on. If an engine explicitly marks a square as a
legal destination for the picked-up piece, XBoard now always accepts
the move, even when according to its own move generation, even when based
on the engine's supplied 'piece' commands, going there would be illegal,
and legality testing is on.

8 years agoAdd support for Multi-PV Margin
H.G.Muller [Thu, 28 Jan 2016 11:32:12 +0000]
Add support for Multi-PV Margin

An engine option with a name containing multi, PV and margin is now
recognized, and will lead to printing of a multi-PV header (during
analysis in the Engine Output pane) even in absence of a MultiPV option.
Right-clicking the part of that header between 'fewer' and 'more'
allows tuning of the option value through horizontal mouse moving.
During this tuning the value is displayed in the message field of the
main window. When there is no MultiPV option to specify the number of
PVs, the margin value will be displayed in the header instead of the
number of PVs.

8 years agoFix highlighting in text memos (GTK)
H.G.Muller [Thu, 28 Jan 2016 08:51:37 +0000]
Fix highlighting in text memos (GTK)

The yellow highlighting as used in Engine Output to indicate the
walked PV, or in Move History to show the current move, was only
working the first time that text would be highlighted. Apparently
to unhighlight it the yellow tag had to be removed, rather than a
white tag applied.

8 years agoFix pasting of moves after starting from position file
H.G.Muller [Wed, 27 Jan 2016 19:14:07 +0000]
Fix pasting of moves after starting from position file

When starting from a position file boards[0] would be set to the position,
but initialPosition was not. In LoadGame() initialPosition would then be
copied to boards[0] before loading the game, and without FEN or variant
PGN tag would not be corrected.

8 years agoMove Common Engine menu item to Engine menu
H.G.Muller [Wed, 27 Jan 2016 15:49:20 +0000]
Move Common Engine menu item to Engine menu

The new name of this menu item is 'Common Settings'.

8 years agoFix double-clicks for copying in Edit Position mode
H.G.Muller [Wed, 27 Jan 2016 15:03:04 +0000]
Fix double-clicks for copying in Edit Position mode

The time measurement between clicks on the same square in Edit Position
mode was seeing presses as well as releases, so that a fast click would
be mistaken for a double click on that square. Only presses should be
judged this way. In addition the piece should be grabbed for dragging
again on the second press, as the first release had ended the drag.

8 years agoFix book probing
H.G.Muller [Wed, 27 Jan 2016 10:22:42 +0000]
Fix book probing

The Zobrist key for Kings had been inadvertantly changed in the patch that
assigned new keys to the pieces added for Chu Shogi (the 'chu-promoted
series'), because the King would be considered as a chu-promoted piece.

8 years agoFix crash on pasting garbage FEN
H.G.Muller [Wed, 20 Jan 2016 20:30:51 +0000]
Fix crash on pasting garbage FEN

The auto-size patch had made XBoard crash-prone on pasting pure garbage
with Paste Position, because this would set the number of files or ranks
to values <= 0. Which would cause a floating pont exception during
drawing of the board in XBoard.

8 years agoPrevent changing time control during game (XB)
H.G.Muller [Wed, 20 Jan 2016 19:37:52 +0000]
Prevent changing time control during game (XB)

An attempt to pop up the Time Control Options dialog during a game
will now be met with an Error popup to say it cannot be done, like
in WinBoard. Before it would reset the game.

8 years agoFix Error popup in Tournament Options
H.G.Muller [Wed, 20 Jan 2016 19:31:34 +0000]
Fix Error popup in Tournament Options

Since Tournament Options has been assigned its own DialogClass (MasterDlg)
instead of being one of the TransientDlg, the Error popup should really
test if MasterDlg is already up, to know if its parent window is th
main window or not.

8 years agoUse ii in Betza notation for 3rd-rank Pawn push
H.G.Muller [Thu, 14 Jan 2016 18:16:50 +0000]
Use ii in Betza notation for 3rd-rank Pawn push

The 'i' modifier specifies the move is only for virgin pieces. We now
use 'ii' to indicate a move that can be made when the piece is standing
on the square in front of that were such a piece starts in the initial
setup. This is intended for Pawns that can still be pushed extra far
after they have made a first single step, such as in Wildebeest Chess,
where pawns on 2nd rank can move 1, 2 or 3 squares ahead, and on 3rd rank
can still move 1 or 2 (fmWifmW3iifmW2).

8 years agoFix spurious undo at game start
H.G.Muller [Thu, 14 Jan 2016 15:49:34 +0000]
Fix spurious undo at game start

For ping-supporting engines the logic in handling unexpected moves
is completely changed. Such moves can occur when an engine think is
interrupted by a 'force' command, which in many engines is only
processed after the think completes naturally with a move, and could
cross such a move anyway in engines that would abort the search promptly.
If the 'force' is the result of the user switching to EditGame mode,
such a move should be undone, if it occurs at game end or start,
the moves can be ignored, as the following 'new' will erase all memory
of them. So in EditGameEvent, if the engine was thinking, a flag is set
to indicate its upcoming move should be undone, and ping is sent after
'force'. The 'pong' response would arrive after the move (if any), and
clears the flag. In all other cases of ping imbalance, incoming moves
are ignored.
 While waiting for a pong after EditGameEvent the user interface is
frozen, and a message is displayed to keep the user quiet.

8 years agoSend ping in EditGameEvent
H.G.Muller [Thu, 14 Jan 2016 13:36:47 +0000]
Send ping in EditGameEvent

An EditGameEvent can interrupt tinking of an engine, and the engine
might or might not send back a move as a result of that thinking.
To solve this, a "force" command sent to an engine playing white or
black will now be followed by a "ping". (If supported, of course.)

8 years agoFix variant recognition in ICS mode
H.G.Muller [Wed, 13 Jan 2016 21:23:55 +0000]
Fix variant recognition in ICS mode

The patch that made recognizing variant names of the 'exotic variants'
(i.e. those beyond Shogi) more strict, by requiring an exact match,
had broken variant recognition on the Variant ICS. In that case it
has to act on strings like "ICS unrated xiangqi game", and this now
defaulted to variant normal. The requirement that the variant name
should be the first word of the string is now dropped in ICS mode.

8 years agoLet FENs handle Betza initial rights in castlingless variants
H.G.Muller [Wed, 13 Jan 2016 19:35:36 +0000]
Let FENs handle Betza initial rights in castlingless variants

When a variant has no castling, or is redefined to have no castling
through a 'piece' command for the King, the FEN castling field of a
written FEN will now contain the file ID of all pieces with initial
('i') moves in their Betza definition. On reading the virginity of
pieces not thus mentioned in the castling field will get their
virginity revoked.

8 years agoFix setting of initial virginity on PGN read
H.G.Muller [Wed, 13 Jan 2016 15:07:48 +0000]
Fix setting of initial virginity on PGN read

The back-rank virginity bitmaps were not cleared in ParseFEN.

8 years agoIncreas number of engine-defined variants to 15 (WB)
H.G.Muller [Mon, 11 Jan 2016 23:01:31 +0000]
Increas number of engine-defined variants to 15 (WB)

The number of engine-defined variants that can be selected in WinBoard's
New Variant dialog is increased from 9 to 15 by adding some radio buttons.

8 years agoFix parsing of OO castling when redefined
H.G.Muller [Mon, 11 Jan 2016 21:58:50 +0000]
Fix parsing of OO castling when redefined

A 'piece' command can redefine the castling stride of a King,
and OO castling for non-Fischer castling is internally encoded as the
King step, and thus has to know this.

8 years agoFix writing FEN castling rights for non-edge 'Rooks'
H.G.Muller [Mon, 11 Jan 2016 21:44:04 +0000]
Fix writing FEN castling rights for non-edge 'Rooks'

Non-Fischer castling rights were only recognized on FEN writing when
the castling partner was in the corner. Now it can be anywhere on the
correct side of the King.

8 years agoFix reading FEN FRC castling rights when King not on last rank
H.G.Muller [Mon, 11 Jan 2016 20:05:28 +0000]
Fix reading FEN FRC castling rights when King not on last rank

There was still a hard-coded rank 0 / BOARD_HEIGHT-1 there.

8 years agoFix Makefile for Dragon and minor Lion image
H.G.Muller [Mon, 11 Jan 2016 19:21:05 +0000]
Fix Makefile for Dragon and minor Lion image

These new pieces were not mentioned in the list of SVG data.

8 years agoAdd Wolf, Camel and Zebra bitmaps to WB
H.G.Muller [Mon, 11 Jan 2016 19:13:41 +0000]
Add Wolf, Camel and Zebra bitmaps to WB

Built-in images for some of the new pieces are added for WinBoard.
These are Wolf, Camel and Zebra, but also the duplicat Lion is defined.

8 years agoFix white Iron General image
H.G.Muller [Mon, 11 Jan 2016 15:03:24 +0000]
Fix white Iron General image

The white background of this image was not entirely filled.

8 years agoFlip Unicorn image
H.G.Muller [Mon, 11 Jan 2016 15:01:58 +0000]
Flip Unicorn image

There are now too many Knight-like piece images, that are too similar.
So the Unicorn from now on will look to the right.

8 years agoAdd white Zebra piece image
H.G.Muller [Mon, 11 Jan 2016 10:39:10 +0000]
Add white Zebra piece image

This image had not made it into git with the other new pieces.

8 years agoCorrect backup pieces for addition of minor Lion
H.G.Muller [Mon, 11 Jan 2016 10:35:22 +0000]
Correct backup pieces for addition of minor Lion

The added piece type was not put in the list of backup pieces, so that
the pieces beyond it got out of phase, and no backup for the Prince
would be found, leading to an error popup about missing default pieces.
The error message on this has now been improved to mention the piece
casing the trouble.

8 years agoNever castle when King has other initial moves
H.G.Muller [Sun, 10 Jan 2016 22:54:48 +0000]
Never castle when King has other initial moves

The ApplyMove routine assumed that any lateral King step of more than
a single square was a castling, and then swung the nearest piece in
that direction around the King. This failed in Grande Acedrex, where
the King can (amongst others) jump 2 squares sideways as an initial move.
So we now first check if the King has its moves redefined in a way that
does specify no castling but does specify other initial moves, and perform
any move as just a simple King move in that case.

8 years agoFix edit command for double-digit ranks
H.G.Muller [Thu, 7 Jan 2016 22:32:47 +0000]
Fix edit command for double-digit ranks

Rank numbers above 9 were printed as their internal 1-character
representation.

8 years agoAdd duplicat of Lion (and Flying Dragon)
H.G.Muller [Wed, 6 Jan 2016 19:12:10 +0000]
Add duplicat of Lion (and Flying Dragon)

Two more piece types are added: a duplicat of the Lion in the unpromoted
series, and a Flying Dragon as its promoted counterpart. This Lion does
not suffer from the Lion-trading restriction of Chu Shogi, and can be used
as a general piece. Its pictogram is somewhat smaller than that of the
Chu Shogi Lion.

8 years agoFix typos in winboard.c
H.G.Muller [Sun, 3 Jan 2016 13:09:24 +0000]
Fix typos in winboard.c

8 years agoLet parsing of O-O castlings pay attention to castling rank
H.G.Muller [Sun, 3 Jan 2016 11:38:18 +0000]
Let parsing of O-O castlings pay attention to castling rank

The parser assumed O-O and O-O-O castlings would always take place
on the back rank, even when the newly introduced castlingRank array
specified differently.

8 years agoFix FEN castling rank for Knightmate
H.G.Muller [Sun, 3 Jan 2016 11:22:25 +0000]
Fix FEN castling rank for Knightmate

The newly introduced castlingRank array was not correctly set on reading
a FEN for Knightmate, because it was looking for Kings rather than
Unicorns.

8 years agoReplace Flying Dragon piece image by Gnu
H.G.Muller [Sat, 2 Jan 2016 18:53:35 +0000]
Replace Flying Dragon piece image by Gnu

How could we not think of this before!

8 years agoAlso define Lance image for Amazon in WB
H.G.Muller [Tue, 29 Dec 2015 22:37:43 +0000]
Also define Lance image for Amazon in WB

8 years agoUse hoplit helmet for Copper General in Chu Shogi
H.G.Muller [Tue, 29 Dec 2015 22:33:52 +0000]
Use hoplit helmet for Copper General in Chu Shogi

8 years agoSkip in pieceToChar to Tokin always
H.G.Muller [Tue, 29 Dec 2015 21:46:17 +0000]
Skip in pieceToChar to Tokin always

The piece after the skip symbol '/' in the pieceToCharTable was
defined as CHUPROMOTED Pawn, which only is a Tokin in variant chu,
but a Cannon in other variants. The intension was to always skip
to Tokin, though.

8 years agoAssign new images to the new pieces
H.G.Muller [Tue, 29 Dec 2015 21:20:24 +0000]
Assign new images to the new pieces

The 5 new pieces behind Lion, and their chu-promoted versions,
are assigned the 9 new images. The 10th piece gets the Lance image,
to povide a duplicate for this that will not be considered a Pawn
in any variant (so it can be used for Amazon).

8 years agoAdd 2x9 new piece images
H.G.Muller [Tue, 29 Dec 2015 21:13:03 +0000]
Add 2x9 new piece images

Wolf, Camel, Zebra, Dragon, Wizard, Viking, Iron, Copper and Tower
images are added.

8 years agoFix parsing of pieceToChar strings
H.G.Muller [Tue, 29 Dec 2015 19:43:39 +0000]
Fix parsing of pieceToChar strings

The skipping to the chu-promoted series was not working. The character
that triggers the skipping has been changed from : to /, because : is
a narrow character potentially useful as ID suffix.

8 years agoFix color of white SVG pieces
H.G.Muller [Tue, 29 Dec 2015 17:02:08 +0000]
Fix color of white SVG pieces

The newer SVG pieces were bright white, rather than the ivory default color.

8 years agoFix piece command after ID-suffix patch
H.G.Muller [Sat, 19 Dec 2015 10:10:40 +0000]
Fix piece command after ID-suffix patch

Piece IDs without suffix or & behind them to make them count for both
colors were no longer recognized in 'piece' commands, because there
was a null character behind the extracted piece-name field. And this
null character was seen as occurring in the suffix string.

8 years agoFix bare-king adjudication in Atomic
H.G.Muller [Thu, 17 Dec 2015 11:44:09 +0000]
Fix bare-king adjudication in Atomic

In Atomic a bare King cannot win, but it can already have won, when
the last piece of that side captured or destroyed the opponent King
when exploding. The win-to-draw correction now recognizes this
situation, so that the win is uphold there.

8 years agoErase old logo before drawing new one (XB)
H.G.Muller [Wed, 2 Dec 2015 11:53:19 +0000]
Erase old logo before drawing new one (XB)

In case of an invalid or absent logo, the previous logo kept being
displayed. Now the area is painted grai first.
 Also fixes a bug in the expose area.

8 years agoAllow debug output to go to child process (WB)
H.G.Muller [Fri, 27 Nov 2015 20:01:22 +0000]
Allow debug output to go to child process (WB)

A -debugfile name starting with tree slashes will not be interpreted
as a file to write on, but (after stripping the slashes) as an executable
to run, and send the output to. This could be used by an external
broadcasting agaent.

8 years agoFix DarkSquare bug in piece counting
H.G.Muller [Fri, 27 Nov 2015 16:55:13 +0000]
Fix DarkSquare bug in piece counting

When counting pieces for adjudication purposes, a DarkSquare on the
board caused an out-of-bounds access to the counter array.

8 years agoFix piece commands for suffixed piece IDs
H.G.Muller [Thu, 26 Nov 2015 21:12:22 +0000]
Fix piece commands for suffixed piece IDs

Due to signed-/unsigned-char problems piece IDs suffixed with ' or !
would not be recognized. In addition a & behind it would not be correctly
recognized diue to the alignment problem the suffix character caused.
Both issues are fixed now.

8 years agoAllow skipping over black squares
H.G.Muller [Wed, 25 Nov 2015 18:26:54 +0000]
Allow skipping over black squares

'Skip pieces', defined with a 'j' prefix on a slider(asopposedto rider),
which skip the first square(s)of their path irrespective of occupation
should also be able to skip over holes in the board.

8 years agoDisplay new user logo when username is entered
H.G.Muller [Tue, 24 Nov 2015 19:10:27 +0000]
Display new user logo when username is entered

When the Edit->Enter Username type-in was used, a new user logo was
loaded, but not immediately displayed. While the old user logo could
already be up, during a man-machine game. Now it is also immediately
displayed.

8 years agoTry to load bitmaps for all pieces (WB)
H.G.Muller [Tue, 24 Nov 2015 19:00:16 +0000]
Try to load bitmaps for all pieces (WB)

WinBoard only contains build-in bitmaps for the first 22 piece types,
and also only associated filenames with those that can be used to
provide external images. Now a new naming convention for piece images
is introduced, like piece22_49s.bmp for a 49x49 bitmap for solid piece 22.
All pieces that were not loaded according to the old convention now
try to find images with this naming convention if a -pieceImageDirectory
is defined.

8 years agoFix sortng of mate scores
H.G.Muller [Tue, 20 Oct 2015 15:30:34 +0000]
Fix sortng of mate scores

With the new convention for mate scores (100000+DTM), lower numbers
represent faster mates and thus better scores, and the sorting of PVs
in the Engine Output window now takes that into account.

8 years agoPrint mate scores as #N in message field
H.G.Muller [Tue, 20 Oct 2015 15:22:53 +0000]
Print mate scores as #N in message field

8 years agoStart implementing EPD test suites
H.G.Muller [Tue, 20 Oct 2015 13:05:50 +0000]
Start implementing EPD test suites

An option -epd is added that can be used in combination with matchMode
to let XBoard do a test suite on a file of EPDs with a "bm" qualifier.
It would record the time to solution. Reporting still has to be implemented;
as yet unsolved problem is that currently black-to-move EPDs would
be presented to the second engine.

8 years agoSlip in 10 more piece types
H.G.Muller [Tue, 20 Oct 2015 12:43:27 +0000]
Slip in 10 more piece types

Five new piece type without a defined image are added to increase the
length to the unpromoted series from 11 to 16. They all map behind
the Lion, which remains the 11th piece. Five promoted types are added
as well, just before King. No images are defined for these pieces (yet),
not even image-file names, so they can only be used with the 'Tile'
fallback and a user-defined inscription.

8 years agoFix grayout
H.G.Muller [Mon, 19 Oct 2015 16:50:53 +0000]
Fix grayout

8 years agoFix exclusion header fix
H.G.Muller [Fri, 16 Oct 2015 12:40:58 +0000]
Fix exclusion header fix

8 years agoGrayout Machine Match menu when aborting match
H.G.Muller [Thu, 15 Oct 2015 21:41:09 +0000]
Grayout Machine Match menu when aborting match

Clicking the Machine Match menu item when a match or tourney is in
progress will make XBoard drop out of match mode when the game finishes.
The check mark will remain on the item until that moment. But now we
gray out the item to show that the match is scheduled for termination.

8 years agoBase tinyLayout decision on total board width
H.G.Muller [Thu, 15 Oct 2015 18:57:39 +0000]
Base tinyLayout decision on total board width

The decision whether to include system menu and use one-letter main menus
is now taken based on the total board width, rather than the square size,
to account for boards that do have other than 8 files.

8 years agoUse intermediate width menu bar in sizes 37 & 40 (WB)
H.G.Muller [Thu, 15 Oct 2015 18:45:41 +0000]
Use intermediate width menu bar in sizes 37 & 40 (WB)

Due to the increased number of main menus the menu bar wrapped to two lines
in sizes slim and small (which did not use the single-letter 'tinyLayout'
menu texts). An intermediate menu-bar format with 3-letter texts is now
provided as well.

8 years agoDisplay exclusion header only for engines supporting exclusion
H.G.Muller [Thu, 15 Oct 2015 15:25:21 +0000]
Display exclusion header only for engines supporting exclusion

The display of the exclusion header in the Engine Output window is made
dependent on the engine having emitted feature exclude=1 at startup.

8 years agoFix periodic updates GTK
H.G.Muller [Sat, 19 Sep 2015 17:35:07 +0000]
Fix periodic updates GTK

Only the first periodic update event would occur, because the clock function
did not retun True to encourage timer events to keep coming.

8 years agoMake -inscriptions a volatile option
H.G.Muller [Tue, 11 Aug 2015 07:38:19 +0000]
Make -inscriptions a volatile option

Saving unicodein the settings file does not work, and leads to an
octal escape sequence for non-ascii characters, which is not correctly
read back. For now saving thus is avoided.

8 years agoMake inscriptions somewhat smaller and non-bold
H.G.Muller [Fri, 7 Aug 2015 16:45:35 +0000]
Make inscriptions somewhat smaller and non-bold

8 years agoFall back on Tile SVG in pieceImageDirectory
H.G.Muller [Thu, 6 Aug 2015 21:49:02 +0000]
Fall back on Tile SVG in pieceImageDirectory

If a -pieceImageDirectory is given, but a needed piece is not found,
and -inscriptions are specified, we first fall back on a general
image White/BlackTile.svg. This can then serve as a background for the
various inscription glyphs, using the latter to distinguish the pieces.
E.g. the Tile image could be a shogi tile, and the inscriptions an utf8
string of kanji, to create Shogi pieces on the fly.

8 years agoTake account of glyph size when positioning inscriptions
H.G.Muller [Thu, 6 Aug 2015 17:41:28 +0000]
Take account of glyph size when positioning inscriptions

We calculate the position of the inscription from its pango extents.

8 years agoAlso write inscription on dragged piece
H.G.Muller [Thu, 6 Aug 2015 17:14:05 +0000]
Also write inscription on dragged piece

8 years agoUse pango to draw inscriptions
H.G.Muller [Thu, 6 Aug 2015 17:04:22 +0000]
Use pango to draw inscriptions

The cairo 'toy fort' interface apparently cannot handle kanji. So we
switch to renderingthe the inscriptions via pango.

8 years agoLet color of inscription depend on piece ID
H.G.Muller [Wed, 5 Aug 2015 20:40:40 +0000]
Let color of inscription depend on piece ID

Only shogi-promoted piece types (with ID defined as +) will get their
inscription rendered in red.

8 years agoRender inscriptions upside-down for black pieces (XB)
H.G.Muller [Wed, 5 Aug 2015 18:37:25 +0000]
Render inscriptions upside-down for black pieces (XB)

The -inscriptions option is intended to supply the kanji on images of
blank Shogi tiles, and thus have to be flipped for the pieces that play
downward. Depending on the -flipBlack setting and -flipView this can be
either white or black.

8 years agoPrevent printing in non-existing Chat dialog (XB)
H.G.Muller [Mon, 3 Aug 2015 19:59:43 +0000]
Prevent printing in non-existing Chat dialog (XB)

The Xaw build of XBoard crashed in -ics -zp mode when the opponent was
kibitzing. According to a stack trace OutputChatMessage() tried to change
the color of a non-existent button. Although it was not clear how printing
there could be attempted if no chats were defined, the routine now is made
a no-op when the Chat dialog does not exist, by an immediate return.

8 years agoIgnore Continue Later when match already in progress
H.G.Muller [Mon, 3 Aug 2015 19:07:04 +0000]
Ignore Continue Later when match already in progress

We have to prevent the user from changing the tournament file or parameters
for a tourney in progress through pressing 'Continue Later'.

8 years agoRemember tourney-file changes after Continue Later
H.G.Muller [Mon, 3 Aug 2015 18:55:05 +0000]
Remember tourney-file changes after Continue Later

After leavingthe Tournament dOptions dialog with Continue Later,
the tournament file would not be set to the entered value, and re-opening
the dialog would keep using the previous value, or a newly generated one.

8 years agoCorrectly remember checkboxes on Continue Later (WB)
H.G.Muller [Mon, 3 Aug 2015 18:39:31 +0000]
Correctly remember checkboxes on Continue Later (WB)

The WinBoard tournament dialog could be left in an inconsistent state
on Continue Later, when the user untickedthe checkboxes for auto-stepping
and two games per line, after on an earlier attempt their ticking had
already resulted in settng the line/position index to a negative value.
Negative values left in the numeric entriesare now reset to 0 when the
chackboxes are unticked.

8 years agoFix bridge capture of Lions
H.G.Muller [Fri, 24 Jul 2015 21:55:35 +0000]
Fix bridge capture of Lions

Clearing the kill square for the check test had broken the test for it
being empty or containing a Pawn. We now also test for Go Between,
which was not done at all.

8 years agoFix Shogi promotion popup
H.G.Muller [Fri, 24 Jul 2015 21:48:58 +0000]
Fix Shogi promotion popup

With the new promotion defaults Shogi was using the Chess promotion
popup rather than the Shogi (yes/no) one.

8 years agoFix disappearance of a1 on double capture
H.G.Muller [Fri, 24 Jul 2015 21:47:39 +0000]
Fix disappearance of a1 on double capture

The triple-capture patch did indicate a1 as initial second e.p. victim.

8 years agoUpdated copyright notice to 2015
Arun Persaud [Sun, 17 May 2015 06:35:46 +0000]
Updated copyright notice to 2015

9 years agomake install from macports part 2
Joshua Pettus [Tue, 28 Apr 2015 15:15:22 +0000]
make install from macports part 2

Oops, forgot a line..

9 years agoMake install from macports more robust
Joshua Pettus [Tue, 28 Apr 2015 14:05:53 +0000]
Make install from macports more robust

better to search for the macports prefix then assume /opt/local

9 years agoChange Copyright year in info.plist.in
Joshua Pettus [Tue, 24 Mar 2015 20:52:22 +0000]
Change Copyright year in info.plist.in

9 years agorenaming fics logo
Joshua Pettus [Wed, 11 Mar 2015 21:42:49 +0000]
renaming fics logo

9 years agoLogo Updates
Joshua Pettus [Wed, 11 Mar 2015 21:38:12 +0000]
Logo Updates

9 years agomoving part2
Joshua Pettus [Wed, 11 Mar 2015 21:04:15 +0000]
moving part2

9 years agoA little reorganizing
Joshua Pettus [Wed, 11 Mar 2015 20:40:52 +0000]
A little reorganizing

9 years agoRemove unused directory
Joshua Pettus [Tue, 10 Mar 2015 20:02:05 +0000]
Remove unused directory

9 years agoGTK OSX theme reimplemented
Joshua Pettus [Tue, 10 Mar 2015 19:33:05 +0000]
GTK OSX theme reimplemented

This is a new theme that was included with the GIMP OSX app.  It is
much simpler with no pixbuffs, so there should be no chance of missing
images.  Also had to reimplement the murrine engine.

9 years agogtkmacintegration localization updates
Joshua Pettus [Tue, 10 Mar 2015 19:19:53 +0000]
gtkmacintegration localization updates

With the update to the gtkmacintegration library, localization strings
have been fixed, so there is no need for us to have separate ones, and
we can pull from the macports install.

9 years agogtkmacintegration name change
Joshua Pettus [Tue, 10 Mar 2015 19:16:10 +0000]
gtkmacintegration name change

with the last update the gtkmacintegration lib was renamed
gtkmacintegration-gtk2 to differentiate from gtk3

9 years agoOSX master conf changes
Joshua Pettus [Tue, 10 Mar 2015 19:14:09 +0000]
OSX master conf changes

Make OSX app masterconf more in line with the default one, where it was
unnecessary.  Also it was a mistake to use the ip address for FICS as
they changed it.

9 years agoInclude Pango Modules
Joshua Pettus [Tue, 10 Mar 2015 18:27:20 +0000]
Include Pango Modules

Before I was using a special macports variant that had the pango
modules built into the library.  Now that I know a little bit more,
it’s really not necessary to require a special variant here.

9 years agoMan and Info Page Fix
Joshua Pettus [Tue, 10 Mar 2015 18:21:36 +0000]
Man and Info Page Fix

Terminal.app doesn’t accept command line arguments. Rather then use OSX
feature of using .command scripts to launch the man and info pages
(which is problematic with gatekeeper),  it is much better to open them
directly with applescript.   Had to move infoProc to xboard.c to do
this though.

9 years agoMerge branch 'v4.8.x' into master
Arun Persaud [Fri, 8 May 2015 15:00:11 +0000]
Merge branch 'v4.8.x' into master

9 years agoImplement -positionDir option GTK
H.G.Muller [Sat, 20 Dec 2014 19:47:05 +0000]
Implement -positionDir option GTK

This volatile option determines where Load Position starts browsing.

9 years agoAllow promotion choice in variant asean
H.G.Muller [Mon, 17 Nov 2014 21:51:19 +0000]
Allow promotion choice in variant asean

Apparently the rules of this game are changed since the first draft
from 2011, and now you cannot just promote to Ferz ('Queen'), but pick
any piece. Meaning the Rook has to be the default, being the strongest.

9 years agoFix crash on using Browse buttons in Tournament dialog Xaw
H.G.Muller [Tue, 11 Nov 2014 13:40:43 +0000]
Fix crash on using Browse buttons in Tournament dialog Xaw

The Xaw file browser assumes the text entries it is browsing for are
all in dialogs of the class TransienDlg, but the Tournament Options
dialog has been altered to MasterDlg, to allow it to co-exist with
Time Control and Common-Engine dialog (which can be opened through
buttons in it). Xaw did not like that, and the true DialogClass is
now used when setting the widget text.

9 years agoFix -addMasterOption option
H.G.Muller [Mon, 10 Nov 2014 13:29:25 +0000]
Fix -addMasterOption option

The comparison of the date stamps in master and user settings file
was broken, because the date stamps were declared as unsigned, so that
the difference would never be negative.

9 years agoFix premature disappearence of Lion victims
H.G.Muller [Sun, 2 Nov 2014 14:52:25 +0000]
Fix premature disappearence of Lion victims

The check test did not correctly undo a Lion e.p. capture, which
would make the victim already disappear after entry of the first leg,
which potentially could affect the second leg move generation.
(Not in Lions, though, but in Betza castlings it manifested itself.)