PHP Classes

PHP Chess: Play chess with opponents notified by e-mail

Recommend this page to a friend!
  Info   Screenshots   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 60%Total: 3,167 All time: 1,133 This week: 560Up
Version License Categories
phpchess 1.0.0GNU General Publi...Email, Games
Description 

Author

This is a package of classes that lets two people play a chess game in a Web site. Once a player makes his move, the opponent is notified by e-mail to let him know that the other player made a move and now it is his turn.

The classes implement all chess rules and moves, like "castlings", "en passant" captures, stalemates in case the opponent has no longer a legal move and his king is not under attack.

In case you do not have the files for the images of the pieces, some of the most upto date browsers like Mozilla Firefox and Opera can present the pieces as text using Unicode characters for chess pieces.

Innovation Award
PHP Programming Innovation award nominee
February 2005
Number 5
Chess is a kind of game that can be entertaining and very challenging at the same time. However, the players need to be available and have time to participate.

This class provides a means to play chess games over the Internet. Whenever a player makes a move, the other player is notified by e-mail.

This way, the players do not have to be physically present in the same place to participate, nor have to be online at the same time, as they are notified by e-mail whenever it is their turn. So, the players have all the time to participate and can make their moves whenever they have time to access to the Internet.

Manuel Lemos
Picture of Carlos Reche
Name: Carlos Reche <contact>
Classes: 10 packages by
Country: Brazil Brazil
Age: 41
All time rank: 613 in Brazil Brazil
Week rank: 195 Down15 in Brazil Brazil Down
Innovation award
Innovation award
Nominee: 2x

Screenshots (1)  
  • screenshot.jpg
  Files folder image Files (15)  
File Role Description
Files folder imageimages (12 files)
Plain text file class.phpchess.php Class PHPChess class
Plain text file example.php Example Example of how to use PHPChess

  Files folder image Files (15)  /  images  
File Role Description
  Image file black_bishop.gif Icon Black bishop
  Image file black_king.gif Icon Black king
  Image file black_knight.gif Icon Black knight
  Image file black_pawn.gif Icon Black pawn
  Image file black_queen.gif Icon Black queen
  Image file black_rook.gif Icon Black rook
  Image file white_bishop.gif Icon White bishop
  Image file white_king.gif Icon White king
  Image file white_knight.gif Icon White knight
  Image file white_pawn.gif Icon White pawn
  Image file white_queen.gif Icon White queen
  Image file white_rook.gif Icon White rook

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:3,167
This week:0
All time:1,133
This week:560Up
User Ratings User Comments (4)
 All time
Utility:89%StarStarStarStarStar
Consistency:81%StarStarStarStarStar
Documentation:-
Examples:79%StarStarStarStar
Tests:-
Videos:-
Overall:60%StarStarStarStar
Rank:1113
 
It is a good base for an effective online Chess game
7 years ago (zinsou A.A.E.Moïse)
50%StarStarStar
The class has three flaws: 1.
13 years ago (JoopdeVaan)
52%StarStarStar
very thank.
15 years ago (albayoneil ya)
35%StarStar
Excellent
15 years ago (kishore kumar)
70%StarStarStarStar