Re: Coding wall
So, if i'm to understand this correctly, players guess one of a sequence of numbers, if they get it right they go to the next in the sequence, but if they get it wrong they start the whole sequence over again? If thats the case something like this might work:
pattern = [1,2,3,4,5]
sequence = 0
player_number = raw_input()
//get players number
if player_number == pattern[sequence]:
sequence += 1
//play sound that correct number is chosen
else:
sequence = 0
//play sound that wrong number is chosen, reset sequence
_______________________________________________ Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector