|
Historical overview
1999 - An idea was born
Back in 1999 I started the Battleships project as a way to master the JavaScript programming language. The first release of the game was a pure HTML and JavaScript game application. The creation of the game graphics, code and testing took place over several months due to my real-life job obligations as a webdesigner / webdeveloper.
2000 - Advanced game code
One Year later I started to upgrade the source code to a more "intelligent" computer behavior. After several months of concept, research and testing, the first mayor upgrade of the JavaScript game was born and went online. By then, the site was visited quit frequently and I received many encouraging e-mail from fellow gamers worldwide.
By then I was experimenting with Macromedia's Flash 3. The 3rd version of Flash was very impressive, but it lacked the possibility of writing complex code.
When Flash 4 was released, I began to experiment with some simple game implementations. Still, writing complex code was a real pain in the a...
2001 - And then there was Flash 5
At last, it was possible to write code in an external file and "embed" the code into the Flash application. Another great improvement was the resemblance of ActionScript (Flash programming language) to JavaScript (ECMA script). Since I already spent a lot of time in learning JavaScript, the step toward Flash 5 was a logical one for me. In the year 2001 the time was right to port the old JavaScript game to Flash 5.
The "artificial Intelligence" of the new game had to be as "human-like" as possible to make a challenging game where both human and computer generated player had a fair chance of winning the game.
Most Battleships look-alike games use a basic random firing technique. I found that this kind of game coding wouldn't result in a challenging game. Although battleships is based on a great deal of "luck", there are still several "intelligent" ways of seeking out and destroying enemy ships. In version 2.0 to 2.3 I tried to create several subroutines which did cope with these more advance targeting techniques.
By then, the game engine was able to fire in a calculated pattern based on the searched ship size, alter the pattern when a particular ship (size) was sunk and remember previously hit ships that weren't sunk in a previous turn (search and destroy).
Using the game results which were sent to me by players, I was able to calculate the "efficiency" of the computer generated enemy. After some 4000 game results, the average winning percentages was; human player: 34,1% versus computer player: 33,5%. It seemed that the game engine did it's job in generating a human-like opponent.
2002 - 'Trying' to go where no one has gone before
At the moment I'm redesigning the graphics and graphic user interface. Preliminary tests have been created with:
- animated sinking ships (which disappear in transparent water);
- new 3D ship designs;
- display of damaged ship parts;
Although far from ready, these new ideas, designs and upgraded game code will create a far more advanced game and game experience in the near future.
New developments will be added to this page to keep you informed regarding the progress of the game.
Best regards,
Franklin Winters
|