| Author |
Message |
Logan Howard (Hyla_Cinerea)
| | Posted on Monday, February 27, 2006 - 5:16 am: | |
I'm working on a game where pieces can make multiple long leaps over friendly or enemy pieces in an attempt to steal a ball. I did my movement as in Super Chinese Checkers only with 8 directions instead of six. How can I make Zillions check if the most recent leap was over a piece with the ball and take it away? |
Mats W (Kålroten)
| | Posted on Monday, February 27, 2006 - 11:58 am: | |
I do exactly that in PlatonicHalma (updated the other day). The circle makes multiple super-long leaps (as in Super Chinese Checkers). If it jumps over an enemy circle, then this is captured and brought back to the first rank. Look at the functions with "circle" in the name. I seldom find the best technique of programming, but at least it works. |
Mats W (Kålroten)
| | Posted on Monday, February 27, 2006 - 12:15 pm: | |
What do you mean, by the way? It sounds trivial. Do you want to go back to the previous move and see if has jumped over a ball? Then you could use last-to and last-from, I suppose. Mats |
Logan Howard (Hyla_Cinerea)
| | Posted on Monday, February 27, 2006 - 3:19 pm: | |
I just want to make sure that it only applies to the piece with the ball. It will be jumping over several pieces before and after that. It sounds like yours is similar. I'll download it and take a look. Besides, Platonic Halma looks fun! Thanks, Logan |
Logan Howard (Hyla_Cinerea)
| | Posted on Wednesday, March 01, 2006 - 8:18 am: | |
Hello again, I’ve started testing the movement of my pieces and they won’t stop moving! My pieces aren’t all that different then the ones in Halma and yet I don’t get a pass option. How can I give my players the option to stop moving part of the way through a jump sequence? I’ve looked at Platonic Halma for help but still can’t figure out how you are capturing those circles. I’m new at this so it might just be that the code is overwhelming me at this stage. By the way, I enjoy Platonic Halma, Bouncers, and Battle Halma. I’ve always been a fan of the jumping mechanic in boardgames. Your games appeal to the part of me that is always looking for a crazy series of moves that strings across the board. |
Mats W (Kålroten)
| | Posted on Wednesday, March 01, 2006 - 12:49 pm: | |
Generally you only need to insert the following line (option "pass turn" true) I don't use that solution in PlatonicHalma for technical reasons. To capture the ball you simply insert (e.g.) (if (piece? Ball) capture) The above line you insert after the following line. (verify not-empty?) This should be the place where the ball is located. But you must step up to that line by calling $1 (verify empty?) the appropriate number of times (if you do it in a function). The $1 increments the step in the direction given in the function call. Mats |
Logan Howard (Hyla_Cinerea)
| | Posted on Thursday, March 02, 2006 - 10:50 am: | |
That did the trick for the capture. On the first one- (option "pass partial" true) turned out to be what I wanted. I would have never found it without the nudge in the right direction. Thanks, Logan |
Mats W (Kålroten)
| | Posted on Friday, April 07, 2006 - 1:38 am: | |
By the way, I enjoy Platonic Halma, Bouncers, and Battle Halma. I’ve always been a fan of the jumping mechanic in boardgames. Your games appeal to the part of me that is always looking for a crazy series of moves that strings across the board. (Logan) Then you should definitely have a look at Camelot. It's lot of hopping in this game. Capablanca loved it. There are variants of it, too, Camette, etc. And don't forget my game Hoppers. I'm beginning to suspect that this is quite a good game. Maybe it can be improved. Mats |
Mats W (Kålroten)
| | Posted on Tuesday, April 11, 2006 - 9:39 am: | |
I have now updated Hoppers (HopperDame) so that it plays better, and takes control of the promotion squares. I also updated Swedish Chess so that it relocates the pawns to better positions. Swedish Chess should appeal to chess fanatics who have grown tired of studying openings, but who aren't particularly fond of the alternative FischeRandom. Mats |
Mats W (Kålroten)
| | Posted on Tuesday, April 11, 2006 - 4:22 pm: | |
Of course, I immediately introduced two bugs when I made those small changes in HopperDame. It's amazing! It's always the same. It's probably because one has no sense of the wholeness of the program, so any changes causes ruin. But those bugs are fixed now. |