| Author |
Message |
Karl Scherer (Karl)
| | Posted on Friday, October 06, 2000 - 3:48 pm: | |
Zillions has a "positions" and a "kill-positions" command, it has a "links" command, but no "kill-links" command. I STRONGLY suggest to include this in the next Zillions release. Example (chess): (kill-links e (b3 c3) (c3 d3)) In grids with many links it makes no sense to code all the links by hand, simulating what a grid statement followed by a kill-links command would do. Cheers, Karl Scherer |
David GLAUDE (Glu)
| | Posted on Friday, October 06, 2000 - 4:44 pm: | |
unlink (unlink ...) unlink accepts a list of any number of arguments , where each argument is in one of the following 3 forms: Deletes all links (if any) going into and out of that position ( ) Deletes all links (if any) directly connecting the positions ( ) Deletes the link in the given direction from the position, if it exists Examples: (unlink e4 d7 c6) ; Removes all links to/from positions e4, d7, c6 (unlink (a1 b1) ) ; Removes all links connecting a1 to b1 (unlink (a1 b1) (a8 b8)) ; Disconnects a1 and b1, Disconnects a8 and b8 ; Removes the “n” link coming out of position a1 ; Note: this has no effect on any links coming into a1. (unlink (a1 n)) ; The different types may all appear on the same list (unlink e4 (a1 a2) d7 (a1 ne)) Usage: (game ... (board ... (unlink a b (c d) e f) ... ) ... ) Copyright 1998 Zillions Development |
Karl Scherer (Karl)
| | Posted on Friday, October 06, 2000 - 5:57 pm: | |
Yes, of course. I had forgotten about unlink. That case nicely shows what a lack of standards in naming conventions can do. If the opposite of "positions" is "kill-positions", then the opposite of "links" of course should be "kill-links". (I have worked for many years as a software engineer, especially pushing better and more userfriendly software standards. One cannot emphasize their importance enough..) Cheers, Karl |
Jeff Mallett (Jeffm)
| | Posted on Monday, October 16, 2000 - 9:58 pm: | |
Of course unlinks may have been implemented first -- then when need for a kill-positions command came along, achieving a standard by naming it "unposition" doesn't really seem worth it... Sorry for the confusion. |
|