Share your repls and programming experiences

← Back to all posts
Battleship
[deleted]

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

Voters
GhostKingNico
Steve12341825
Comments
hotnewtop
[deleted]

eh

codingjlu

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

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