xboard.git
14 years agonew developer release gtk-20100206
Arun Persaud [Sun, 7 Feb 2010 02:53:02 +0000]
new developer release

14 years agoupdate year in copyright info
Arun Persaud [Sun, 7 Feb 2010 02:21:14 +0000]
update year in copyright info

14 years agocommit some X-stuff out for the gtk-version, still need to adapt to GTK
Arun Persaud [Sun, 7 Feb 2010 01:39:49 +0000]
commit some X-stuff out for the gtk-version, still need to adapt to GTK

14 years agoSmall fix in editing castling rights
H.G. Muller [Wed, 27 Jan 2010 12:34:55 +0000]
Small fix in editing castling rights

If there is no King with rights, the e-file is used to decide if a Rook
with rights is the K-side or Q-side Rook. This at least works with
corner Rooks, to avoid disappearence of Rook-rights on repetitive
editing of a position through intermediates with no King-rights.

14 years agoMake XBoard grant- and revoke-rights buttons work
H.G. Muller [Wed, 27 Jan 2010 12:19:05 +0000]
Make XBoard grant- and revoke-rights buttons work

The buttons in the new promotion popup to specify castling rights are
now fully operational. A new ChessSquare enum code 'GrantRights' was
added to transmit the instruction. ('NoRights' was used for revoking
the rights.)

14 years agoAlter assignment method for castling rights in EditPosition
H.G. Muller [Wed, 27 Jan 2010 11:20:53 +0000]
Alter assignment method for castling rights in EditPosition

A temporary board for indicating if pieces should have rights is used;
this is updated when the piece is placed or moved, and used as a basis
for final-rights assignment in EditPositionDone (in stead of faking).

14 years agoRepair in WinBoard what the XBoard PromoDialog broke
H.G. Muller [Tue, 26 Jan 2010 17:35:31 +0000]
Repair in WinBoard what the XBoard PromoDialog broke

Because the back-end dummy PromoDialog was removed, and its function
taken over  by a front-end working version in XBoard, WinBoard needed to
supply its own front-end. So the old back-end dummy was moved to
winboard.c. The code to suppress some upclicks, which is now only needed
in WinBoard because it still uses pseudo-popups, was put in the mouse
handler.

14 years agoRemove some left-over pseudo-popup code
H.G. Muller [Mon, 25 Jan 2010 23:17:21 +0000]
Remove some left-over pseudo-popup code

The code to block same-square and empty-square up-clicks from selecting
something is not desirable anymore now the popup has its own window.

14 years agoAdd clear-board button to piece-menu popup
H.G. Muller [Mon, 25 Jan 2010 22:45:14 +0000]
Add clear-board button to piece-menu popup

Required a new level of widgets, to separate it from the 'panel'. Also
added buttons for castling rights, which are ignored for now.

14 years agoTrue graphical promotion popup for XBoard
H.G. Muller [Mon, 25 Jan 2010 21:48:44 +0000]
True graphical promotion popup for XBoard

A new file xpromo.c is added, cloned from the EvalGraph, to manage the
popup. It replaces the dummy PromoDialog function in backend.c that
presented the choice in the main window. Title and coordiate arguments
were added to this function, to allow intelligent positioning.

14 years agoExtensive bugfix of promotion pseudo-popup
H.G. Muller [Mon, 25 Jan 2010 21:42:15 +0000]
Extensive bugfix of promotion pseudo-popup

With holdings the pieces were offsetted vertically in stead of
horizontally, and in shogi the pieces were not put on the promo board at
all. Also the choice in shogi had to be translated into + or =, while in
crazyhouse the promoted forms did not translate to chracters well, so
now the basic types are shown in the pseudo-popup instead.

14 years agoEliminated Edit-Position menu
H.G. Muller [Wed, 20 Jan 2010 08:14:15 +0000]
Eliminated Edit-Position menu

EditPosition now also uses the main board to display the set of
available pieces to choose from, in stead of the piece menu.
There is no clear-board function yet, though.

14 years agoGet rid of promotion popup
H.G. Muller [Tue, 19 Jan 2010 20:09:28 +0000]
Get rid of promotion popup

Handle the promotion entirely in the back-end part of the mouse driver,
like was already done for -variant great and super: stuff a temporary
board with the possible pieces, display it, and wait for the user to
click one. Clicking an empty square cancels the move.

14 years agofixing the last merge
Arun Persaud [Sun, 7 Feb 2010 01:23:23 +0000]
fixing the last merge

14 years agoMerge branch 'master' into gtk
Arun Persaud [Sun, 7 Feb 2010 00:15:15 +0000]
Merge branch 'master' into gtk

Conflicts:
Makefile.am
backend.c
configure.ac
xboard.c
xgamelist.c

14 years agoOne-click moves
H.G. Muller [Fri, 5 Feb 2010 21:27:51 +0000]
One-click moves

Playing on ICS or against engine, clicking a square from or to which
only a single move can be made causes the move to be done, when the new
option -oneClickMove is set to true.

14 years agoUse squares for computer seek ads
H.G. Muller [Thu, 4 Feb 2010 15:09:25 +0000]
Use squares for computer seek ads

Shape indication passed in sign bit of color (char) variable.

14 years agoUse right mouse button to view seek ads
H.G. Muller [Thu, 4 Feb 2010 21:46:41 +0000]
Use right mouse button to view seek ads

Right down-click does the same as left down-click, right up-click
simulates a left up-click off board (so it misses all dots).

Use right-click miss to refresh Seek Graph

The 'moving' parameter had to be made into an int for this, to indicate
right clicks with code 2. Right press now already pushes the clicked ad
to the back, so that the up-click will display an underlying one.

Bugfix pushing back seek ads on right-click

On a right button press the previous in stead of currently hit ad was
receiving the penalty.

Indicate seek-ad multiplicity

If more than one seek ad is inside the capture range of the mouse
pointer, an exclamation point is printed before the seek-ad text.

Some fixes to make seek-ad suppression work in WinBoard

In WinBoard the z-depth was immediately erased by redrawing the graph;
the clearing of zlist had to be moved from PlotSeekAd() to AddAd()
(where it really belongs). Also aging of z-depth is now suppressed on
mere pointer motion.

14 years agoDynamic Seek Graph
H.G. Muller [Thu, 4 Feb 2010 21:45:01 +0000]
Dynamic Seek Graph

The new option -autoRefresh sets FICS and ICC to report removal of seek
ads, and then removes those from the Seek Graph. New seek ads are added
to the graph, as soon as the ICS reports them.

14 years agoImplement SeekGraph in XBoard
H.G. Muller [Thu, 4 Feb 2010 21:42:15 +0000]
Implement SeekGraph in XBoard

For now only controlled by left mouse clicks on board. New options
-seekGraph true|false and -sg to switch this feature on.

Facilitate selection of coinciding seek ads

Seek-ads that are viewed but not answered get a distance penalty on the
up-click that makes their selection more difficult next time, so that
the ad they covered gets a (better) change. The penalty ages away in the
course of 5 clicks.

Slightly offset Seek-Graph dots of different color

Dots of different color are now displaced horizontally be 3 pixels, to
prevent them from completely covering each other. (Required the axis
labels to be moved a little too, to not be covered by the 1-min ads.)

Auto-show seek-ad texts in WinBoard

Hovering the mouse above a Seek-Graph dot will make the text belonging
to it appear in the message field without the need to press a button.
Required SeekGraphClick() to be called from the WB mouse event handler,
with an extra argument 'moving' to make the distinction with a real
click.

Show seek-ad text on mouse hovering (XBoard)

The Eventproc is also set to trigger on PointerMotion, and this event
then calls SeekGraphClick with motion=true to handle it.

Put poetic name of wilds in seek-ad text

Use XBoard variant names, except for 'loadable' and 'fischerandom'
(becomes 'setup' and 'chess960'), but leave number (to distinguish wilds
that transate to same XBoard variant).

14 years agoFix highlighting bug in XBoard
H.G. Muller [Fri, 5 Feb 2010 19:36:50 +0000]
Fix highlighting bug in XBoard

The from-square was drawn before the to-square was erased, which led to
a missing highlight line if they shared an edge or corner.

14 years agoShorten autoKibitz confirmation on FICS
H.G. Muller [Fri, 5 Feb 2010 14:49:59 +0000]
Shorten autoKibitz confirmation on FICS

Strip off the "players)", but leave the separatng space.

14 years agoRepair damage to -autoKibitz done by FICS atomic zippy claim
H.G. Muller [Fri, 5 Feb 2010 13:39:55 +0000]
Repair damage to -autoKibitz done by FICS atomic zippy claim

The sending of -autoKibitz info was also moved back in that patch, but
unfortunately to after clearing of the programStats info. Now the
clearing has been moved also, to remain after it.

14 years agoSend continuation lines to chat box they belong to
H.G. Muller [Thu, 4 Feb 2010 22:33:50 +0000]
Send continuation lines to chat box they belong to

The variable savingComment is used as a kludge to remember where the
comment should go (i.e. which chatbox, or elsewhere), so that when a
continuation line is matched, chatPartner (which was reset at EOL) can
be restored to its original value. Also put space after handle of talker
in channel Chat Windows

14 years agoFix u64 format for cygwin
H.G. Muller [Tue, 2 Feb 2010 18:08:42 +0000]
Fix u64 format for cygwin

With a -mno-cygwin compile %llu and %lld are definitely not understood
by scanf and printf, although they are by the compiler. In stead, %I64u
seems to work. Put it in under control of a switch USE_I64, which is
defined only in the gcc makefile when MINGW is used.

14 years agoRemove stray dot from WinBoard makefiles
H.G. Muller [Tue, 2 Feb 2010 18:02:28 +0000]
Remove stray dot from WinBoard makefiles

There was a period suffixed to config.h in the wgamelist.o dependency.

14 years agoFix bug in display of logos
H.G. Muller [Mon, 1 Feb 2010 13:50:01 +0000]
Fix bug in display of logos

The logo continued to be drawn after a boardSize change to a tinyLayout
size, although there was no space reserved for it. Fixed by explicitly
resetting logoHeight when no logo space is reserved in InitDrawingSizes().

14 years agoRight-click refactoring: step III
H.G. Muller [Tue, 19 Jan 2010 19:15:49 +0000]
Right-click refactoring: step III

Let WinBoard call RightClick in back-end, and delete the duplicate code
it had for this, after rescuing the front-end bits, and let the letter
act depending on the result returned by RightClick.

14 years agoRight-click refactoring: step II
H.G. Muller [Tue, 19 Jan 2010 18:07:15 +0000]
Right-click refactoring: step II

Migrate the Right-click routine to the back-end. Let it communicate back
square coordinates through pointer arguments, to accomodate their
different naming in XBoard and WinBoard. Template added in frontend.h.

14 years agoRight-click refactoring, step I
H.G. Muller [Tue, 19 Jan 2010 16:55:05 +0000]
Right-click refactoring, step I

Divorce front-end part from back-end part of PieceMenuPopup in XBoard
front-end, and forge the back-end part into a new routine RightClick.
The right up-click in XBoard, which called unLoadPV() directly, now
calls RightClick through PieceMenuPopUp().

14 years agoMerge gamelistopt sources into gamelist source files
H.G. Muller [Thu, 4 Feb 2010 22:09:47 +0000]
Merge gamelistopt sources into gamelist source files

The files xgamelistopt.c and gamelistopt.c are merged with xgamelist.c
and gamelist.c, respectively. The WB front-end for the dialog already
resided in winboard.c, so there was little need to move it to wgameist.c
file. Makefiles adapted accordingly. Unsuitable key bindings were
removed. The low-level front-end prototypes are now defined in in
frontend.h.

14 years agoGame-List options dialog for XBoard
H.G. Muller [Fri, 29 Jan 2010 20:47:47 +0000]
Game-List options dialog for XBoard

A dialog similar to that of WinBoard was cloned from the game-list
window. The XBoard front-end is in a separate file xgamelistopt.c,
which in fact implements most of the low-level front-end as back-end.

14 years agoRefactoring of game-list-options dialog
H.G. Muller [Fri, 29 Jan 2010 11:48:50 +0000]
Refactoring of game-list-options dialog

The back-end part is separated off, and moved to a file gamelistopt.c.
Front-end for now stays in winboard.c. No prototypes in frontend.h yet.

14 years agoFix of ancient WB bug: test integer option values for validity
H.G. Muller [Tue, 26 Jan 2010 18:28:43 +0000]
Fix of ancient WB bug: test integer option values for validity

Only a string of digits preceded by an optional sign is accepted now.
Before, any string was accepted, and leaving out a value could lead to
the next option being ignored (if it did not need a value) because it
was considered the value for the previous one!

14 years agoFix bug in edit-position of holdings
H.G. Muller [Tue, 26 Jan 2010 18:00:54 +0000]
Fix bug in edit-position of holdings

The holdings were effectivelly taken one too large, so that a promoted
shogi Pawn moved to, or created in the holdings was not demoted to Pawn,
but put in the dark (which you could see by the holding count if you did
it twice). The overflow tests in these two cases now have been corrected.

14 years agoSave fonts in XBoard settings file per boardSize
H.G. Muller [Mon, 25 Jan 2010 12:54:40 +0000]
Save fonts in XBoard settings file per boardSize

Each -boardSize now can have its own font specified in the settings file
(and thus by a command-line option, although it would in general not be
very useful to specify a font for a size other than the selected). E.g.
a prefix "size33:" to the font name will apply it only to -size 33.
An unspecified-size font option (not normally in the settings file) will
always prevail over a font option specific for the current size.
A font of some size must have been used or specified in order to be
saved.

14 years agoFix width of filter field in XBoard GameList
H.G. Muller [Mon, 25 Jan 2010 07:56:35 +0000]
Fix width of filter field in XBoard GameList

An empirical dependence of the width of this text edit on the square
size now makes for an acceptable layout at any board size.

14 years agoUse FICS atomic draw claim for sending move in zippy mode
H.G. Muller [Sun, 24 Jan 2010 18:09:45 +0000]
Use FICS atomic draw claim for sending move in zippy mode

For this the relaying of the move had to be moved until after the
adjudication, which again has to be done after MakeMove(), which is a
bit dubious, as MakeMove might take significant time when animating.

14 years agoSend FICS atomic claim to ICS if move creates draw after offer
H.G. Muller [Sun, 24 Jan 2010 17:51:38 +0000]
Send FICS atomic claim to ICS if move creates draw after offer

The FICS format "draw MOVE" is used to send the move to the ICS  when
the user enters a move that adjudicates as a claimable draw, and he
offered a draw before the move. For the benefit of ICS that do not
understand this format, the plain move is sent afterwards.

14 years agoAlso allow user to claim by offering draw before his move
H.G. Muller [Sun, 24 Jan 2010 17:16:14 +0000]
Also allow user to claim by offering draw before his move

Use the existing userOfferedDraw variable to test for such offers in
Adjudicate().

14 years agoAlso adjudicate after user move
H.G. Muller [Sun, 24 Jan 2010 16:29:42 +0000]
Also adjudicate after user move

Call Adjudicate() in FinishMove().

14 years agoRefactoring of adjudication code
H.G. Muller [Sun, 24 Jan 2010 14:56:56 +0000]
Refactoring of adjudication code

Put all the rule-based (as opposed to score-based) adjudications in a
separate routine, so they can also be called on user moves. This
requires sending the drawing move to the opponent engine to be made
conditional on existence of the latter. Execution of the code is no
longer dependent on the condition TwoMachinesPlay, but actual game
terminations are now all restricted by an alternative condition (no ICS
mode).

14 years agoUse -keepAlive option to determine connection health
H.G. Muller [Sun, 24 Jan 2010 10:46:30 +0000]
Use -keepAlive option to determine connection health

When there has been no ICS response since the previous 'ping', assume we
are disconnected and do a fatal-error exit. Also auto-start the ping
process in InitBackend3().

14 years agoUse arrow keys in XBoard GameList for entry selection
H.G. Muller [Sat, 23 Jan 2010 22:00:10 +0000]
Use arrow keys in XBoard GameList for entry selection

Add translations for arrows and home/end, to call LoadSelectedProc with
argument to indicate the step, and let the latter perform the action.

14 years agoAllow <Enter> to apply filter in XB GameList filter edit
H.G. Muller [Sat, 23 Jan 2010 21:24:20 +0000]
Allow <Enter> to apply filter in XB GameList filter edit

Apply a translation to intercept the <Enter> key. Set focus back to the
list display afterwards.

14 years agoAccept <Enter> for changing chat partner
H.G. Muller [Sat, 23 Jan 2010 20:44:36 +0000]
Accept <Enter> for changing chat partner

A kludge stolen from Alessandro's GameList filter allowed to let the
typing of <Enter> while updating the chat-partner field of the WinBoard
chat windows to act as pressing the Change button. Gives focus to the
input field of the window afterwards.

14 years agoMove duplicat gamelist code to backend
H.G. Muller [Sat, 23 Jan 2010 20:42:38 +0000]
Move duplicat gamelist code to backend

The filtering routines are moved from xgamelist.c and wgamelist.c to
gamelist.c, and a prototype for them is placed in backend.h.

14 years agoPort game-list filtering to XBoard
H.G. Muller [Sat, 23 Jan 2010 18:29:18 +0000]
Port game-list filtering to XBoard

Added a text edit and apply button to the XBoard game-list dialog, and
only have it print those lines that match the filter. Translate index in
list to index of game in file when a game is selected, and index in file
to index in list when a line is highlighted. Duplicates some code
between xgamelist.c and wgamelist.c, which should be moved to back-end.

14 years agoConvert to DOS line endings
H.G. Muller [Thu, 21 Jan 2010 18:24:49 +0000]
Convert to DOS line endings

For easier understanding of upcoming diffs of winboard.c

14 years agoRefactoring of move-history code
H.G. Muller [Thu, 21 Jan 2010 13:32:46 +0000]
Refactoring of move-history code

The WinBoard code in whistory.c was split in a front-end part (remaining
in whistory.c) and a back-end part (now in history.c in the xboard
directory). This to allow easy porting to other platforms.

14 years agoAdd fixed-time/move button in XBoard time-control dialog
H.G. Muller [Wed, 20 Jan 2010 11:48:30 +0000]
Add fixed-time/move button in XBoard time-control dialog

Put the TC-type buttons in a radio-group, and highlight the selected mode.

14 years agoFix bug in XBoard PV display
H.G. Muller [Tue, 19 Jan 2010 17:27:14 +0000]
Fix bug in XBoard PV display

The PV was unloaded on anything but a button release, in stead of the
other way around.

14 years agofixed hardcoded location of config file for xboard
Arun Persaud [Sat, 23 Jan 2010 19:04:11 +0000]
fixed hardcoded location of config file for xboard

the location should now follow sysconfdir during the configuration process.
Also added some more output to the configure script.

14 years agomore work on the MoveHistory
Arun Persaud [Wed, 20 Jan 2010 07:38:57 +0000]
more work on the MoveHistory

clicking on a move almost works... crashed when clicking on a black move. Need to implement keys still.

Also some better debug info in for gtk-builder in main.

14 years agoworked on MoveHistory window
Arun Persaud [Tue, 19 Jan 2010 02:28:08 +0000]
worked on MoveHistory window

it now displays the moves correctly. Next: add keyboard and mouse support to be able to select a move and go to that position

14 years agonew developer release gtk-20100118
Arun Persaud [Mon, 18 Jan 2010 19:58:38 +0000]
new developer release

14 years agofixed Makefile.am to include gtk-interface.xml and svg files
Arun Persaud [Mon, 18 Jan 2010 20:33:01 +0000]
fixed Makefile.am to include gtk-interface.xml and svg files

14 years agonew developer release master-20100118
Arun Persaud [Mon, 18 Jan 2010 20:18:32 +0000]
new developer release

14 years agofixed Makefile.am to handle config file correctly
Arun Persaud [Mon, 18 Jan 2010 20:15:06 +0000]
fixed Makefile.am to handle config file correctly

14 years agofixed Makefile.am to handle config file correctly
Arun Persaud [Mon, 18 Jan 2010 20:15:06 +0000]
fixed Makefile.am to handle config file correctly

14 years agostarted a bit on the GameList window
Arun Persaud [Mon, 18 Jan 2010 19:45:11 +0000]
started a bit on the GameList window

14 years agoworked a bit on the history window
Arun Persaud [Mon, 18 Jan 2010 08:06:38 +0000]
worked a bit on the history window

14 years agogot rid of two error pop-ups
Arun Persaud [Mon, 18 Jan 2010 06:03:38 +0000]
got rid of two error pop-ups

14 years agoreindent some functions
Arun Persaud [Mon, 18 Jan 2010 03:02:47 +0000]
reindent some functions

14 years agoremoved/commented out more X-stuff: xDisplay, shellWidget and some other small things
Arun Persaud [Mon, 18 Jan 2010 02:33:21 +0000]
removed/commented out more X-stuff: xDisplay, shellWidget and some other small things

14 years agoremoved some debug messages
Arun Persaud [Mon, 18 Jan 2010 01:50:14 +0000]
removed some debug messages

14 years agoMerge branch 'master' into gtk
Arun Persaud [Mon, 18 Jan 2010 01:47:19 +0000]
Merge branch 'master' into gtk

Conflicts:
backend.c

14 years agoChange opening array -variant fairy
H.G. Muller [Fri, 15 Jan 2010 20:55:29 +0000]
Change opening array -variant fairy

We now use the position of "Chess with Different Armies", FIDE army vs.
a fantasy army (inspired on the Color-bound Clobberers) as opening
position.

14 years agoAdd variant Makruk
H.G. Muller [Wed, 13 Jan 2010 18:08:45 +0000]
Add variant Makruk

Thai Chess, played by 2 million world-wide. Required pawn promotion to
happen in a zone, and the Alfil to move as Shogi Silver, a new opening
array, and unusual Pawn placement. Because of the latter, I consider it
a setup position, so a FEN will always be sent to the engine.

14 years agoFix parsing of O-O and O-O-O after FEN pasting in FRC
H.G. Muller [Sun, 17 Jan 2010 13:17:10 +0000]
Fix parsing of O-O and O-O-O after FEN pasting in FRC

Because the initial rights were not set in the FEN reader, the
initial rights of the previous game remained in force, so that the
parser did not understand OO-castling (although it would allow KxR
castling).

14 years agoFix reading FEN castling rights for knightmate and twokings
H.G. Muller [Fri, 15 Jan 2010 13:40:43 +0000]
Fix reading FEN castling rights for knightmate and twokings

Scanning the back-rank for a King did not work in these variants,
because either the Unicorn castles, or there might be two Kings.

14 years agoFix omission in castling refactoring for ICS received boards
H.G. Muller [Wed, 13 Jan 2010 10:42:52 +0000]
Fix omission in castling refactoring for ICS received boards

A default of -1 was still used, in stead of NoRights, when no Rook was
found. In theory this could have had effect in a setup board 0 in FRC,
when there were no Rooks on the back rank.

14 years agoFix TwoKings ICS castling-rights bug
H.G. Muller [Wed, 13 Jan 2010 10:35:34 +0000]
Fix TwoKings ICS castling-rights bug

Scanning the rank (as is done because of FRC) assigned castling rights
to the rightmost King. Even scanning the opposite direction would not
work, as it is not always the eftmost King that can castle. So we now
explicitly test for a King on e1/e8 in TwoKings and assign it rights,
relying on the Rook rights received from the ICS to control castling.

14 years agoMerge branch 'master' into gtk
Arun Persaud [Wed, 13 Jan 2010 04:11:06 +0000]
Merge branch 'master' into gtk

Conflicts:
backend.c
xboard.c

14 years agofix double start of zippy engine after switch to gothic
H.G. Muller [Thu, 19 Nov 2009 03:12:25 +0000]
fix double start of zippy engine after switch to gothic

In ICS mode we now switch to the proper variant as soon as we receive
the generic game-start message, to prevent a mismatch when the first
board is received (which would trigger fetching of a move list).

14 years agoExtensive bugfix of -autoKibitz
H.G. Muller [Mon, 11 Jan 2010 15:44:40 +0000]
Extensive bugfix of -autoKibitz

Suppression of printing of diverted kibitz messages failed when they
extended over more than one read. This could even lead to such
messages being erroneously saved as comments, which then lead to
crashes. The suppression mechanism now waits for a prompt, in stead of
the end of buffer. This required the printing of any leftover in the
buffer to be deferred until the next read completes it.
The number of people kibitzed to is now printed.

14 years agoFix piece-to-char table -variant fairy
H.G. Muller [Mon, 11 Jan 2010 15:30:59 +0000]
Fix piece-to-char table -variant fairy

The letters for Lance and Snake where swapped.

14 years agoMake WinBoard makefiles use parser.c in XBoard directory
H.G. Muller [Sat, 9 Jan 2010 10:54:20 +0000]
Make WinBoard makefiles use parser.c in XBoard directory

14 years agoDocs update for new features
H.G. Muller [Fri, 8 Jan 2010 17:23:39 +0000]
Docs update for new features

14 years agoFix new args parsing of -lowTimeWarningColor
H.G. Muller [Fri, 8 Jan 2010 14:18:37 +0000]
Fix new args parsing of -lowTimeWarningColor

This did not occur in the XBoard color translation table yet.

14 years agoAllow editing of holdings in EditPosition mode
H.G. Muller [Fri, 8 Jan 2010 13:16:59 +0000]
Allow editing of holdings in EditPosition mode

Dragging pieces to and from the holdings now consistently keep track of
the home square of pieces and the piece counts, as does creation of
pieces in the holdings through the piece menu.

14 years agoIndicate squares a lifted piece can legally move to
H.G. Muller [Fri, 8 Jan 2010 12:59:57 +0000]
Indicate squares a lifted piece can legally move to

Under control of the new option -showTargetSquares when
-highlightDragging and -testLegality are on, the squares a piece can
move to are marked by fat dots in the highlightColor (non-captures) and
premoveHighlightColor (captures), as soon as you grab it for dragging.
In variants with mandatory capture, the capture target of other pieces
is marked with the highlightColor (as non-captures are then not allowed).

14 years agoFix bug for incommensurate time odds
H.G. Muller [Fri, 8 Jan 2010 11:35:10 +0000]
Fix bug for incommensurate time odds

After normalization (-timeOddsMode 1) the time odds factors can be
non-integer, and thus must be stored as float.

14 years agoDisplay PV right-clicked from EngineOutput window
H.G. Muller [Fri, 8 Jan 2010 10:41:26 +0000]
Display PV right-clicked from EngineOutput window

The clicked PV is selected and the memo gets focus, so that it is
highlighted. This selection is restored in the proper place after
insetrtion of a new line in the memo.

14 years agoDisplay PV on right-clicking board
H.G. Muller [Fri, 8 Jan 2010 09:19:32 +0000]
Display PV on right-clicking board

14 years agoBugfix legality null move in parsing with -testLegality off
H.G. Muller [Fri, 8 Jan 2010 08:21:04 +0000]
Bugfix legality null move in parsing with -testLegality off

The pointers were compared, in stead of the values.
Furthermore, instead of null moves, it rejected moves on the main diagonal when legality checking was off.

Also exclude moves with empty squares and enemy pieces.

14 years agoMerge branch 'master-20091209' into gtk
Arun Persaud [Sat, 9 Jan 2010 23:44:04 +0000]
Merge branch 'master-20091209' into gtk

Conflicts:
Makefile.am
backend.c
xboard.c
xhistory.c
xhistory.h

compiles, but there command line arguments are not recognized anymore. will fix this later.

14 years agofixed merge: messed up backend.c and forgot to add it before commiting
Arun Persaud [Sat, 9 Jan 2010 23:18:42 +0000]
fixed merge: messed up backend.c and forgot to add it before commiting

14 years agoMerge commit 'master-20091122' into gtk
Arun Persaud [Sat, 9 Jan 2010 22:17:21 +0000]
Merge commit 'master-20091122' into gtk

Conflicts:
backend.c
configure.ac
xboard.c
xengineoutput.c
xhistory.c

14 years agoNewly lexed winboard/parser.c
H.G. Muller [Thu, 7 Jan 2010 18:10:39 +0000]
Newly lexed winboard/parser.c

14 years agoHarmonize declarations of XBoard and WinBoard
H.G. Muller [Thu, 7 Jan 2010 18:05:17 +0000]
Harmonize declarations of XBoard and WinBoard

The engine-exit and settings patches make some stuff common to WinBoard
and XBoard, which needed to be harmonized, and is moved to frontend.h.

14 years agoAllow Ctrl-C copying from EngineOutput window text to clipboard
H.G. Muller [Thu, 7 Jan 2010 12:07:57 +0000]
Allow Ctrl-C copying from EngineOutput window text to clipboard

14 years agoAllow popup-less (fatal) exit of engine after tellusererror
H.G. Muller [Thu, 7 Jan 2010 11:52:17 +0000]
Allow popup-less (fatal) exit of engine after tellusererror

14 years agoImprove layout of Engine #N Settings dialog
H.G. Muller [Thu, 7 Jan 2010 11:40:12 +0000]
Improve layout of Engine #N Settings dialog

An attempt is made to align the input fields of spins and text-edits

14 years agoLet XBoard print version with argument --version or -v
H.G. Muller [Wed, 6 Jan 2010 23:31:11 +0000]
Let XBoard print version with argument --version or -v

14 years agoFix castling rule assignment in shuffle games
H.G. Muller [Wed, 6 Jan 2010 23:25:57 +0000]
Fix castling rule assignment in shuffle games

The conversion to in-board storage for rights copied directly to boards[0] in steadof
initialPosition, and was then overwritten when the latter was copied with uninitialized
rights to boards[0]. This affected FRC and CRC, where rights are non-standard.

14 years agoImplement castling in -variant caparandom
H.G. Muller [Wed, 6 Jan 2010 23:17:25 +0000]
Implement castling in -variant caparandom

CRC should be treated as FRC, but until now it never was. We now test for FRC_TYPE_CASTLING.

14 years agoFix default castling rights on reading incomplete FEN
H.G. Muller [Wed, 6 Jan 2010 23:09:18 +0000]
Fix default castling rights on reading incomplete FEN

This was overlooked in the conversion to the in-board storage of rights.

14 years agoFix NoncompliantFEN defaults.
H.G. Muller [Wed, 6 Jan 2010 23:03:09 +0000]
Fix NoncompliantFEN defaults.

This must be NULL to get compliant FENs, not "", which would suppress castling and e.p. fields.

14 years agoChange format of -adapterCommand.
H.G. Muller [Wed, 6 Jan 2010 22:54:49 +0000]
Change format of -adapterCommand.

first or f at the start of an option name are now automatically changed into second or s,
rather than needing %% to be recognized. The values of -ec and -ed in the default
-adapterCommand are now quoted (now XBoard understands quoting in the engine command line).