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 ]

Single Comment

Game Courier. PHP script for playing Chess variants online.[All Comments] [Add Comment or Rating]
🕸💡📝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.