Rany#34| Classic •Sea battle• or •Battleship• [+ 2d array and how to]

Hello again,
This topic is made only for those who like to learn or to play. If you think you are good enough in the Workshop then feel free to stop reading here.

Today I will teach you how to work with 2d arrays using Subroutine, pass and request a value from 2d array. Also you will see how to calculate different things. Use my code to see how it made, ask a question if there is any.

About the game mod.
It is 1vs1 (duel) game mod. Required minimum amount of players: 2. Each player plays with a dummy Bastion that shoots a target you point to. If a player leaves then other player will be declared as winner. Total list of ships each player has to find: 1 x 5 part, 2 x 4 parts, 3 x 3 parts and 4 x 2 parts. A player will keep shooting until first miss then other player starts. Each player has max 25s to make a shot then other players starts its 25s.

Game description from wiki

Battleship (also Battleships or Sea Battle ) is a strategy type guessing game for two players. … The locations of the fleets are concealed from the other player. Players alternate turns calling “shots” at the other player’s ships, and the objective of the game is to destroy the opposing player’s fleet.

In-game description

Do you know to play Sea Battle? You would like to try a duel in Overwatch Team Deathmatch. Move your Sombra to a cell you want to shoot and press Secondary fire for 1s to activate your Bastion. In order to win you must find all part of all ships that belongs to other player and destroy them. Ship that both players have to find: 5x1, 4x2, 3x3, 2x4. Good luck!

Tech info

Code: FA8S2
Recommended title:
‘•Sea battle•’ or ‘•Battleship•’
Mode: Team Deathmatch
Map: Workshop Island
Team set: 1vs1


More info about me and my game mods you can find here.