# I need help with slot machine

**URL:** <https://forum.makecode.com/t/i-need-help-with-slot-machine/18244>\
**Category:** Arcade\
**Created:** [March 3, 2023, 10:53pm UTC](https://forum.makecode.com/t/i-need-help-with-slot-machine/18244 "2023-03-03T22:53:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mr-Harris](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/mr-harris/32/7897_2.png) [@Mr-Harris](https://forum.makecode.com/u/Mr-Harris)\
**Post date:** [March 3, 2023, 10:53pm UTC](https://forum.makecode.com/t/i-need-help-with-slot-machine/18244/1 "2023-03-03T22:53:18Z")

</div>

![Screen Shot 2023-03-03 at 11.00.52 AM](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/2/2eb3bf8a8d1dd59956a0ffd675b6d6445fe499d0.png)  
This is the code I have so far. I want it where if three in a row were to happen the game would splash “Match”

---

<div class="post-metadata">

**Author:** ![KIKIvsIT](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/kikivsit/32/10492_2.png) [@KIKIvsIT](https://forum.makecode.com/u/KIKIvsIT)\
**Post date:** [March 3, 2023, 10:55pm UTC](https://forum.makecode.com/t/i-need-help-with-slot-machine/18244/2 "2023-03-03T22:55:56Z")

</div>

You’ll need to look in the Image category to find the comparison block for images. Then, you’ll compare them at the end each time gambling\_symbols is called to see if mySprite == mySprite2 && mySprite2 == mySprite3.

It looks like you enjoy the problem solving aspect, so I won’t give you much more information than that…but please do ping if you want me to elaborate!

~Kiki

---

<div class="post-metadata">

**Author:** ![Mr-Harris](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/mr-harris/32/7897_2.png) [@Mr-Harris](https://forum.makecode.com/u/Mr-Harris)\
**Post date:** [March 6, 2023, 6:27pm UTC](https://forum.makecode.com/t/i-need-help-with-slot-machine/18244/3 "2023-03-06T18:27:58Z")

</div>

![Screen Shot 2023-03-06 at 12.14.24 PM](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/c/cef4be327038569d0c2810e22b220133ae46423f.png)  
Like this, is this what you meant?  
It works, but is this too much?
