# App Lab Help! Memory Game

**URL:** <https://forum.code.org/t/app-lab-help-memory-game/32594>\
**Category:** Coding and Debugging Help\
**Created:** [April 23, 2020, 3:44am UTC](https://forum.code.org/t/app-lab-help-memory-game/32594 "2020-04-23T03:44:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymousally](https://avatars.discourse-cdn.com/v4/letter/a/9e8a1a/32.png) [@anonymousally](https://forum.code.org/u/anonymousally)\
**Post date:** [April 23, 2020, 3:44am UTC](https://forum.code.org/t/app-lab-help-memory-game/32594/1 "2020-04-23T03:44:29Z")

</div>

Sorry disregard this topic. I wasnt aware that I could only have peer collaboration.

---

<div class="post-metadata">

**Author:** ![jdonwells](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/jdonwells/32/7900_2.png) [@jdonwells](https://forum.code.org/u/jdonwells)\
**Post date:** [April 23, 2020, 1:26pm UTC](https://forum.code.org/t/app-lab-help-memory-game/32594/2 "2020-04-23T13:26:06Z")

</div>

Am I looking at a student program here or a teacher asking for help? I ask because I am not sure how much help a student should get on a Create Task and it looks like this account was created just to ask this question.

Until I know you are a teacher let me give some advice I think is apropriate for a student’s Create Task.

You have two `onEvent`s for each card pair. But they are very different. Have you assumed that one card out of a pair will always be chosen first?

Think about being able to randomize which card is placed at which button so that each game is different. How could you do that? What kind of abstractions would be needed if you generate random locations for each card when the game starts? You don’t know which button belongs to which card! You never know which of the pair of cards is chosen first.

---

<div class="post-metadata">

**Author:** ![anonymousally](https://avatars.discourse-cdn.com/v4/letter/a/9e8a1a/32.png) [@anonymousally](https://forum.code.org/u/anonymousally)\
**Post date:** [April 23, 2020, 2:28pm UTC](https://forum.code.org/t/app-lab-help-memory-game/32594/3 "2020-04-23T14:28:29Z")

</div>

Hi! Yes this is for my create task so I understand that you dont want to directly give me the code. My teacher has been no help and this was sort of my last resort. Do you recommend that I delete all of my onEvents and try to create an abstraction that randomizes where each image is placed and then go from there?

---

<div class="post-metadata">

**Author:** ![bhatnagars](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/bhatnagars/32/4919_2.png) [@bhatnagars](https://forum.code.org/u/bhatnagars)\
**Post date:** [April 23, 2020, 5:49pm UTC](https://forum.code.org/t/app-lab-help-memory-game/32594/4 "2020-04-23T17:49:23Z")

</div>

Hi @ [anonymousally](https://forum.code.org/u/anonymousally), I would like to commend you on attempting to make a challenging app, but something of your interest, for the Create PT. I would recommend that you not post code here. This is a public forum and since this is your create PT, it’s security is important. Once it is publicly available you have no control over who is using your code and your ideas. Moreover, College Board’s plagiarism detection systems could potentially flag your create PT submission as plagiarized. You should be collaborating with your peers. That is the only kind of collaboration that is allowed. Here are the instructions from college board taken from page 2 of the task directions.

 ![image](https://us1.discourse-cdn.com/flex016/uploads/codeorgforum/original/2X/3/32868139c79fc903568757218e25a6710740ca51.png) . @jdonwells has kindly given you suggestions, please use these as a guide and collaborate with a peer to solve the problem(s) you are encountering.
