| Author |
Message |
Ivan (Farrider)
New member Username: Farrider
Post Number: 1 Registered: 1-2014
| | Posted on Monday, January 20, 2014 - 3:12 pm: | |
Hi, I want to add a piece (let's call it F) which has the following ability. Any black sliding piece (think a Rook, Bishop or Queen) which is two squares north of F is frozen and cannot move. Same for white pieces south of a black F. Can someone help me write the relevant lines in the move sections of the zrf file? |
Sean Duggan (Dream)
New member Username: Dream
Post Number: 101 Registered: 9-2000
| | Posted on Monday, January 20, 2014 - 4:20 pm: | |
The easiest way is to modify the sliding piece movement. The easiest way is to add a verify at the beginning. Here's an example of changing "slide" to not work if there's an enemy pawn two spaces north: (define slide ((verify (or (not (piece? Pawn dn)) (friend? dn))) $1 (while empty? add $1) (verify not-friend?) add)) The "dn" is an extra move that I added to move two spaces north with added symmetry for the black side. You can probably do without it, but it made the code considerable simpler. |
Sean Duggan (Dream)
New member Username: Dream
Post Number: 102 Registered: 9-2000
| | Posted on Monday, January 20, 2014 - 5:47 pm: | |
Ye gods... can you give it a rest? You've been posting this doom and gloom for nigh on five years now. Yes, the domain is set to expire. It has before. They keep renewing it. |
Mark Lefler (Markl)
Moderator Username: Markl
Post Number: 4 Registered: 3-2001
| | Posted on Monday, January 20, 2014 - 9:25 pm: | |
I just banned a user for harassing people and posting lies. I am sorry people are so rude. Zillions Development has no plans to shut down this website. Mark |
Sean Duggan (Dream)
New member Username: Dream
Post Number: 103 Registered: 9-2000
| | Posted on Monday, January 20, 2014 - 10:20 pm: | |
Ironically, he's been one of the most active people in keeping the Wikipedia page updated. Otherwise, I'd think that he had a financial interest in keeping that domain he keeps posting in the limelight. He's just got a particular hobby-horse. |
Greg Schmidt (Gschmidt2)
New member Username: Gschmidt2
Post Number: 177 Registered: 1-2007
| | Posted on Monday, January 20, 2014 - 10:40 pm: | |
Thank you Mark, I was hoping that would happen and I suspect I'm not the only one. -- Greg |
Sean Duggan (Dream)
New member Username: Dream
Post Number: 104 Registered: 9-2000
| | Posted on Monday, January 20, 2014 - 11:42 pm: | |
Um... you may want to get his post at /discus/messages/135/210.html?1390249568 as well. |
Greg Schmidt (Gschmidt2)
New member Username: Gschmidt2
Post Number: 178 Registered: 1-2007
| | Posted on Monday, January 20, 2014 - 11:44 pm: | |
Yes, I'll second that Sean. |
Ivan (Farrider)
New member Username: Farrider
Post Number: 2 Registered: 1-2014
| | Posted on Tuesday, January 21, 2014 - 8:35 am: | |
Thanks! I starting to get the hang of zrf coding at last. I couldn't define the dn move for some reason, but I did the freezing in this way: n (verify (or (not (piece? F n)) (friend? n))) back |
Garry Francis (Warrigal) New member Username: Warrigal
Post Number: 6 Registered: 7-2012
| | Posted on Tuesday, January 21, 2014 - 1:32 pm: | |
Mark, I can't thank you enough. I wish he'd been banned years ago. |
Sean Duggan (Dream)
New member Username: Dream
Post Number: 105 Registered: 9-2000
| | Posted on Tuesday, January 21, 2014 - 3:04 pm: | |
Ah. The modifications I made to the standard chess board to add dn were: (directions (n 0 -1) (e 1 0) (s 0 1) (w -1 0) (ne 1 -1) (nw -1 -1) (se 1 1) (sw -1 1) (dn 0 -2) (ds 0 2) ) and (symmetry Black (n s)(s n) (nw sw)(sw nw) (ne se)(se ne) (dn ds)) |
Jon Steven Nelson (Jonn99)
New member Username: Jonn99
Post Number: 5 Registered: 1-2014
| | Posted on Tuesday, January 21, 2014 - 4:49 pm: | |
Why is the ZILLIONS-OF-GAMES.com domain expiration indicated for the immovable one-and-only deadline of FEB 28.2015, at MOSTPOPULARWEBSITES.net? |
Ivan (Farrider)
New member Username: Farrider
Post Number: 3 Registered: 1-2014
| | Posted on Thursday, January 23, 2014 - 8:48 am: | |
Thanks. Now I understand how to use symmetry  |