Funny

Discussion of chess software programming and technical issues.

Moderators: hgm, Dann Corbit, Harvey Williamson

User avatar
hgm
Posts: 27701
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Funny

Post by hgm »

I decided to put a list of FIDE Chess pieces in my Chu-Shogi engine, not because I think it would be any good at Chess, but because it is my only engine that supports boards as large as 16x16, so that I could use it to implement 'Big Chess'. This required some extra code to handle FIDE Pawns. Trying out if everything worked I played the following game:

Code: Select all

[Event "Computer Chess Game"]
[Site "CHESS_LAPTOP"]
[Date "2012.07.19"]
[Round "-"]
[White "hgm"]
[Black "HaChu 0.1beta"]
[Result "*"]
[TimeControl "40/120"]
[Annotator "1... +0.27"]

1. e4 d6 {+0.27/5 1.2} 2. Nf3 Nf6 {+0.52/5 0.9} 3. Bb5+ c6 {+0.65/6 1.0} 4.
Ba4 b5 {+1.70/5 1.3} 5. Bb3 c6c4 {+3.17/5 0.8}
Original way to trap a Bishop! :lol: :lol: :lol:

[d]rnbqkb1r/p3pppp/3p1n2/1p6/2p1P3/1B3N2/PPPP1PPP/RNBQK2R w KQkq - 0 6
After c6-c4!

Another problem was that it didn't see any harm in letting its King be captured. Because the code assumed that the piece behind King in the piece list would be the Crown Prince, and it checked as present, (because in fact this entry in hess was occupied by a Rook), so it thought it had a spare King, and might as well trade his real King for something more valuable. :shock: This was easily solved by putting a dummy Crown Prince in the piece list marked as captured.
stevenaaus
Posts: 608
Joined: Wed Oct 13, 2010 9:44 am
Location: Australia

Re: Funny

Post by stevenaaus »

Suprised by a chess board, laugh!

I tried "nano chess" the other day on FICS. Rules as the same as chess except all pieces can only move 1 square at a time (knight excepted). Checks are still valid at long range though. It's not an offical FICS variant afaics; players must abide the rules themselves