![]() ![]() The first will be an index which represents which colour part we are using in the colours array. We’ll define the function with three parameters. It will be used for when the player selects a colour and when Simon is playing back a pattern or showing that we won or lost. To start off we’ll work on our function that shows a colour has been selected. Thus, functions we will need are as follows: If the player fails the pattern, they restart at round 1.If the player completes the pattern, they move onto round n+1. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |