Check out Janggi (Korean Chess), our featured variant for December, 2024.


[ Help | Earliest Comments | Latest Comments ]
[ List All Subjects of Discussion | Create New Subject of Discussion ]
[ List Earliest Comments Only For Pages | Games | Rated Pages | Rated Games | Subjects of Discussion ]

Comments/Ratings for a Single Item

EarliestEarlier Reverse Order LaterLatest
Game Courier. PHP script for playing Chess variants online.[All Comments] [Add Comment or Rating]
David Paulowich wrote on Sat, Mar 26, 2005 08:49 PM UTC:
'You may not move into check.' is the message I get when trying to enter Black's fourth move, using the move pieces by yourself option in the new Shatranj PBM Preset. The move in question was copied from an old ZRF of mine: <p>alf-chaturanga.zrf VariantName=Shatranj 1. Pawn h2 - h3 1. Pawn a7 - a6 2. Pawn h3 - h4 2. Knight b8 - c6 3. Chariot h1 - h3 3. Elephant c8 - e6 4. Chariot h3 - f3 4. King d8 - c8 (NOTE: I get the error message for both 'k d8-c8' and the plain 'd8-c8')

David Paulowich wrote on Sat, Mar 26, 2005 10:13 PM UTC:
This Shatranj error message seems to pop up whenever the Black King is 'attacked' by a Black Elephant. For example, 1... e7-e6 and 2... d8-e7 and 3... e7-d6 also results in a 'You may not move into check.' message.

Thomas McElmurry wrote on Sun, Mar 27, 2005 06:40 AM UTC:
Please ignore this comment. It was misplaced.

🕸💡📝Fergus Duniho wrote on Sun, Mar 27, 2005 03:57 PM UTC:
The King was being attacked by itself, because the code for identifying attacks from the enemy King was in the wrong case. This is now fixed.

🕸💡📝Fergus Duniho wrote on Sun, Mar 27, 2005 04:00 PM UTC:
The code for White Elephant attacks on Black was also in the wrong case. This and the other bug were due to copying and pasting the same code without making appropriate corrections. Both bugs are now fixed.

Greg Strong wrote on Thu, Mar 31, 2005 01:51 AM UTC:
If a preset has the 'exclude pieces not in set' box checked, nothing I do seems to clear it. If I uncheck it, and test, update, or save, the box is still checked.

Nasmichael Farris wrote on Sun, May 22, 2005 06:28 PM UTC:
When I submit my moves today, I get this message, even though the move is
sent:

Warning:
copy(/home/chessvar/public_html/play/pbmlogs/(...)/(omitted)-cvgameroom-2005-32-111.bak):
failed to open stream: Permission denied in
/home/chessvar/public_html/play/pbm/write_log.php on line 9

Warning: Failed to copy
/home/chessvar/public_html/play/pbmlogs/(...)chess/(omitted)-cvgameroom-2005-32-111.php
to
/home/chessvar/public_html/play/pbmlogs/(...)/(omitted)-cvgameroom-2005-32-111.bak


Warning: chmod(): Operation not permitted in
/home/chessvar/public_html/play/pbm/write_log.php on line 52

Warning: touch(): Utime failed: Permission denied in
/home/chessvar/public_html/play/pbm/write_log.php on line 53


***

Is there some work being done on the log?

David Howe wrote on Sun, May 22, 2005 07:14 PM UTC:
We are currently experiencing some site issues, which hopefully will be resolved soon. Please be patient. Thanks!

🕸💡📝Fergus Duniho wrote on Sun, May 22, 2005 11:31 PM UTC:
I assume the site issues are behind this, since I have not made any recent changes to the code. It does not seem to be affecting anything critical. Moves can still be made, but backups aren't being created, and the time of the last move isn't being kept up to date on the What's New page. I am going to wait and see if the problem clears up when the site gets back to normal.

🕸💡📝Fergus Duniho wrote on Mon, May 23, 2005 01:59 PM UTC:
Since our current site problems have not stopped old images from being deleted from the temp directory, I have added a line to delete the backup file before copying the log to a new backup file. If this works, then I may also delete the log before writing a new log. Hopefully, this will get things working right again.

JOSÉ wrote on Sat, Jun 18, 2005 05:01 PM UTC:
POR FAVOR, como puedo jugar al ajedrez Random por internet?, solo hablo español, GRACIAS

🕸💡📝Fergus Duniho wrote on Sat, Jun 18, 2005 11:02 PM UTC:
Please write in English. I don't know Spanish.

Moisés Solé wrote on Sun, Jun 19, 2005 01:00 AM UTC:
TRANSLATION: 'Please, how can I play Random Chess on the internet? I only speak Spanish, thanks.'

🕸💡📝Fergus Duniho wrote on Sun, Jun 19, 2005 02:23 AM UTC:
Esto ayudará quizá [Maybe this will help]:

http://babelfish.altavista.com/babelfish/trurl_pagecontent?lp=en_es&url=http%3A%2F%2Fplay.chessvariants.org%2Fpbm%2Findex.html

Ésta es una traducción de los pescados de Babel de la página principal del
índice para el mensajero del juego. El texto que estoy escribiendo aquí
también está siendo traducido por los pescados de Babel, puesto que no sé
español. Después de leer las instrucciones en español, van a la página
original y siguen las instrucciones. [This is a Babel Fish translation of
the main index page for Game Courier. The text I'm writing here is also
being translated by Babel Fish, since I don't know Spanish. After reading
the instructions in Spanish, go to the original page and follow the
instructions there.]

http://play.chessvariants.org/pbm/index.html

Moisés Solé wrote on Sun, Jun 19, 2005 11:03 PM UTC:
No, Fergus. Forget babelfish or other mechanized translators. They give horrible translations. The Spanish you put is quite bad (not your fault, the translator's. They don't work)

(zzo38) A. Black wrote on Sun, Jul 10, 2005 08:52 PM UTC:
White playing <a href='http://play.chessvariants.org/pbm/play.php?game=Xaigo2&settings=Xaigo2'>Xaigo</a> in solitaire mode, I got a error of 30 second time limit for PHP script. To make it faster you could store the current position on the hidden field on the form, and also make the program reset the time limit to 30sec after each move, but storing the position on the form would make it go much faster!

🕸💡📝Fergus Duniho wrote on Sun, Jul 10, 2005 09:17 PM UTC:
Going over PHP's 30 second time limit normally indicates a bug in the GAME
Code program, usually an infinite loop. Try debugging your code.

Storing the position on the form would have little effect on speed, since
automation and checking the legality of moves doesn't really take that
long. The only thing I've tried that is really time consuming is checking
for checkmate and stalemate, which both involve trying out alternate moves.
So I normally put code for this in the Post-Game sections, so that it gets
done only at the end of a series of moves.

As for resetting the time limit, I don't think that's doable. It is a
built-in feature of PHP, which Game Courier is written in, not of Game
Courier itself.

Antoine Fourrière wrote on Sun, Jul 10, 2005 11:23 PM UTC:
My checking-for-check (not checking for checkmate or stalemate) presets for
Chess on a Longer Board with a few pieces added and Maxima managed to reach
the 30-second time limit within 40 moves (from each side).
I had to limit myself to move-checking presets which do not check for
check. (Anyway, the checking-for-check preset for Maxima also has bugs
which are related to baroque capture and the form of the board, and whose
resolution would require even more time from Game Courier).

🕸💡📝Fergus Duniho wrote on Mon, Jul 11, 2005 03:32 AM UTC:
To both Antoine and A. Black,

I have looked at Antoine's Maxima code and at A. Black's Xaigo code, and
both could use some optimizing. Antoine, I suspect you could optimize much
of your code by using functions instead of long series of conditionals.
For example, I used to use long series of conditionals to check for check,
but then I added the ability to use functions and could then check for
check with a single line of code. A. Black, I've noticed that you could
optimize your code a bit by using the match command in place of or-ing ==
conditions. In general, I recommend becoming more familiar with the new
commands, functions, and capabilities I not too long ago added to GAME
Code. Knowing how to best use them will help you write more efficient
code. As someone who cut his programming teeth on an 8k Vic 20, my
programming mantra has always been optimize.

(zzo38) A. Black wrote on Sun, Dec 11, 2005 11:58 PM UTC:
You should have a image set for Japanese Kana, both hiragana and katakana, like a piece is KA or ka can be red and blue and put KA+ and ka+ to change hiragana and katakana mode.

🕸💡📝Fergus Duniho wrote on Mon, Dec 12, 2005 04:10 AM UTC:
What's Japanese Kana?

(zzo38) A. Black wrote on Mon, Dec 12, 2005 07:42 PM UTC:
Look at the Kana entry on Wikipedia to see what is Japanese Kana.

(zzo38) A. Black wrote on Tue, Dec 13, 2005 10:33 PM UTC:
See http://www.chessvariants.org/index/msdisplay.php?itemid=MSjapanesekanaic for a list of all the icons, their names, and information how you can add them to Game Courier

🕸💡📝Fergus Duniho wrote on Wed, Dec 14, 2005 02:31 AM UTC:
I see some foreign characters there (Japanese Kanji?), but I'm not going to do the hard work of making pieces from them. If you want pieces for this game, make them yourself, then email me a zip file containing the completely finished pieces. For use with Game Courier, make sure each piece is a transparent GIF, and make the transparent color green, specifically #00FF00.

(zzo38) A. Black wrote on Wed, Dec 14, 2005 06:01 PM UTC:
Quote:
I see some foreign characters there (Japanese Kanji?), but I'm not going to do the hard work of making pieces from them. If you want pieces for this game, make them yourself, then email me a zip file containing the completely finished pieces. For use with Game Courier, make sure each piece is a transparent GIF, and make the transparent color green, specifically #00FF00.

These symbols are Japanese Kana, not Kanji. And I will make the images when I have time and send them to you.

25 comments displayed

EarliestEarlier Reverse Order LaterLatest

Permalink to the exact comments currently displayed.