File | Date | Author | Commit |
---|---|---|---|
Controllers | 2021-10-14 |
![]() |
[8eadcb] Delete 1.e |
Models | 2021-10-14 |
![]() |
[2ba3d9] Delete 1 |
Properties | 2021-10-14 |
![]() |
[8f0fb3] Delete 1 |
Resources | 2021-10-14 |
![]() |
[7d5b3b] Add files via upload |
Viewers | 2021-10-14 |
![]() |
[7e1c6e] Delete 1 |
bin | 2021-10-14 |
![]() |
[96cecb] Delete 1 |
App.config | 2021-10-14 |
![]() |
[b9b121] Add files via upload |
Citycons_ship_icon-icons.com_67927.ico | 2021-10-14 |
![]() |
[b9b121] Add files via upload |
Program.cs | 2021-10-14 |
![]() |
[b9b121] Add files via upload |
SeaBattle.csproj | 2021-10-14 |
![]() |
[b9b121] Add files via upload |
readme.md | 2021-10-14 |
![]() |
[969b24] Add files via upload |
screen.png | 2021-10-14 |
![]() |
[3d6339] Add files via upload |
The Sea Battle game is a classic version of the popular school's years game in multiplayer mode between
two players over TCP protocol. The MVC pattern was used to implement the project. The peculiarity of the game
is that the players take turns regardless of the successful hit. You may remake this game with your own ideas.
It's realy work on Linux OS.
For it Install wine32, winetricks and dotnet48 with winetricks
The game is based on the MVC pattern. There are 3 folders in the project: Models, Views and Controllers.
Controllers launch game windows and intercept user actions in the game. NetController launches the main window
and intercepts button clicks to establish a connection. Tcp Connection is a model for establishing a connection
between a client and a server, as well as creating a player profile. All information is output to the Connection
Viewer view. Game Controller launches a window for the placement of ships and combat, tracking user clicks and
transmitting them to the SeaBattle model, the main game model. It uses the Ships and Battle models. Visual
information about the game is displayed in the BattleViewer view. In the case of a new game, Game Controller
calls the NewGame view.