Chess

EoinBailey - September 24, 2008 - 08:56
The Board Block

A module to allow two players to play chess in Drupal.

Now with Drupal 6 goodness! Thanks to MGN there is a development version of Chess available for Drupal 6, play away!

Two players, specified at node creation time in a user list field, are selected to play a game of chess. Anonymous users, or non-players will see the node and the block displaying the current state of the board. The players will see a move form, if it is their move. This form allows the player to select a piece, and make a move.

NOTE: I have let this module fall by the wayside as I've been working on other projects. I've moved to Drupal 6 now, and I will be back to this module, working on the Drupal 6 version that MGN submitted. I've also learned lots more about theming, so the requests to make the page look nicer, that should be dealt with now!

The game does not perform any validation on the move, other than to confirm that the player moves the correct colour piece. It is up to the player to ensure a legal move is performed.

The module will support in the future:

  • Option to show captured pieces
  • Option to show board state for previous moves
  • Display time between moves
  • Display to all visitors to the page which colour is to move next - Done
  • Move editing
  • Queening
  • Replay a full match
  • Some display changes also (board and move form need tweaking) - Partially Finished
  • Option to set the starting state - see: http://drupal.org/node/331971#comment-1099689

Chess Pieces

Chess pieces are now included in the release. The directory the module looks for the images is now the default directory for the pieces. If the user changes the pieces, but wants to keep the originals also, the settings page also allows for the directory to be changed, but you must follow the structure used for the default images.

Chess pieces are releasesed under the GPL licence, and can be downloaded individually from the wikipedia entry on chess (click on the images of the chess pieces, and the page that opens will have download links). You can also download the chess pieces from the following link: Chess Pieces.

New Developer

MGN is a new developer for the Chess module. He will be working on the Drupal 6 port, and there are some new features added in that version by MGN, which hopefully will be backported to the Drupal 5 version soon.

Author

Eoin Bailey, authored this module.

Releases

Official releasesDateSizeLinksStatus
5.x-0.092008-Nov-1174.01 KBRecommended for 5.xThis is currently the recommended release for 5.x.
Development snapshotsDateSizeLinksStatus
6.x-1.x-dev2009-Jan-2875.76 KBDevelopment snapshotDevelopment snapshots are automatically regenerated and their contents can frequently change, so they are not recommended for production use.


 
 

Drupal is a registered trademark of Dries Buytaert.