Alice Community  

Go Back   Alice Community > Alice 2 > How do I...?

Reply
 
Thread Tools Display Modes
Old
rmcguire
Junior Member
 
Status: Offline
Posts: 6
Join Date: Nov 2011
Default 11-06-2011, 10:49 AM

No I didn't haha.

And i'm not sure either, I feel like my logic is right, but it appears not to be.
   
Reply With Quote
Old
Powerhouse64
Senior Member
 
Powerhouse64's Avatar
 
Status: Offline
Posts: 54
Join Date: Nov 2011
Location: In ur base, movin ur stuffs
Default 11-06-2011, 10:59 AM

So what I'm getting from your code is that Alice may be getting confused by the world.record property. I'd say (if you're new to Alice) try the if/else statements that I mentioned earlier, (without the random code part) and don't try to work with lists/arrays yet. I don't fully understand them, nor will I pretend to, but I think that for clarity's sake, and for readability, you might want to try using methods with if/else statements that are done in order, asking for the user to click on certain buttons in order. Once you have a reliable code down for 2-3 patterns, re-write the code for randomly choosing one of those patterns, then one you're comfortable with that, ask around for helps with lists. I'm having a bit of difficulty understanding your code anyways, but if someone else wants to give it a try, they can feel free to do so.

As for getting the code to run reliably, the if/else statements might be your best bet for now. Sorry I couldn't help too much! I can't wait to see more from this code though, it looks really interesting!


Hogwarts: Where everything is made up, and the points don't matter
   
Reply With Quote
Error
Old
rmcguire
Junior Member
 
Status: Offline
Posts: 6
Join Date: Nov 2011
Default Error - 11-06-2011, 02:48 PM

This is what I have now and it works pretty well. The problem however is for patterns that use a button more than once. As long as the button is pressed one time, the program thinks the pattern is correct. Is there a way around this?
Attached Files
File Type: a2w Bomb.a2w (416.1 KB, 17 views)
   
Reply With Quote
Reply

Tags
patterns, simon says

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Copyright ©2024, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.