Very nice! I could probably figure out the winning strategy if I spent enough effort on it. I thought the wizard moved a bit slowly, but other than that this is an excellent game. It's clear and easy to play (though not easy to win!). Your use of number keys to pick the starting player and row is ingenius.
Thanks for trying it. The game Is a little bit difficult and I don’t think it’s cheating to go to the Wiki page. I read somewhere on the Web that NIM has been used for years by teachers. It can provide a lot of practice in doing a special binary operation called an Exclusive or.
A great game, but also a bit difficult. I didn't go to Wiki because I don't want to cheat, but alone I can't do it, so I guess I have to go to Wiki......
The algorithm for this project comes from the NIM page on Wikipedia. I used my Logical Array (link to project)">(プロジェクトへのリンク) project as a starting point because the algorithm needs to access the individual bits.
Download this project!
Download the 10 sprites and 43 scripts of "Wizard Nim" and open it in Scratch
Project Notes
Play NIM against the computer. Take turns flipping the dots from red to black. On your turn, you can flip as many dots as you want, but only on One row. The winner is the player that takes the last turn.
I used Innermuse's suggestion and speeded up some of the Wizard's movements.
Comments
You need to be logged in to post comments
Add a Comment
Very nice! I could probably figure out the winning strategy if I spent enough effort on it. I thought the wizard moved a bit slowly, but other than that this is an excellent game. It's clear and easy to play (though not easy to win!). Your use of number keys to pick the starting player and row is ingenius.
Thanks for the feedback. I think you are right about the wizard; he does seem to just mosey along. I try adjusting his glide time.
Thanks for trying it. The game Is a little bit difficult and I don’t think it’s cheating to go to the Wiki page. I read somewhere on the Web that NIM has been used for years by teachers. It can provide a lot of practice in doing a special binary operation called an Exclusive or.
A great game, but also a bit difficult. I didn't go to Wiki because I don't want to cheat, but alone I can't do it, so I guess I have to go to Wiki......
I guess I should have mentioned that the NIM page on wikipedia not only has the algorithm for the game but also the winning strategy. http://en.wikipedia.org/wiki/Nim">http://en.wikipedia.org/wiki/Nim
The algorithm for this project comes from the NIM page on Wikipedia. I used my Logical Array (link to project)">(プロジェクトへのリンク) project as a starting point because the algorithm needs to access the individual bits.