George Smith Current Build: BattleShip v2.0 USES PORT: 10009 FOR NETWORK GAMES BattleShip v2.0 ------------------------------- Added: Graphics ( Ships, Grid Spots, Rollover Icon, sunk ships) Added: Animation ( Sunk Animation, Win Animation, Lose animation ) Added: Sounds ( Sunk Sound, Shoot Sound, Miss Sound, Win Sound, Lose Sound ) Added: Network Play ( Be able to play 1 on 1 with another player ) The game plays the same as in version 1.0, its just now theres graphical items. You'll find now that ships are represented by graphics ships now while on the board and when they are sunk. You will also notice distinct sounds for when a unique event takes place during the gameplay. When playing against the computer. The Cheats are stored in the JAVA console. To play a network game: To play a network game, put up the java applet. It will ask you if you want to play the computer, Host a game, or Join a Game. You want to click host a game. Let it sit and idle as it will wait for a client to join. You will notice on the bottom right hand corner of your screen, you will see Opponent and You status. You will notice when you first boot up the server, the opponent status says "Not Connected".(*** PLEASE MAKE SURE YOU HAVE PORT 10009 OPEN ***).That means they haven't tried to connect yet. When they do connect, the Not Connected will change to Connected when they have successfully connected. Then will change to READY once they have placed all their ships and ready to go. To play as a client, boot up the java client, now when the pop up comes up, you want to choose Join Game. Then when the server name prompt comes up, put in the IP Address of the server that is hosting the game. If the grids and ships come up, that means you have successfully connected. If the applet never loads, that means you did not connect successfully. BattleShip v1.0 ------------------------------ The game is played by attacking your other opponent ships on a 10 x 10 grid. The goal to the game is to sink your other opponents ships before they sink yours. Instructions on how to use: When the game loads, you will be prompted with two grids. The one on the left is your grid. On the bottom of the game you will see 5 buttons. Those buttons represent your ships that you will place on your grid. In order to place a ship on your grid, you need to chose which direction that you want the ship to go. Either vertical or horizontal. Then choose the ship button by clicking on it. That engages the ship to be placed. Now click anywhere on your grid to place the ship. Please note you will get a prompt back if you try to place a ship that extends off the grid or across another ship. If that happens, just click the on another spot that will work.Once you have successfully placed all your ships on your grid, your grid will be disabled. Now its time for you to click on the opponents grid. This is when you will shoot at your opponents ships. You will know if you hit a ship by the way the grid spot chnages color. If the grid spot turns red, then its a hit and you hit the opponents ship. If it turns blue, then its a miss. You will be informed when you sunk a ship. You play the game untill you have either sunk your opposing teams ships or the opponent has sunken your ships. THere will be a prompt to play a rematch at the end of the game, don't worry. The AI Explaination: How the Artifical Intelligence works in this game is that when the computer registers a hit. It creates a hit object that gets information about the surrounding spaces. Then it records the hit, sets the count to the next level and sets the attack mode to true. The next time around, it checks the left spot. If it returns a miss, it changes the count level to the next one, and maintains the AI attack mode. The next time it checks the right side of the orignal hit spot, if its a hit. It sets the direction to right and to the horizontal attack mode. If it would have returned a miss, then it would ahve changed the level to look below the orignal spot. It goes through, then if it records a hit there, then it changes the direction to down and a vertical attack. If it returns a miss, it just flips the attack to go upward of the orignal hit spot. Basically what the AI does is that it figures out which way the ship is facing. Then it uses that to finish off the ship. The attack mode does not turn off untill the attack ships returns a sunken ship. The AI is still alittle bit shacky but works real well overall.