Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: On Beowulf - long post

Author: Erik Robertsson

Date: 09:03:53 06/06/01

Go up one level in this thread


This may seem silly to take up here, but if you want to use your code for
teaching purposes you should at least have readable code. Have a look at this:

 >register SHORT u, piece;
 >register UCHAR *ppos, *pdir;

 >TrP = &TrPnt[ply + 1];
 >piece = board[sq];

What is u, ppos, pdir TrP ? Descriptive names for the variables doesn't hurt.
Sure you may have to do som extra typing but thats a minor cost for improving
readablity. Besides if tou´re using Visual Studio you can always use Ctrl+Space.




This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.