Share your repls and programming experiences

← Back to all posts
Battleship
poetaetoes (316)

Hello!

This is a project I made for fun :)

Instructions

The computer randomizes the three ships that is three coordinates long.

Just guess coordinates, but you get a limited amount of tries, which is 40 guesses, out of 100

Please leave an upvote if you liked this project

Edit: Credits to @codingjlu for the error fix and scrolling text

Comments
hotnewtop
codingjlu (177)

Delete line 10, and in the next line, write for(int i = 0; [...]. I forked the repl and it worked: https://replit.com/@codingjlu/Battleship

HxKprogram (24)

Theres errors in the code. probably gotta fix that lol.