Skip to content

Text based Battleship game made with C with 4 difficulties, and simple .txt file based profile creation/loading

Notifications You must be signed in to change notification settings

Peronchichino/C_BattleshipGame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Battleship Project: This project is a fully playable Battleship game with 4 difficulties. The difficulties range from easy, to medium, to hard, to ultra, with a 5x5, a 7x7, a 10x10 and 13x13 playing field respectively. The game has a variety of ships and ship sizes depending on the chosen difficulty. The player is able to place their own ships in any way they want without problem and is playing against a pc who does the same. In order to simulate the ship placement of the actual Battleships game that was popularized with its 10x10 playing field, the PC places its ships in any direction and in any proximity to its own ships in order to confuse the player.

Compilation:

  1. "firstscreen.txt" is needed in order to print the startscreen and continue with the progression of the game

Execution:

  1. If all necessary files are in the same folder as the main.c then the program can be started
  2. User inputs expected:
    • For loading profile or play as guest:
      • Y or y
      • N or n
    • For profile loading/creation:
      • C or c
      • G or g
      • any keys for naming or loading of specific profile
    • For ships:
      • Carrier 1x5: c
      • Battleship 1x4: b
      • Submarine 1x3: s
      • Destroyer 1x2: d
    • For coordinates:
      • a,a; b,b; etc..
    • For directions:
      • 1, 2, 3, 4

About

Text based Battleship game made with C with 4 difficulties, and simple .txt file based profile creation/loading

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages