0
Answer

c# windows application form (battleship game)

jay santaos

jay santaos

11y
3.3k
1
hey guys can someone help me please? im new to c# and im doing visual c# windows application form.

i wanna make 5 buttons and generate 2 random colors (red and blue) for them. Its a battleship game.

i wanna say if the 2 red is found messagebox.show ("You've Won")
and if 3 blue were found messagebox.show("You've Lost")

i wanna make a string because i would need 100 buttons for this battle ship but i dunno how. can someone write me a short code to give me ideas on how to make array and put 2 random colors for the button please.


soon i would need also an AI battleship game. if anyone has any ideas about this please reply back thank you!