Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
ebaptist
Newbie


Joined: 16 Oct 2002
Posts: 7
Location: USA

PostPosted: Wed Apr 06, 2005 3:43 am   

Challenge for you scripters
 
Okay heres the deal i have a 3x3 puzzle i have to solve in this game illustrated as such

Code:

a1 a2 a3
b1 b2 b3
c1 c2 c3

each one of those has one of two values
Awake or Asleep

In Text Strings for awake and asleep

A great stone head is here, peacefully asleep.
A great stone head is here, grumpily awake.

What i need to do is write a script to handle figuring out the solution given the puzzle

so heres how it works
a1 - changes a1 b1 a2
b1 - changes a1 b1 c1 b2
c1 - changes b1 c1 c2
a2 - changes a1 a2 a3 b2
b2 - changes b1 a2 b2 c2 b3
c2 - changes c1 b2 c3
a3 - changes a2 a3 b3
b3 - changes b2 a3 b3 c3
c3 - changes c2 b3 c3

so i figure i can prompt each person for the variables
Code:

#PROMPT a1 "What is the status of a1-top left"
#PROMPT a2 "What is the status of a2-top middle"
#PROMPT a3 "What is the status of a3-top right"
#PROMPT b1 "What is the status of b1-middle left"
#PROMPT b2 "What is the status of b2-middle middle"
#PROMPT b3 "What is the status of ab-middle right"
#PROMPT c1 "What is the status of c1-bottom left"
#PROMPT c2 "What is the status of c2-bottom middle"
#PROMPT c3 "What is the status of c3-bottom right"


and then run then into a solution solver that spits out the moves to make to solve it. However i havent even come up with anything that remotely can do that other than randomly try. the goal is to get them all sleeping. Heres a start we just had on this puzzle

S S S
S A S
A A A

Was easy to solve
bottom middle makes them all sleeping

However most of the time its not this simple and it changes so im hoping to get this working. If you can help by all means take me up on the challenge because it has me stumped.
Reply with quote
LogixSR79
Newbie


Joined: 02 Apr 2005
Posts: 4

PostPosted: Wed Apr 06, 2005 6:54 am   
 
does the mud have a "scan" or scout command that lets you see whats in the rooms adjacent? if so i would say save to a var what is in the current room and compare it to what is in the rooms next to you and then move to the next room with the awake one saving where you just came from. obviously you will have to a bit of error checking to make sure you are not running in a 4 room circle instead of moving through the whole area... well at the very least maybe this will help you get started :P
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net