A Multiplayer Chess Game.
-
Start the first shell to run the server:
dotnet restore cd src/MultiplayerChessGame.Server dotnet run
-
Start the second shell to run one client:
cd src/MultiplayerChessGame.Client dotnet run
-
Start the third shell to run the other client:
cd src/MultiplayerChessGame.Client dotnet run
- Change chess piece
q
,w
,e
,r
,t
,y
,a
,s
,d
,f
,g
,h
- Move selection
- arrow keys
- Move chess
z
to select source positionx
to select destination
- Change side
0
- Undo
- backspace
- Redo
+
(the key that has a lower case=
)
-
Client
-
Run the following script:
cd src/MultiplayerChessGame.Client dotnet publish -r win-x64 -p:PublishSingleFile=true --self-contained true cp appsettings.json bin/Debug/netcoreapp3.1/win-x64/publish cp appsettings.local.json bin/Debug/netcoreapp3.1/win-x64/publish
-
The game file will be in folder
src/MultiplayerChessGame.Client/bin/Debug/netcoreapp3.1/win-x64/publish
.
-
-
Server
- Modify
packup.ps1
to match the architecture of your server machine. - Run the script
packup.ps1
; - Copy the zip file and
install.sh
to the server; - Run the script
install.sh
; - The game server will be in folder
opt/chess-game-server
under your home folder.
- Modify
- Add full chess rules
- Apply mutex on
SharedGameState
- Support multi-room