Tag Archives: php chess

Some Chess 2.0 (Final Release)

The final release of Some Chess 2.0 is out now. Changes in Some Chess 2.0 fixed “problemo” bug fixed what I think is the final checkmate bug!

A PHP Fischer Random Chess Function

// remove the square the bishop got from the array of possible squares // get the second bishop $tmp = array_rand(array(1=>’b',3=>’d',5=>’f',7=>’h')); } // return an array of the pieces, the array keys correspond to the squares and their values to pieces occupying those squares return array( $rook1.’1′=>’rl’, $rook2.’1′=>’rl’, $knight1.’1′=>’nl’, $knight2.’1′=>’nl’, $bishop1.’1′=>’bl’, $bishop2.’1′=>’bl’, $queen.’1′=>’ql’, $king.’1′=>’kl’, $rook1.’8′=>’rd’, $rook2.’8′=>’rd’, $knight1.’8′=>’nd’, $knight2.’8′=>’nd’, $bishop1.’8′=>’bd’, $bishop2.’8′=>’bd’, $queen.’8′=>’qd’, $king.’8′=>’kd’, ‘a7′=>’pd’, ‘b7′=>’pd’, ‘c7′=>’pd’, ‘d7′=>’pd’, ‘e7′=>’pd’, ‘f7′=>’pd’, ‘g7′=>’pd’, ‘h7′=>’pd’, ‘a2′=>’pl’, ‘b2′=>’pl’, ‘c2′=>’pl’, ‘d2′=>’pl’, ‘e2′=>’pl’, ‘f2′=>’pl’, ‘g2′=>’pl’, ‘h2′=>’pl’);

Some Chess 2.0 release candidate 3

Download • More Info fixed broken player stats fixed issue where a person could make a move in another person’s game fixed bug where very long usernames would mess up table on “view players” page fixed “view game” bug where capturing/promoted pawns broke functionality fixed scrambled board display in “view game” for IE fixed bug where checkmate was sometimes incorrectly identified optimized some code added “snazzy borders” to some dialogs

Some Chess 2.0 release candidate 2

More Info users created by importing pgn no longer appear on the players page fixed problems with example_config.php file (Sorry!) fixed a bug that broke the move notification email fixed what I hope is the last checkmate bug fixed broken chess board display in Internet Explorer (Sorry again!) fixed bug that broke the Currently Online function fixed urls on the help page (thanks David!) fixed issue where auto-install/update failure message resulted in blank screen for some browsers fixed issue where notation would fail to add the check “+” notation to pawns that capture and promote at the same times as putting a player in check (yeah, kind of rare) added alt attribute to user image img element so menu is valid xhtml again added “review” button to board screen (move-by-move replay) added “random” as choice for piece color added a bit to the French locallization (help!) about page & players page are now valid xhtml “deleted” players just removed from the list of players, they are no longer deleted from the DB