**A Solution has been found. Here is the finished project: https://c.gethopscotch.com/p/zu22zhcna**

So I made this game called NO! Here’s a link:

https://c.gethopscotch.com/p/zthtmow8h

It’s completely impossible as long as you don’t mash the screen. I tried to make a possible version where it started with 14 marbles and you could win if you wanted because someone (Petrichor) remixed and told me I should do that. But for some reason, if I tried changing the number to 14, the computer just skips it’s turn and wins again. I tried looking if anything was making it do that, but I didn’t find anything. Can anyone help me? Thanks!

# Solved. Ignore please

**Hopscotcher**#1

**Hopscotcher**#3

- I guess you can say the computer is cheating… just look up the game Nim and you’ll see.
- There is no “I want to win” button, so I don’t know what you mean.

**Hopscotcher**#6

So I made this game called NO! Here’s a link:

It’s completely impossible as long as you don’t mash the screen. I tried to make a possible version where it started with 14 marbles and you could win if you wanted because someone (Petrichor) remixed and told me I should do that. But for some reason, if I tried changing the number to 14, the computer just skips it’s turn and wins again. I tried looking if anything was making it do that, but I didn’t find anything. Can anyone help me? Thanks!

**Petrichor**#9

From what I saw, it seems like you have coded ina case for every possible game state. In a similar game I made, I used a conditional to check if the current number is a multiple of four. I did this using the modulo operator. If it is, I had it take a random amount from one to three. If it isn’t, I had it take enough to where it is. I made a simplified version here.

**Hopscotcher**#10

Thanks a nonillion! I will fix my game up now and publish it. Thanks again for the help!

**LunaMorgana387**#13

It is also called module operator (or at least that is how I call it too, and my book says that too)