Zigzag paths Log Out | Topics | Search
Moderators | Register | Edit Profile

Zillions of Games Discussion Forum » Designing Games for Zillions » Zigzag paths « Previous Next »

Author Message
Ronald W Brierley (Ronaldwb)
Posted on Thursday, March 27, 2003 - 2:39 pm:   

Hello,
I think a similar problem has been mentioned before in this forum but I don't think any solution was suggested. As a beginner at ZoG programming I am enjoying trying to produce my first game and its variants. I am making progress but I envisage a real problem with the movements of one type of piece, which I call a snake. Assume the game is played on a standard chess board. In chess a rook slides across the board along a straight line parallel to one of the sides of the board. I wish to create a snake that progresses by a move that combines steps in two chosen directions, causing it to zigzag across the board. Using the usual directions of n, e, s and w, a complete move might be the sequence n e n e n e, or perhaps n w n w n. The snake has 4 initial directions to choose from and for each of them there is a choice of two secondary directions that may be included in the move sequence. Thus there are in general eight available paths the snake may choose to take. It may move through any empty squares but its path terminates on meeting a friendly piece. If an enemy piece is found at the end of the sequence the enemy piece may be captured. These rules controlling the scope of a single move are the same as for a chess rook, but the path taken is more complex.
I have thought of a few forms of the movement statements but I have failed to convince myself that they would make sense. Does anyone know of a game containing such move sequences or can anyone suggest any move statements that will work?
Thanks,
Ronald W Brierley
Peter Aronson (Peteraronson)
Posted on Thursday, March 27, 2003 - 4:07 pm:   

The move you describe is the move of a piece I called a Rhino, and that earlier Ralph Betza had called a Twiknight. A ZRF that contains this piece (as well as the Crooked Bishop AKA Boyscout, which moves in alternating diagonals) can be found at:

http://www.chessvariants.com/index/zillions.php?itemid=zRhinoChess
Tim Stiles (Patashu)
Posted on Friday, March 28, 2003 - 11:49 pm:   

Peter, he was actually describing the crooked rook, but looking at a zrf file with a crooked bishop should help anyway.
Ronald W Brierley (Ronaldwb)
Posted on Wednesday, April 02, 2003 - 5:08 am:   

I thank Peter Aronson for the references to 'crooked' code in various implementations of games. This led me to find texts describing various 'crooked' pieces and to games implementing them. I have tested the 'crooked bishop' in 'nearly-colorboundmost' and found it does what I require of a 'crooked' piece. I am still engrossed in the nuances of the ZRF programming language and expect it to be some time before I need to implement my own crooked paths. Thank you for your help.

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: