Jump to content
MakeWebGames

Recommended Posts

Posted

Hello everyone,

I made (with other people) a 2D/3D javascript chess game (demo: http://htmlchess.sourceforge.net/demo/example.html). I am looking for any chess enthusiast who has excellent knowledge of PHP who would like to join the project in order to make the chessboard able to connect to the Free International Chess Server (F.I.C.S.) to play against other users as well as against their machines.

The thing itself would be pretty easy since the server uses a simple Telnet connection and simply replacing in the following script the words [uSERNAME] and [PASSWORD] with a valid username and password it's possible to login:

 

<?php
$fp = fsockopen("fics.freechess.org", 5000, $errno, $errstr, 300);
if (!$fp) {
echo "$errstr ($errno)
\n";
} else {
$out = "[uSERNAME]\r\n";
$out .= "[PASSWORD]\r\n";
fwrite($fp, $out);
while (!feof($fp)) {
   echo fgets($fp, 128);
}
fclose($fp);
}
?>

 

Unfortunately my knowledge of PHP is zero. :( I'd be really happy if someone offered himself to join the project. The javascript code provides all the tools (ajax, algebraic notation of moves, etc..) to realize this easily. There is only a condition: the code must be relased under GNU Public License, version 3.

Thank you,

* socrates *

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...