RobotGame – my first (serious) program :)

Friend of mine has just shown me her first game, written after a week of learning programming, so I have decided to find my first game, written after about 6 weeks of learning programming. I have spent over a week on it (about 10 hours daily), it has over 1300 lines of code and the only used classes are javax.swing.JOptionPane, java.util.Random and java.util.Scanner.

It’s a simple turn-based tactics game (terminal based) for 1-10 players. There are only few stats such as speed (determines number of action points), attack (damage dealt) and endurance (health points, max damage taken). It is really nothing special. It has a lost of mistakes, I didn’t know any conventions at this point so even a style is not as it should be in few places. Also, there is a lot of redundant code and it was written without any design. I believe that I could recreate it in below 1000 lines within one evening. But, as a first program above 200 lines, I am quite satisfied with what I have done. And what is the most important – I have learnt really a lot :)

Code. Jar.

This slideshow requires JavaScript.

About Jaroslaw Pawlak

I have done MSci in Computer Science at King’s College London and currently work as Software Engineer specialising in Java. I spend most of my time in front of computer improving my programming (and other) skills or just relaxing with a good game. I also train some sports but at the moment I am not a member of any club. I love cycling and volleyball, but I have also played a lot of football, tennis and trained martial arts.

Posted on June 29, 2011, in My Projects. Bookmark the permalink. Leave a comment.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: