'not-empty?' Log Out | Topics | Search
Moderators | Register | Edit Profile

Zillions of Games Discussion Forum » Designing Games for Zillions » 'not-empty?' « Previous Next »

Author Message
Mats W (Kålroten)
Posted on Tuesday, October 17, 2006 - 4:48 am:   

'not-empty?' could be the cause of many of the problems that Zilions programmers experience. One would expect 'not-empty?' to check whether a square contains either a friendly or an enemy piece. But the problem occurs when 'not-empty?' checks a square outside the board. This generates strange problems that are hard to understand. Use 'not-empty?' with care.

Mats

Add Your Message Here
Post:
Username: Posting Information:
This is a private posting area. Only registered users and moderators may post messages here.
Password:
Options: Enable HTML code in message
Automatically activate URLs in message
Action: