Help With Shortening! Discuss Scratch

Help With Shortening! – Discuss Scratch

Best Online Casinos

 


1. Sol Casino

Sol casino keyword

Free Sign-Up Bonus: 80 Free Spins ( Free Sign-Up Bonus Link )

 

First Deposit Bonus: 150% up to €/$ 300 ( Registration Link )

 

ENTER SOL CASINO

 


 

2. Fresh Casino

fresh casino

Free Sign-Up Bonus: 80 Free Spins ( Free Sign-Up Bonus Link )

 

First Deposit Bonus: 200% up to €/$ 300 ( Registration Link )

 

SIGN-UP FRESH CASINO

 


 

 

3. Jet Casino

jet casino

Free Sign-Up Bonus: 150 Free Spins ( Free Sign-Up Bonus Link )

 

First Deposit Bonus: 150% up to €/$ 300 ( Registration Link )

 

ENTER JET CASINO

 


 

 

 

Help With Shortening! – Discuss Scratch

June 16, 2018 10:08:05

umurr

Sorry if i had bad english but i need help.. I have one game in scratch. Its about clicking and its clicker game.
I published an test version for the help from the forum here it is – https://scratch.mit.edu/projects/229411390/
In-game there is a casino. In the roulette look the code. In the sprite ‘’Number 3’’ there is a code for the roulette.
In the code there are the combinations for win. So that code is like 2/3mb and i want to short it! (sorry for bad english again)
So please help if you can!

June 16, 2018 10:39:06

deck26

What I’d probably do is use two lists. The first contains the combinations – eg PharaonBet=1, PharaonBet2=2 and PharaonBet3=3 would be recorded as 123. So you’re currently checking for three digit combinations in this order

111
222
333
555
553
355
535
444
and so on.

If you find a match you store the position of that combination in the list and look up the corresponding clicks score in the second list. So if the 3 digit code is 555 and that’s item 4 in your first list then item 4 in the second list would give you the clicks value of 5000.

If you don’t find a match for the 3-digit combination you can try 2-digit combinations – I think you’re only checking for 4 and 4 so you could still check for those as you do now. Otherwise you’d do much the same. If you only care about two value being the same you can work out which pair match and again use the lists to find the clicks value.

So your code is really just checking whether the list contains your combination and, if it does, finding where it appears in the list.

June 16, 2018 10:40:13

deck26

You could also sort the values so 355 is used to represent all three combinations (355, 535 and 553) but that’s optional.