Alice Community  

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

Reply
 
Thread Tools Display Modes
Simon game pattern question
Old
bfry
Member
 
Status: Offline
Posts: 22
Join Date: Jan 2012
Default Simon game pattern question - 05-02-2012, 01:18 PM

As my final project, I've been working on recreating a Simon-like game and I can't for the life of me figure out how to program a typical Simon-style pattern. I have no problem with randomization, the user matching each color, or adding to a pattern. I just don't know how to get the previous pattern to play so I can add a new random color to the pattern until the player misses.

I have attached what I have so far. I have about a week to get this done so any help without directly giving me the solution would be greatly appreciated.

Thanks.
Attached Files
File Type: a2w Game_Project.a2w (439.2 KB, 52 views)
   
Reply With Quote
Old
TauTrumpsPi
Senior Member
 
TauTrumpsPi's Avatar
 
Status: Offline
Posts: 399
Join Date: Mar 2011
Location: The diamond layer
Default 05-02-2012, 01:47 PM

Do you know how to use lists? If so, there's your hint - lists will be by far the easiest way to do that.


--------------------------------------------------------------------------------------------------------------------------
I have plenty of common sense. I just choose to ignore it.
-Calvin and Hobbes

Wondering about my Avatar?
http://en.wikipedia.org/wiki/Tardigrade

Wondering about my username?
http://www.youtube.com/watch?v=jG7vhMMXagQ
   
Reply With Quote
Old
bfry
Member
 
Status: Offline
Posts: 22
Join Date: Jan 2012
Default 05-02-2012, 11:09 PM

I was thinking that using a list was going to be the best way too since it can grow and shrink as needed. The problem is that I know how to get the values into a list, but I don't know how to extract the values that I need from it -- such as getting the stored pattern to play in a specific order.

EDIT:
Nevermind, I figured it out.

Last edited by bfry; 05-02-2012 at 11:42 PM. Reason: Resolved issue
   
Reply With Quote
Help
Old
15986
Guest
 
Status:
Posts: n/a
Default Help - 05-22-2012, 07:29 PM

Can you upload your final i am doing the exact same thing for my final and need help :/
   
Reply With Quote
Old
David B
Senior Member
 
David B's Avatar
 
Status: Offline
Posts: 1,145
Join Date: Dec 2010
Location: N/A
Default 05-22-2012, 08:20 PM

Quote:
Originally Posted by 15986 View Post
Can you upload your final i am doing the exact same thing for my final and need help :/
What I would do is have a random number be selected, and depending upon what is selected, use a series of if/else statements to determine the next color.
   
Reply With Quote
Reply

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.