Re:Thirteen Years of Bad Game Code
by kuerbel on Friday March 31, 2017 @05:00AM
(#14002120)
As a 2nd semester cs student, that was pretty helpful. I have to design a battleship game in Java and have no idea what I'm doing actually. I'm just staring at the cursor and don't even know where to start, and it's comforting to know that other people struggled as well
[ Parent
| on HN ]
Battleships? Like that?
http://static.kidspot.com.au/cm_assets/32032/battleship-game...
I.e. turn-based and probably doable with an UI toolkit (as opposed to drawing stuff directly with DirectX / OpenGL)?
Anyway, shoot me an e-mail (address in my profile), I'll give you a few quick hints to get you started.
I remember having to do something similar in college. I think the first time we had to do it in C, the second time we had to do it in C++ and make it OOPy. No GUI was required but with such a simple game it was possible (I think some students did it for extra credit?) to strap a GUI on top once the text based version was done. That might give you an idea of how to proceed. I was fortunate to have been programming before college but I was always amazed at how lots of those who made it to their junior year and beyond were basically as productive as me for school assignments despite only really starting to program in college. I still remember struggling with the syntax of the for() loop in PHP. My struggles are different now (and mostly related to modifying code that already exists rather than creating fresh new code) but struggle is a good sign that you're learning something. Just be careful it doesn't turn into never-ending masochism!