"Error : too many moves generated"... Log Out | Topics | Search
Moderators | Register | Edit Profile

Zillions of Games Discussion Forum » Designing Games for Zillions » "Error : too many moves generated" « Previous Next »

Author Message
maurizio de leo (Megamau)
Posted on Wednesday, August 07, 2002 - 8:20 pm:   

Hi to everyone.

I'm programming my first game in zillion and everything seems to work fine, but I get this message when I start the game :

"Error : too many moves generated"

The game is playable if I play both colors, but this error would show everymove. And the computer doesn't play of course.

The problem is that I don't think there are so many move. You can think of this game as a kind of chess with 4 queens,a king and 11 pawns : really this can sum up for too many moves ?

Maurizio
Karl Scherer (Karl)
Posted on Thursday, August 08, 2002 - 6:17 am:   

The number of "moves generated" is not only
dependend on the number of moves types specified for the various piece types, but also dependend
on the number of places a piece can go to.

When you say you use
4 queens, a king and 11 pawns
then I assume that you work on a board which is larger than 8x8, though you did not specify this
important detail.
On a 8x8 board I doubt that you would have a problem.

A large board might well lead to such a message.

A (somewhat awkward) way around this is to convert the moves into drop+capture pairs.
You drop a piece, then capture your own from the
FROM-position.
After that it is the next player to do the same.

Drops do not have the same move limit, because here only the number of places you can drop to are counted, which are much less than the from/to combinations.

You are welcome to email your game to me and I will see where the problem lies.
(karl@kiwi.gen.nz).

Cheers, Karl
maurizio de leo (Megamau)
Posted on Thursday, August 08, 2002 - 8:26 am:   

The board is actually a 7*11, not SO big. I think chess 10*10 has way more moves than this game. However this is my first attempt at programming a game, and one of the first at programming tout court, so probably my code is bugged. I will send you the code, thanks for you kindness.

Maurizio

P.S. the board image is a little big (0.5Mb). If your mailbox can't handle it I will send only the rules in another message.
maurizio de leo (Megamau)
Posted on Thursday, August 08, 2002 - 2:31 pm:   

I think I managed to solve the problem. Most probably it was because of a typo in the (links).
I wrote (links i2 i2) instead of (i2 i1) and maybe the engine was continuing going from a square on the same square. However thank you for your availability and sorry for the big attachments.

Maurizio

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: