The game Battleships was made as a final project at the course of Functional Programming in December of 2018. Written in Haskell.
The code can be compiled with following command
stack ghc -- main.hs -o Battleships
You can run the code interactively
Battleships
(x,y) where x is a column and y is a row.
~ — empty cell
# — undamaged ship cell
o — damaged ship cell
x — destroyed ship cell
· — miss
Volkov Nikolay — game initialization, ships placement, validation of coordinates
Kadyrov Amir — bot's actions
Serazetdiov Damir — game logic, field displaying, processing of turns, shots