 Hello world, it's The Surfing Scratcher here bringing you another video connecting the world of maths to Scratch. In this video, we're kicking off a brand new game called Whacker Rule. You're probably all familiar with that arcade game where a mole pops up out of the ground and you go whack it on the head. Well, create a scratch game that does just that, where you enter in a number, and if that number relates to a mathematical rule, so save that mole, up it comes for you to whack. Once you work your way through the videos, I'll show you how to remix the project and create your own mathematical rule. So let's get stuck and do it. Okay, so here we are in the Whacker Rule Scratch project page. I'm just going to go ahead and press the green flag and step our way through the tutorial. So we're going to use the left and right arrows to navigate the tutorial. Press the box to skip the tutorial. Each mole, and there are four of them, is hiding a mathematical rule. A rule is something like an even number. Could be like an odd number as well. Could be a number greater than 10. You can click this little chicken here or press a key to enter a number. If the number matches a rule, then the mole simply pops up. You can, of course, whack the mole when it pops up. Whack. If you succeed, you gain life to guess a rule. If you want to guess a rule, then you press one of these signs. All the signs have red indicators, which means we haven't guessed the rule. So read through all the rules and look at the numbers to the left of it. If you think that's the rule, enter the number in this field here. The rule will show in the guess rules if you are correct, and our sign would change to green, but it won't in this tutorial. The game is over if you run out of lives or if you guessed all four rules. We're going to press the box to now select a level. So we've got different levels that we can choose here, right from level two mathematics all the way up to level seven. So you go ahead and choose the one that's to choose. We're just going to go our entry level, level two. Press the space bar. So you can click this chicken or just simply press a key to enter a number. So I'm just going to press a key and type in the number two. Cool. I got two moles that popped up there, this three mole and this two mole. So that was when I entered the number two. Now I'm going to enter the number four. All right. I get the same two moles in there. Now, if I'm thinking about the numbers two and four, they're both even numbers. So I'm going to press the number six as well just to see how we're going here. So the same two moles pop up. All right. So knowing that it's an even number is great, but they can't both be even numbers, I'm sure. So I'm going to go in and click one of the signs now. And I'm going to check out the rules that we've got on here. A four-digit number, a three-digit number, less than 20 and odd number and even number. Well, there's definitely two rules there that would apply to our mole. It's probably either an even number or something less than 20. So I don't actually know which one it will be because I haven't put in a number that's greater than 20. So I'm just going to take a stab in the dark here. I'm going to press number five and that will mean the even number rule. All right. Actually, just randomly got that one right. You can see my sign has now switched to green. So if I enter a number that is 20 or greater now, I wouldn't expect this mole to pop up. So I'm going to enter in the number 21 and there we go. It's nice and hidden away. I press the number 19 up. It goes again and I can whack it and I get a life. So I reckon this number two mole is another thousand 20. So enter in number three. Boom. Cool. Now when I typed in 21, I'm pretty sure I saw this number one mole pop up. Bloop. Okay. So if I look through the rest of the rules, I've got an odd number, a three-digit number and a four-digit number. So it obviously wasn't a three-digit or four-digit number. It has to be an odd number. So I'm going to type in the number four and there we go. We're in. Okay. The last rule here, we don't know what it will be. So we'll get back out of there and you can see I just lost a life. But let's type in a three-digit number. So two, three, four. All right. Let's see our even number mole popped back up and our four mole popped out. Our blue one. So that was definitely a three-digit number. Number two. Boom. And then we have it. We have guessed all of our mathematical rules and we have got all of our signs turned to green and we have won the game. So in future videos, I'm going to show you how to make some of your own custom rules and I encourage you to jump through the levels and try and guess some of the more trickier rules that are out there. That's it for this video. If you liked it, give it a thumbs up and don't forget to check the description below for a link to the project so you can play it yourself. In future videos, I'm going to show you how to remix the project and create your own mathematical rule that you can inject into the game itself so you can play it with your friends and family. If you want to stay tuned to when I release more content, make sure you hit that subscribe button and the little bell so you are alerted to it. But until then, I'm off to go find a wave. Take it easy.