• Post Reply Bookmark Topic Watch Topic
  • New Topic

Battleship game  RSS feed

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am new to java, and will be taking object oriented course coming semester. I am trying to learn by my own, so I thought about practicing some old assignments of my friends. I found that battleship game is the most common topic so far. But I am unable to even start it. Can anyone help me in finishing the task. I just need some clarification and something like pseudo code to finsih it up. Thanks in advance.
 
Rancher
Posts: 3742
16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have a read through StopCoding.
 
nav bhullar
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for reply, but still I didn't find any solution to it. @joanne
 
Joanne Neal
Rancher
Posts: 3742
16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That wasn't a link to a solution - it was a link to how you should go about coming up with a solution.
So, do you know how to play battleships ? If so, you should be able to write down, in very broad terms to start with, what your program should do.
 
Ranch Hand
Posts: 116
2
Eclipse IDE Java PHP
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch!
nav bhullar wrote:I am new to java, and will be taking object oriented course coming semester.

How new are you? Have you installed the JDK, compiled and run Java code? Have you programmed in other languages before?

I agree with Joanne, the StopCoding article is a good one to start with. You must fully understand the problem and some potential solutions before writing any code.

If you are completely new to Java you should learn some of the basics first. Visit the How to create your first Java program page to learn how to set up the JDK and run your first program. After that you should have a look at some of the Oracle Java tutorials. Start with Getting Started tutorial and then move on to the Learning the Java Language tutorial.

You can start looking at some Java books also. "Head First Java" is pretty popular and in my opinion does a good job covering the basics.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!