It would be fun to implement different algorithms to increase the difficulty once I learn a bit more. This is due to the computer randomly choosing a cell from a decreasing list of 100. Wanted to move on from this project to learn more stuff, so will improve it in the future. Right now certain inputs will cause the code to crash. The user experience can be easily improved by user-proofing the code. The code terminates and outputs a message to restart if the user wishes to. The game end when one side has lost all of the boats. Allowing the user to know how many (and which) boats are left. number of lives), the number of boats left displayed under the grids, changes. When the number of hits equals the length of the boat (i.e. The code will warn the user if an already bombed cell has been chosen.Ī list keeps track of the number of hits a boat has received. The player logic is the same but the user has to input the desired cell. ![]() Otherwise, the cell will be updated with a "~" to show the bomb missed. ![]() If there is a boat on that cell of the player's grid, the cell will be updated with an "x" to show that the boat has been hit. Using a similar logic as the set up, the CPU will randomly choose a cell to bomb. The CPU board is set up using Python's random library:Įnter fullscreen mode Exit fullscreen mode Upon inisialisation, the user will be given a prompt to choose the initial cell the boat will occupy, and whether you want to position the boat vertically or horizontally. Each player will have 5 different boats with different lengths: Otherwise it will be a "miss".įor my game, I have decided to create a 10x10 alphanumerical grid. If a boat is occupying the cell, the boat will be "hit". Each turn, the players will "bomb" a grid cell (e.g. I recommend downloading the PDF to your computer and then printing for the best results.As part of the course I am taking to improve my programming skills, I have decided to code a Battleship game to be played using the command line.īattleship is a two player board game where the objective is to sink all of your opponent's ships. It’s easy to download, just click the purple link and the Battleship Game PDF (free printable) will show up on your computer. Download Free Battleship Game Printableĭownload this free battleship game printable template to play with kids! This classic game is full of strategy and a little good luck. Be careful not to place all your ships on the edge because your opponent will recognize your pattern and it will be easier to sink your ships. Placing a ship on the outside edge of the grid will let you have one battleship that is hard to find. Most players tend to start firing towards the middle of the board. You should also have one or two ships along the edge of the grid. The best battleship placement strategy is to have your battleships with at least 1-2 spaces between each. The opponents grid is where you will record your firing and hits on their ships.įor the official rules check out these Rules for Battleship from the game maker Milton Bradley. A fleet of ships is forced to do battle with an armada of unknown origins in order to discover and thwart their destructive goals. The grid you use for yourself is where you will place all of your battleships.Įach letter will go into one box adjacent to each other. With Taylor Kitsch, Alexander Skarsgård, Rihanna, Brooklyn Decker. All you need for the Battleship printable board game template is pencil and 2 prints of the boards.Įach board has a grid for the “opponent” and a grid for “myself.” Printable Battleship is played the same way as the regular Battleship board game. Either way, I seriously love that I don’t have to search all over the house for the pieces so that we can actually play the game. These Battleship board game templates can be played with a pencil and paper or you can laminate them and use dry erase markers to play. ![]() Kids can still play games that are really fun without being on a screen! That’s why I’ve been working on printable games to play with pencil and paper like this Battleship game and Dots and Boxes. We all know that kids need less screen time, but mine act like they don’t know what to do when the screens go off. Now as a mom, I’m always looking for things that my kids can do without being on a device or in front of a screen. We would especially loved to play on long car rides or when the weather was bad. I remember playing Battleship as a kid and it was always so fun to play against my brothers and sisters. “You sunk my battleship!” A classic game played with pencil and paper on these free printable Battleship board game templates! Play with friends and family for a fun battle to see who sinks the most ships to win.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |