Introduction: Zach's Micro Bit Battleships
If you are looking for something to do in your free time this is a great and easy project that is tons of fun and does not take that long at all.
You don't need much for it and it is very cheap.
In this instructable, I will show you how to make a battleships game on a microbit.
I will show you a very cheap and easy way to do this and with much ease.
Supplies
You will need two micro: bit boards
Four double AA batteries
One USB-a to micro-USB cable
Step 1:
That is all the supplies you will need. You will also need access to a PC/Chromebook that can upload the code to the micro: bits. Which is easy to get access to, as you could just go to the library and use the computers there.
Step 2: Step 2: Choosing a Code Type
there are two main ways for coding this game which is blockly and javascript. These are the main ways of doing this because they can be easily downloaded to the micro: bit using makecode.microbit.org.
Which is what you see in the image above.
Step 3: Step 3: Coding the Game
As I said in step 2 there are two main options of code. Now you can see above the two main types, I must say that doing it in the blocky version is a lot easier and much faster. But if you like a challenge then I would definitely choose the javascript.
Step 4: Step 4: What Does the Code Mean?
In the blocky code, there are a bunch of colours and each colour represents a type of code.
So for the blue looking code that is all of your basic codes. Such as lighting up the led's when asked. And the start and finish codes.
The pink code is the input code. That means it controls what each of the buttons does on the mico" bit.
The orange/red is the music.
The dark purple is more of an in-depth version for controlling the LEDs.
The darker pink is for the radio receivers and senders.
The green loops everything.
The cyan is the logic behind everything. It is physics.
The reddy pinky colour controls the variables.
And the medium purple is the math behind everything.
Just copy the videos for the code and then download it to the microbit.
Step 5: Step 5: Have Fun
This will be the ending product. A finished game of battleships on micro bits. Go and have fun and beat your friends in battleships.
Don't let this limit what you do with micro: bits. There are endless things you can do with micro: bits.
So many more
Step 6: Credit to These Sources
Microsoft MakeCode for micro:bit (microbit.org)
Hackster.io. (n.d.). Communication of Micro:Bit Using Radio Signal. [online] Available at: https://www.hackster.io/anish78/communication-of-... [Accessed 8 Nov. 2021].
MartineLassenMore (n.d.). Radio Signals on Micro:bit. [online] Instructables. Available at: www.yourturnmyturn.com. [Accessed 8 Nov. 2021]. www.yourturnmyturn.com. (n.d.). YourTurnMyTurn.com:
battleships rules. [online] Available at: www.yourturnmyturn.com. [Accessed 8 Nov. 2021].

