Battleships Game in C (GWin)

  • Posted:
  • Proposals: 0
  • Remote
  • #940
  • Archived
  • 0


Experience Level: Expert

Write a simple game of Battleships. This is where two players have a fleet of ships hidden within an area of ocean. The ocean is specified in terms of a grid of positions, with the battleships oriented horizontally or vertically within the grid. (Due to lack of working radar, you have to launch shells into the area fairly randomly, then use your sonar to detect the splashes (failure) or impacts (success). (See the Wikipedia reference for an explanation of the rules.)

In order to allow this game to be played between 2 people on separate computers, a socket class that will enable the communication. This socket class has been written as open source.

The program is to be written in C with the graphical elements generated via Gwin. This will enable us to port it to Linux fairly easily in future if we wish.

I want the game to allow a wide degree of customisation %u2013 deciding how many ships of what class are used, how big the area is, what level of hints/help is given etc. Moreover we want the scoring information saved, so that each player can show their 'status' to others who may then get a handicap. This is similar to the rules when playing online games such as Go, where players have a defined rank, and one can play against another of a lower rank by allowing them to have more pieces on the board to start. As a potential for turning this into an educational game (and selling it to schools) I want to have the possibility that it asks simple questions (arithmetic or spelling) that they have to answer correctly before it will fire. Of course any extension for education of this sort would also have to provide an interface for teachers to check results, and set levels for the students.

New Proposal

Create an account now and send a proposal now to get this project.

Sign up

Clarification Board Ask a Question

    There are no clarification messages.