wtd @ Mon Jan 14, 2008 10:13 am wrote:
Please don't encourage the use of magic numbers.
O no, sorry, I wasn't trying to do that. Also, I just realized that my post wasn't even complete.
ICS_Hard, you should use 1 and 2 to represent your player pieces, and empty spaces should be represented by 0. And ya, don't use magic numbers, initialize all your values.
Those numbers are just as magic. You can use _static final int_s as a poor man's enum to save yourself some trouble. Java enums are great sometimes, but it really can be convenient when you just have int constants.