Skip to content

[MVC] Game made for the object-oriented programming course (very first course)

Notifications You must be signed in to change notification settings

Reem200/Battleship-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Battleship game

This game, was a school assignment of a group of two.

The UI was built using Java Swing.

We implemented two types of game boards, with different ships and places. You start by choosing the gameboard.

Then you get the game screen: Game screen

Here is how e.g. gameboard (1) is implemented:

• u-båt, 1 square = A
• torpedbåt, 2 squares = B
• jagare, 3 squares = C
• kryssare, 4 squares = D
• slagskepp, 5 squares = E
    0 1 2 3 4 5 6 7 8 9 10
0   * * * * * E E E E E *
1   * * C C C * * * * * *
2   * * * * * * * * * * *
3   * * * * * * * * * * *
4   * * * D * * * * * * *
5   * * * D * * * * * * *
6   * * * D * * B * * * *
7   * * * D * * B * * * *
9   A * * * * * * * * * *
    0 1 2 3 4 5 6 7 8 9 10

At the end of each game the player sees a highscore list, and may choose to play again!

About

[MVC] Game made for the object-oriented programming course (very first course)

Topics

Resources

Stars

Watchers

Forks

Languages