| Author |
Message |
John Henckel (Jdhenckel)
| | Posted on Saturday, November 24, 2001 - 4:34 pm: | |
I am trying to implement a 4-bit counter using piece attributes. I've seen pduff's code which uses flags. The reason I want to use attributes is that I want each peice to keep it's own counter, and I want the counter to persist over several add-partial moves. The difficulty I am having is that the verify and set-attribute are not well documented. It appears to me with some playing that the verify tests the attributes of the peice at the current position BEFORE the move, while the set-attribute changes the attributes of the peice at the current position AFTER the move. Is this correct? Has anyone implemented such a counter? |
|