Skip to content

rahimcc/Sea_battle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 

Repository files navigation

Sea_battle

Software Engineering Course Project

Objective

Objective of this project is to create Naval Battleship game with different versions using software development technique Extreme Programming. Project constains two versions.First version is played using console, another version is Graphical User Interface Application.

N.Battle.V1

Screenshot from 2019-04-30 03-07-58

It is a single player game against Computer. Game start with user placing his ships ,

Screenshot from 2019-04-30 05-22-32

Program ask user to place his ships in a format: [Column] [Row] [Orientation]

Where column is a leter on the top of the map, Row is a number that is on the left of the map. Given column , row is initial point to indicate where to begin placing ships, since size of ship is given by default by program, Orientation is a character given by user to indicate in which direction ship should be placed. 'V' for vertically down , 'H' for horizontally right.

Screenshot from 2019-04-30 05-22-46

After placing all ships. Program places Computer's ships random. Then, ask user to shoot a position.

Screenshot from 2019-04-30 05-42-44

Program accepts position in format: [column] [row]

If shooting position is a miss position changes its state to '-', if it is a hit it becames '/', it becomes 'X' after destroying ship completely. Game ends, if ships of either one of maps is destroyed completely.

UML diagram _Blank UML -  Blank UML (1)

N.Battle.V2

Graphical User Interface application using JavaFX.

Screenshot from 2019-04-30 05-58-25

Single Player Graphical User Interface Battleship game. Player's map is on the right , Computer's map is on the left.

Screenshot from 2019-04-30 08-00-48

Game starts with placing ship on User's map. Size of ships is ordered 5 to 2. Right Click to cell places ship vertically starting from that point. Left click places the ship horizontally. After placing ships ,program organizes computer's map randomly.

Screenshot from 2019-04-30 08-25-41

Computer and Player take turns to hit the ships. Cell becomes red when it is a hit, becomes black when it is miss. Game ends when ships of either map destroyed completely

UML diagram

_Blank UML - Page 2 (1)

Development

This project was developed by Rahim Sharifov, Sara Shamilova , Sabina Hadjimuradova. Only one name can appear in commits, because we used mainly one computer.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages