#Java Battleship Assignment

42 messages · Page 1 of 1 (latest)

rare nebula
#

i wonder if any one is able to help me with an asigment for my college in java. it is the battleship game and i just want a bit help with the ships its my last task.

rare nebula
#

oh thank you

stuck sentinel
#

so could i see code

coarse mistBOT
#

@rare nebula

᲼᲼᲼᲼᲼᲼᲼᲼᲼᲼᲼᲼᲼᲼᲼᲼ Uploaded Some Code

this is the game it is the battleship and i want to have 4 ships 2 small (1block) and 2 big (2 blocks) i am stack on that part also the placment horizontal and vertical sholud be randon

Uploaded these files to a Gist
rare nebula
#

can you see this or do you want to sent that on dm?

stuck sentinel
#

i can see it

#

so what you wanna add ?

rare nebula
#

i want help with the ships

stuck sentinel
#

this is the game it is the battleship and i want to have 4 ships 2 small (1block) and 2 big (2 blocks) i am stack on that part also the placment horizontal and vertical sholud be randon
thiS?

rare nebula
#

ye

stuck sentinel
#

not sure how itwould work but pls try it

coarse mistBOT
stuck sentinel
#

im not best at java but i wanted to try

rare nebula
#

i apreciate that but it show some errors that idk how to fix them

stuck sentinel
#

yea sorry me no help

#

im mostly learning js rn

rare nebula
#

do you change smthng on that part? "static void showBoard()"

stuck sentinel
#

yea i think id di

#

ther are some ppl that understand it more so sorry me cant help much

rare nebula
#

ok thanks for that bro

rare nebula
#

@stuck sentinel hey bro i fix the errors on the code that u send me but you need to use the randomGen that is the only thing that miss can u do it?

stuck sentinel
#

sorry mate

rare nebula
#

i mean it is on this part "static void initShips()" can u help a bit

coarse mistBOT
#

@rare nebula

᲼᲼᲼᲼᲼᲼᲼᲼᲼᲼᲼᲼᲼᲼᲼᲼ Uploaded Some Code
Uploaded these files to a Gist
stuck sentinel
#

tbh im so sleepy rn and i dont know to much of jav a i looked most of it

#

sorry man

rare nebula
#

just add the randongen on the ship placment idk how to do that

#

anyway thx for the help

stuck sentinel
#

:))

south cove
#

😂

south cove
#

What exactly do you need help with

#

@rare nebula

#

Make a list of ships you want to place first

rare nebula
#

i dont know about java man dont blame me like if you can help with the code i would apreciate it

grand skiff
#

Java Battleship Assignment

#

Please use a descriptive title

south cove
rare nebula
#

omg i program for 4hr strate and my brain was like crazy