mikecutalo / BattleshipOnline

Battleship game but now you will be able to play over the net.
1 stars 0 forks source link

How do I run the project? #1

Open almeidamarcell opened 11 years ago

almeidamarcell commented 11 years ago

I couldn't figure out how to run the project since the only class with main is ClientServer.java. Could you help me out?

mikecutalo commented 11 years ago

Yes sure!

Alright well this is a Java Applet so there is no need for a main! If you look in my bin folder, there are many HTML files. All you need to do is open GameStart.HTML and click on Human Vs Borg (this is vs the computer of course). If you would like to check it out see ( http://bill.kutztown.edu/~mcuta697/csc421/StarTrek/GameStart.html )

Also the ClientServer.java is a small program that will run independently, this will allow two or more clients to connect to the game. You will need to modify code in the PVP.Java inorder to change the credentials for the server you wish to connect to if you want to set up an online game. But remember this is not necessary you can simply play vs the computer if you wish.

Let me know if you have any other questions.

-Mike