# Simon Game Help!

**URL:** <https://forum.freecodecamp.org/t/simon-game-help/161142>\
**Category:** General\
**Created:** [November 27, 2017, 7:09pm UTC](https://forum.freecodecamp.org/t/simon-game-help/161142 "2017-11-27T19:09:34Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon56825276](https://avatars.discourse-cdn.com/v4/letter/a/cdc98d/32.png) [@anon56825276](https://forum.freecodecamp.org/u/anon56825276)\
**Post date:** [November 27, 2017, 7:09pm UTC](https://forum.freecodecamp.org/t/simon-game-help/161142/1 "2017-11-27T19:09:34Z")

</div>

I need help with making Simon Game. I made a function to check if the computer raandom clicks are the same as the player clicks. But every time when I click start it displays ‘try again’. I don’t know what to change to make this function check every time the user clicks.

Please help! Here

---

<div class="post-metadata">

**Author:** ![athet0s](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/athet0s/32/72254_2.png) [@athet0s](https://forum.freecodecamp.org/u/athet0s)\
**Post date:** [November 27, 2017, 7:32pm UTC](https://forum.freecodecamp.org/t/simon-game-help/161142/2 "2017-11-27T19:32:34Z")

</div>

Well you call newRound function in startGame function, and newRound calls for checkClicks which is probably why you get a ‘try again’ alert when you click start.

---

<div class="post-metadata">

**Author:** ![anon56825276](https://avatars.discourse-cdn.com/v4/letter/a/cdc98d/32.png) [@anon56825276](https://forum.freecodecamp.org/u/anon56825276)\
**Post date:** [November 28, 2017, 6:31pm UTC](https://forum.freecodecamp.org/t/simon-game-help/161142/4 "2017-11-28T18:31:42Z")

</div>

Thanks, but what should I do to make this function run every time the user clicks on a button to compare it to the seq array, or should I remove that function when the user clicks Start?

---

<div class="post-metadata">

**Author:** ![anon56825276](https://avatars.discourse-cdn.com/v4/letter/a/cdc98d/32.png) [@anon56825276](https://forum.freecodecamp.org/u/anon56825276)\
**Post date:** [November 28, 2017, 7:15pm UTC](https://forum.freecodecamp.org/t/simon-game-help/161142/6 "2017-11-28T19:15:08Z")

</div>

But when I click on a button the usrClick() function pushes values to the userClicks array

---

<div class="post-metadata">

**Author:** ![anon56825276](https://avatars.discourse-cdn.com/v4/letter/a/cdc98d/32.png) [@anon56825276](https://forum.freecodecamp.org/u/anon56825276)\
**Post date:** [November 28, 2017, 9:36pm UTC](https://forum.freecodecamp.org/t/simon-game-help/161142/8 "2017-11-28T21:36:49Z")

</div>

Ok, thanks for the help! 🙂

---

<div class="post-metadata">

**Author:** ![anon56825276](https://avatars.discourse-cdn.com/v4/letter/a/cdc98d/32.png) [@anon56825276](https://forum.freecodecamp.org/u/anon56825276)\
**Post date:** [December 6, 2017, 5:00pm UTC](https://forum.freecodecamp.org/t/simon-game-help/161142/9 "2017-12-06T17:00:35Z")

</div>

I’m making a Simon game and I’ve already added the logic but I don’t know how to pause an execution untill the player has pressed on a tile. I’ve made a function called `user()` that records users input and pushes it to the `userSeq` array. Then I made a function `checkTurn()` to check who’s turn is next (the computer or the user). If it’s the user’s turn then I want in the `else` to wait for the `user()` function to finish and then call the `callcheckClicks()` to check if user’s input is the same as computer’s. Please help! 🙂

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [January 17, 2021, 8:32pm UTC](https://forum.freecodecamp.org/t/simon-game-help/161142/10 "2021-01-17T20:32:48Z")

</div>

Closed on January 17, 2021, 8:32pm UTC


