PROJECT PROPOSAL








PROJECT GROUP
Members
Roll no
EMail
Batch
Abhijit Bagri Y2006 abagri@iitk.ac.in B5
Sandeep Singh Y2338 sandeeps@iitk.ac.in B5
Varun Garg Y2411 varung@iitk.ac.in B5
Tutor : Dr.Ajai Jain
T/A: Mohammed Nasir Ahmed  ,  Ravindra Lokhande

Project title: BATTLESHIP

About The Game


Battleship is a historical game which comes down from the days when navy became a deciding factor of many wars. It was very popular with seamen in paticular and the public in general.Over the years the game remains unchanged in form and is played with the same spirit and enthusiasm. In the game each player is given a grid (usually 10 x 10) in which he places five ships.The fleet consists of ships of diffrent sizes.Each players fleet stup is hidden from the others view.The players then calls shots, one at a time or more and gets a respond from his opponent whether it is a hit or a miss. Each player is also given a second grid to keep a track of teh shots he has made. Depending on the responses from his opponent the player has to decide a strategy to finally sink the entire fleet of the opponent .The first to do that wins.

About the project


In this project we will produce a computerised version of the Battleship .The game will include the conventional version and a variation. In the game the user has the choice to play a single player game(vs the computer)or a double player(over the network).The game will be playable in diffrent modes. The game will give each player two grids- one for his fleet and other to track his shots.The player can call shots and will be given the result of a hit or a miss.He will also be informed of the number of ships remaining and hint might also be supplied by program if needed.This hint will purely on basis of the game without any knowledge of the computers fleet.In the two player mode two players can play against each other on diffrent pcs connected over net which will prevent them from watching the others fleet.

Motivation


Computerised version of the Battleship has been created many times in past .what makes this project diffrent are the following additions to the usual versions
  • Multiplayer Option
  • The Computer providing a hint
  • Variations in the conventional Battleship Game


    Sample Input/Output


    When the programme starts it will show a window which will give the player following choices
  • The Mode he wants to play in - single player or double player.

    For Double player mode the user will have to input the location of the second user.The programme will verify the existence of network connection and the address of the second player. In case of any problem it will flag an error message

  • The Game style he wants to play in - Conventional, Rapid or Clash Of Titans

    In the Conventional game the each side gets one turn each and at the end of each turn he is told whether that particular shot was a hit or a miss.If it was a hit then which ship has been hit.

    In the Rapid game it is the same as the conventional except that each player gets number of shots equal to the number of ships remaining.

    In the Clash of Titans each player gets number of shots equal to number of his ships afloat but at the end of each game he is just told the number of hits with no idea as where the hits are or which ships he has hit

    Who Goes First
  • Besides these ,the screen will also give the player the rules ,historical importance and other relevant information.

    After making his choices the user starts on the game.Two 10 x 10 grids will be displayed - one representing computers waters and the other players.The first work is the setting up of his fleet.Key points regarding these are
  • The Length of the ships are fixed .They can be setup only horizontally and vertically.So any attempt by the user of clicking on the wrong grid will flag an error message.
  • This screen will also provide the user the option of having his fleet setup randomly by the computer.

    Once the fleet is set the players start calling shots by clicking on the second grid.Each grid will show a flare or a water pool according as the shot is hit or a miss.A message will indicate which ship has been hit.In the Clash of Titans mode it will show the number of hits in all five squares.The user might be given additional symbols for his own markings.

  • Messages will also be flagged if the user clicks on a slot already hit upon.If the User clicks thrice then it will be assumed he wants to waste his shot.

    Sample Screen






    At the end when all the ships of the user has been sunk the grids of both the players will be displayed.It will also display the pecentage accuracy of individual players and other statistics. Finally it will prompt the user to play again or quit.

    Related Links

    You can play Battleship on the following sites.The grid pictures above have also been downloaded to show the sample output and will not form a part of the final project

  • Armada Battleship
  • Battleship

    Key points


  • The entire game requires graphic interface.
  • The program will need to keep a count of the hits and misses and decide which ships have sunk and also decide on the response to a shot call.
  • The single player mode will require grading of the entire grid according to shot responses(hit/miss).
  • The double player mode will require net connectivity which will connect the two pcs.





    BACK





    || IITK Home || Yahoo Mail || IITK mail || Google search || Esc101 Home ||