capablanca.git
11 years agoFix bad timeseal bug
H.G. Muller [Tue, 11 Sep 2012 14:02:50 +0000]
Fix bad timeseal bug

When flagging the opponent, the black elapsed time was calculated using
whites time for receiving the move.

11 years agoadd code to keep log of user input
H.G. Muller [Tue, 4 Sep 2012 09:16:11 +0000]
add code to keep log of user input

11 years agoCheck for validity of category/board when placing seek ad
H.G. Muller [Mon, 3 Sep 2012 10:21:42 +0000]
Check for validity of category/board when placing seek ad

Code was copied for this from the match command

11 years agoAdd seek variable as synonym for ads
H.G. Muller [Mon, 3 Sep 2012 10:13:09 +0000]
Add seek variable as synonym for ads

This so 'set seek 1|0' will work, as described in the help files.

11 years agoChange seek-ad-removal notification text
H.G. Muller [Mon, 3 Sep 2012 10:10:04 +0000]
Change seek-ad-removal notification text

Use the same message as freechess.org, to make life less hard on interfaces.

11 years agoCorrect printing of increment in Creating message
H.G. Muller [Sun, 2 Sep 2012 16:34:05 +0000]
Correct printing of increment in Creating message

The increment was printed 10 times too large.

11 years agoFix crash of ICS caused by printing invalid seek ad
H.G. Muller [Sun, 2 Sep 2012 16:30:46 +0000]
Fix crash of ICS caused by printing invalid seek ad

A seek ad with invalid arguments obtained status SEEK_CLOSED before
processing it was aborted, with as result an uninitialized ad, which
would crash a later sought command.

11 years agoFix bug in setting up w3 and w4 games
H.G. Muller [Sun, 2 Sep 2012 16:24:33 +0000]
Fix bug in setting up w3 and w4 games

The expression to generate a random NBRQ in fact generated a random NBRA,
because of altered piece encoding.

12 years agoFix gating on corner squares
H.G. Muller [Tue, 10 Jan 2012 14:47:25 +0000]
Fix gating on corner squares

The test for virginity of the rook would also match opponent castlings!

12 years agoLet seek command accept same parameters as match
H.G. Muller [Mon, 9 Jan 2012 22:41:46 +0000]
Let seek command accept same parameters as match

The seek command was not accepting category and board params, just 4
numeric ones. This is fixed now by letting it accept a single string,
parsed by the same routine that parses the match arguuments. The
category and board are now also displayed with the ad in the sought list.

12 years agoFix takeback of S-Chess gatings
H.G. Muller [Sun, 8 Jan 2012 22:53:08 +0000]
Fix takeback of S-Chess gatings

The code for takeback of Spartan promotions had broken this, as it was
applied to gatings too, reverting the moved piece to Pawn!

12 years agoImplement test for perpetual checking
H.G. Muller [Fri, 6 Jan 2012 23:01:36 +0000]
Implement test for perpetual checking

12 years agoCheck validity of promotion piece in long algebraic
H.G. Muller [Tue, 3 Jan 2012 22:07:11 +0000]
Check validity of promotion piece in long algebraic

Long algebraic moves have their own parser, and this was not yet checking
if the chosen promotion piece was valid, so that it was possible to
promote to Archbishop in normal Chess, etc.

12 years agoPay attention to variant when resuming adjourned game
H.G. Muller [Sat, 31 Dec 2011 10:25:53 +0000]
Pay attention to variant when resuming adjourned game

12 years agoImplement Spartan Chess
H.G. Muller [Thu, 1 Dec 2011 20:47:24 +0000]
Implement Spartan Chess

This required new pieces, their parsing in algebraic moves and promotions,
a lot of promotion code because Hoplites can promote, implementation of
the duple-check rule by letting in_check recursively call itself after
abdicating the first king, making the test for nr of kings less critical,
and choosing a promotion piece in the mate test (because promotion to K
could solve the mate).

12 years agoPay attention to category/board when examining adjourned games
H.G. Muller [Thu, 29 Dec 2011 20:05:06 +0000]
Pay attention to category/board when examining adjourned games

The ICS assumed all adourned games were of type blitz...

12 years agoSeirawan gatings on castling
H.G. Muller [Thu, 1 Dec 2011 11:49:36 +0000]
Seirawan gatings on castling

Castlings can now have promo suffix in any move format. RxK is understood
as castling, and in combination with promosuffix will cause gating at
the Rook square. For now it is printed as h1e1=h in SAN.

12 years agoDebug Seirawan Chess
H.G. Muller [Tue, 29 Nov 2011 21:59:48 +0000]
Debug Seirawan Chess

12 years agoFix build error in perl script
H.G. Muller [Tue, 29 Nov 2011 18:18:38 +0000]
Fix build error in perl script

12 years agoImplement S-Chess
H.G. Muller [Tue, 29 Nov 2011 17:05:44 +0000]
Implement S-Chess

The value drops=2 in the gameState controls whether gating in pieces
from the holdings is possible, and implies holdings even if holdings=0.
New incarations of Cardinal and Marshall are added to the piece types,
under the names H and E. Gating has to be entered as promotion ('/' in
stead of '=' is allowed). King does no longer have to be the last piece
type; a macro PIECES has been added to indicate the number of piece types.

12 years agoFix mamer crash on listmanagers command
H.G. Muller [Tue, 29 Nov 2011 10:31:48 +0000]
Fix mamer crash on listmanagers command

12 years agoPrint minutes, not deci-sec in 'Creating' message
H.G. Muller [Sun, 6 Nov 2011 20:39:09 +0000]
Print minutes, not deci-sec in 'Creating' message

12 years agoIncrease number of games retained in history to 40
H.G. Muller [Thu, 3 Nov 2011 16:07:46 +0000]
Increase number of games retained in history to 40

Unfortunately this parameter is hard-coded in the server.

12 years agoAdd pause function to mamer
H.G. Muller [Wed, 2 Nov 2011 14:45:59 +0000]
Add pause function to mamer

Mamer can now 'pause' an indicated tourney, meaning it suppresses starting
a new round. The command 'resume' would then be needed to start the next
round, and reset the pause condition. (Cloned from OpenTourney.)

12 years agoAdd 2-sec delay before issuing rmatch
H.G. Muller [Sat, 22 Oct 2011 16:22:58 +0000]
Add 2-sec delay before issuing rmatch

To prevent server overload when all matches start simutaneously.

12 years agoLet mamer take colors into account for pairing
H.G. Muller [Fri, 21 Oct 2011 21:17:31 +0000]
Let mamer take colors into account for pairing

During the pairing phase mamer now avodids pairing participants that
cannot not be assigned a color without violating the absolute rules
of three consecutives or imbalance.

12 years agoMake mamer compilable
H.G. Muller [Fri, 21 Oct 2011 21:07:53 +0000]
Make mamer compilable

Apparently some non-compliancies that were still accepted under
Ubuntu 8.04 are not accepted anymore.

12 years agoCheck in modified mamer
H.G. Muller [Fri, 21 Oct 2011 20:25:23 +0000]
Check in modified mamer

This mamer was modified by hgm in pre-git days (and also obtained elsewhere?)
to pay attention to the colors of the participants in Swiss pairigs.

12 years agoFix use of promoChar G,D,H in long-algebraic Shogi moves
H.G. Muller [Mon, 11 Jul 2011 19:38:07 +0000]
Fix use of promoChar G,D,H in long-algebraic Shogi moves

D and H were not recognized at all, and G was MASTODON. Now D&H are added,
and MASTODON is redefined in parse_move as GOLD when promoType==3.
SAN moves do their own interpretation of the promo suffix, which
was already OK.

12 years agoFix rep-draw detection
H.G. Muller [Mon, 11 Jul 2011 18:33:17 +0000]
Fix rep-draw detection

The comparison with previous positions started one half-move too late,
so that a third repetition was not recognized if the first occurrence
was created by an irreversible move.

13 years agoImplement Grand Chess
H.G. Muller [Tue, 8 Mar 2011 18:24:46 +0000]
Implement Grand Chess

This required an extra game parameter to indicate the depth of the
promotion zone. The character 'Z' in the board file sets this to 3. The
promotion code had to be changed to allow for deferral when the last
rank is not yet reached. A missing promo char now defaults to deferral
when possible, and to the highest available piece if not.

13 years agoMake mate test handle Shogi
H.G. Muller [Mon, 11 Oct 2010 19:52:10 +0000]
Make mate test handle Shogi

If we must rely on interposing drop for resolving the check, now use
legal_andcheck_move() to test if the drop is legal.

13 years agoFix Shogi Knight-demotion bug
H.G. Muller [Mon, 11 Oct 2010 19:40:48 +0000]
Fix Shogi Knight-demotion bug

13 years agoFix bugs in Shogi Knight moves and promotions
H.G. Muller [Mon, 11 Oct 2010 11:50:06 +0000]
Fix bugs in Shogi Knight moves and promotions

The legality check for Shogi Knight moves was improperly parenthesized,
and in the promotion code KNIGHT was used in stead of HONORABLEHORSE.

13 years agoTest Legality of Shogi promotions
H.G. Muller [Mon, 11 Oct 2010 07:13:59 +0000]
Test Legality of Shogi promotions

The old code would allow any drop, except Pawns on first and last rank,
which is actually too restrictive for Shogi (which does allow back-rank
Pawn drops). Only thing still missing is Pawn drop with mate.

13 years agoHandle Shogi promotions on SAN moves
H.G. Muller [Mon, 11 Oct 2010 06:57:39 +0000]
Handle Shogi promotions on SAN moves

13 years agoRepresent DragonKing and DragonHorse by D and H
H.G. Muller [Mon, 11 Oct 2010 06:56:34 +0000]
Represent DragonKing and DragonHorse by D and H

Only in the board file it remains J and I.

13 years agoFinish implementation of Shogi
H.G. Muller [Sun, 10 Oct 2010 10:38:56 +0000]
Finish implementation of Shogi

Shogi promotions were implemented by introducing a new promoType
value (3), which can be set y 'S' in the board status line.
Demotion of pieces takes place on capture, by tracing them back with
was_promoted() to their original, which now is not automatically Pawn,
but derived from the piece mentioned in the move string.

Like in Bughouse a promoted Queen is not distinguished from a
primordial one on the board, Golds which are promoted Pawns / Lances /
Knights / Silvers all look the same as a primordial Gold. The Dragon
Horse and Draon King look different from Bishop and Rook, though, and
are indicated by the letters I and J on the board.

The promotion is indicated in the SAN move by suffix =G, =I or =J.
Deferral is not indicated. On input == is understood as deferral, =+ or
=^ (or in fact =<ANY PIECE> as promotion).

14 years agoInclude TD list with mamer on it in distribution
H.G. Muller [Fri, 12 Mar 2010 10:43:47 +0000]
Include TD list with mamer on it in distribution

14 years agoPreconfigure admin as TM for mamer in the distribution
H.G. Muller [Fri, 12 Mar 2010 10:32:25 +0000]
Preconfigure admin as TM for mamer in the distribution

The file bots/mamer/data/managers was changed to list admin, and the
file bots/mamer/players/a/admin where admin has TM rights was added.

14 years agoFix color assignment by mamer
H.G. Muller [Fri, 12 Mar 2010 08:59:10 +0000]
Fix color assignment by mamer

Mamer was not keeping track of the total number of whites and blacks,
and was furthermore clearing these counts and the consecutive
whites / blacks before every round.

14 years agoFix crash on rated Gothic games
H.G. Muller [Fri, 12 Mar 2010 08:07:46 +0000]
Fix crash on rated Gothic games

The new game types were not everywere mapped on rating types, leading to
a crash. Types KNIGHTMATE, CAPABLANCA and GOTHIC are for the time being
now all treated as WILD, in rating calculations. Eventually these should
all have their own rating type, but this requires an extension of the
rating database format.

14 years agoChmod 644
H.G. Muller [Mon, 18 Jan 2010 12:44:43 +0000]
Chmod 644

Some C source files had inadvertantly acquired mode 755.

14 years agoInitial boards for the various variants
H.G. Muller [Mon, 18 Jan 2010 12:27:39 +0000]
Initial boards for the various variants

In the new logic, the 'category', i.e. the name of the subdirectory of
'data/boards' now should correspond to the variant name used in the
XBoard client. The default setup for the variant is then in the file '0'
inside that, and is used wen no explicit board name is given.

14 years agoCheck-in modifications made by HGM so far
H.G. Muller [Mon, 18 Jan 2010 12:20:48 +0000]
Check-in modifications made by HGM so far

This is the version of the variant ICS that first started running
permanently on my ADSL connection.

14 years agoCheck-in Lasker-2.2.3 tar ball from samba.org
H.G. Muller [Mon, 18 Jan 2010 12:16:33 +0000]
Check-in Lasker-2.2.3 tar ball from samba.org