Requesting help for changes to UFO-Logic Log Out | Topics | Search
Moderators | Register | Edit Profile

Zillions of Games Discussion Forum » Designing Games for Zillions » Requesting help for changes to UFO-Logic « Previous Next »

Author Message
Richard Hutnik (Richardhutnik)
Posted on Saturday, July 05, 2003 - 2:30 pm:   

I want to be able to make the following changes to UFO-Logic:
http://www.zillionsofgames.com/games/UFO_Logic.html

I would like to have it so pieces can end up sliding and stopping at the end of the board. Then, I would like to add a randomizing setup for the puzzles. I could use help with both of these.

If I could get these working, then I could come up a puzzle version of one of my favorite games: Riccocet Robot.

Thanks...
- Richard Hutnik
Karl Scherer (Karl)
Posted on Friday, July 18, 2003 - 6:01 pm:   

Hi Richard,

1.
you find the end of the board to the north with
(while (on-board? n) n)
Similar with the other three directions.

2.
You randomize the setup by letting a ?Random
player drop the pieces:
(turn-order
(?Random Random-Setup) ;(as many as needed)
....
(?Random Random-Setup) ;(as many as needed)
repeat
(Self Standard-move)
)

...
(piece...
(move (move-type Random-setup)(add))
)


I hope that helps.
(or am I missing something here?)

In general, I suggest you find a game that does
something similar to what you want and look at the code.

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: