| Author |
Message |
Sean Duggan (Dream)
| | Posted on Monday, September 11, 2000 - 7:36 pm: | |
I'm trying to convert an 8x8x8 chess variant into ZRF format. The pieces ought to be easy to program in as they only slightly vary from regular chess. The board is giving me problems. I like to set it up like this: X X X X X X X X where X is an 8x8 board. I've tried using two grid statements, but no dice. Will I have to put all that in manually? Current code: (define Board-Definitions (image "\Temp\Chess8x8x8.bmp") (grid (start-rectangle 5 5 21 21) (dimensions ("1/2/3/4" (0 138 )) ; ranks ("a/b/c/d/e/f/g/h" (15 0)) ; files ("8/7/6/5/4/3/2/1" (0 15)) ; ranks ) (directions (n 0 -1 0) (e 1 0 0) (s 0 1 0) (w -1 0 0) (ne 1 -1 0) (nw -1 -1 0) (se 1 1 0) (sw -1 1 0) ) ) (grid (start-rectangle 5 145 21 161) (dimensions ("5/6/7/8" (138 0 )) ; ranks ("a/b/c/d/e/f/g/h" (15 0)) ; files ("8/7/6/5/4/3/2/1" (0 15)) ; ranks ) (directions (n 0 -1 0) (e 1 0 0) (s 0 1 0) (w -1 0 0) (ne 1 -1 0) (nw -1 -1 0) (se 1 1 0) (sw -1 1 0) ) ) (symmetry Black (n s)(s n) (nw sw)(sw nw) (ne se)(se ne)) (zone (name promotion-zone) (players White) (positions 1a8 1b8 1c8 1d8 1e8 1f8 1g8 1h8) ) (zone (name promotion-zone) (players Black) (positions 1a1 1b1 1c1 1d1 1e1 1f1 1g1 1h1) ) (zone (name third-rank) (players White) (positions 1a3 1b3 1c3 1d3 1e3 1f3 1g3 1h3) ) (zone (name third-rank) (players Black) (positions 1a6 1b6 1c6 1d6 1e6 1f6 1g6 1h6) ) ) |
Dan Troyka (Dtroyka)
| | Posted on Tuesday, September 12, 2000 - 9:16 am: | |
You can set up an array of four 8x8 boards on top and four 8x8 boards on the bottom by adding a fourth dimension so that your dimension statement looks something like: (dimensions ("A/B" (140 0)) ; stack ("1/2/3/4" (0 138 )) ; ranks ("a/b/c/d/e/f/g/h" (15 0)) ; files ("8/7/6/5/4/3/2/1" (0 15)) ; ranks ) This may create link problems depending on how the boards interconnect. If they don't interconnect at all, there should be no problem. Btw, your directions may not be set up correctly. The third position (I think) refers to motion along the third listed dimension, ranks in this case, so north should be (n 0 0 -1) not (n 0 -1 0). In general, you may need to move the zeroes at the end of each direction to the front (and add another zero if you add a fourth dimension). Get rid of the second grid statement. The consensus seems to be that they don't work. |
David GLAUDE (Glu)
| | Posted on Tuesday, September 12, 2000 - 11:19 am: | |
A last option is to write a program (perl script or such) that will generate the proper position and link for you. David GLAUDE glu@who.net |
|