The Journey of a New Computer Programmer

A longtime computer-literate who wants to learn "real" programming language(s).

Monday, April 02, 2007

After "Roman"...

After the Roman Numeral program was completed, I was still in "high gear" in terms of actually writing code (as opposed to, say, the book work), and a few things were in my Senior Project sights:

My final game program (for my final piece, I wanted to do a game program and a "practical" program.)
A few practice programs

I've always loved computer games (probably too much), so I figured a very logical extension would be to create one with my new set of skills.

The concept for the Naval Duels game, which I believe I described somewhat in previous blog posts, is something I had before, but I had "run" the game manually, and one day, it kinda came to me out of the blue to write the Naval Duels game in Python. That something else kinda came to me out of the blue, this time when I was playing the Planetarion online game - write a Python program that runs Planetarion battle calculations.

Planetarion's combat engine works with clearly defined types of ships, albeit a lot of them. (55 types, with the current round) Each ship has a series of statistics, that when run through various formulae, produce the result of the battle. The results of the battle are as follows: out of the ships of each type in each player's fleet, how many are killed, stunned and/or "stolen".
Many programmers out there have written "battle calcs" that provide this functionality.

Likewise, the ships of Naval Duels will have certain statistics, and there will be certian battle formulas. A function or functions that take the amount of inputted ships and print the amount of surviving ships will be necessary for the function of the Naval Duels program. There will be fewer ship types, and slightly different stats, but still, getting the basic process down will be important for both programs.

0 Comments:

Post a Comment

<< Home