Menu

Tree [7e74de] main /
 History

HTTPS access


File Date Author Commit
 Controllers 2021-10-14 Serdyukov Paul Sergeevich Serdyukov Paul Sergeevich [8eadcb] Delete 1.e
 Models 2021-10-14 Serdyukov Paul Sergeevich Serdyukov Paul Sergeevich [2ba3d9] Delete 1
 Properties 2021-10-14 Serdyukov Paul Sergeevich Serdyukov Paul Sergeevich [8f0fb3] Delete 1
 Resources 2021-10-14 Serdyukov Paul Sergeevich Serdyukov Paul Sergeevich [7d5b3b] Add files via upload
 Viewers 2021-10-14 Serdyukov Paul Sergeevich Serdyukov Paul Sergeevich [7e1c6e] Delete 1
 bin 2021-10-14 Serdyukov Paul Sergeevich Serdyukov Paul Sergeevich [96cecb] Delete 1
 App.config 2021-10-14 Serdyukov Paul Sergeevich Serdyukov Paul Sergeevich [b9b121] Add files via upload
 Citycons_ship_icon-icons.com_67927.ico 2021-10-14 Serdyukov Paul Sergeevich Serdyukov Paul Sergeevich [b9b121] Add files via upload
 Program.cs 2021-10-14 Serdyukov Paul Sergeevich Serdyukov Paul Sergeevich [b9b121] Add files via upload
 SeaBattle.csproj 2021-10-14 Serdyukov Paul Sergeevich Serdyukov Paul Sergeevich [b9b121] Add files via upload
 readme.md 2021-10-14 Serdyukov Paul Sergeevich Serdyukov Paul Sergeevich [969b24] Add files via upload
 screen.png 2021-10-14 Serdyukov Paul Sergeevich Serdyukov Paul Sergeevich [3d6339] Add files via upload

Read Me

SeaBattle Muliplayer Portbale by .Net Fraemwork ##


--- SUMMARY ---

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


--- HOW TO PLAY ? ---

  1. Open SeaBattle.exe in ...\SeaBattle\bin\Debug\
  2. Create profile. Set your nickname in special field and change your avatar by clicking on the picture of the
    ship's rudder.
  3. Create server or connect to him.If you chosen creating server, You must have static IPv4 and possibility to
    open ports.
  4. Wait ,when your rival will connect to you.
  5. Position your ships.To do this, click the button below corresponding to your ship. And in your field on the
    left, draw this ship in any orientation by cells. Remember that 1 decked ships -4, 2 decked -3, 3 decked -2, 4
    decked -1. All of them should be indented in 1 cell on each side of each other.When you are done, click on the
    red button on the right under the opponent's field and wait for the start of the fight.
  6. The transmission of the move is strictly alternating. If you hit or hit you, the move is transferred to the
    opponent of the one you hit. As soon as all the ships of one of the parties are completely destroyed, the game
    will end. A button will appear on top next to the avatar, offering the opponent to replay the fight.

--- PROJECT STRUCTURE ---

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.


Watch the video

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.