Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Catalog · How the catalog works

Random project

sea-battle

Sea battle in the console (Lab №8)

View on GitHub

Anyone may press Interesting, signed in or not. It helps others find this project.

Member rating

No ratings yet.

Sign in to rate this project.

README

Sea Battle

Sea Battle - it's a console implementation of a popular game created by three students for a lesson as a laboratory work in Delphi

Getting started

To start playing, you need to post SEABATTLE.exe and player1.txt with player2.txt in one folder. player1.txt and player2.txt must be filled with the location of the ships (M - sea, K - ship). Location example:

pascal
KMMKMMKMMK
MMMMMMMMMM
MKMKMKMMMM
MKMKMKMMMM
MMMMMMMMMM
MKKKMMMMMM
MMMMMMMMMM
MKKKMMMMMM
MMMMMMMMMM
MMMMMKKKKM

After that, you need to run the game itself with the file SEABATTLE.ehe, call a friend and start playing by shooting at the ships (Sample shot: A-2 or B-3 and so on). The player who kills all enemy ships wins.

Developers

In the development of this chic game involved:

In the future, it is planned to make a graphical interface and port the game to all platforms

Download last version