This game server code provides all the necessary logic and control for the RoboRuckus robot game. Robots and players connect to this server to play the game, which coordinates all the game states, robot movements, and player choices.
There are two main ways to deploy the game server. The first, and preferred, is via Docker as detailed below. The second is to create an all-in-one solution using the instructions found on our website.
- First, set up Docker Engine and Compose on the computer you want to host the sever following these instructions.
- Create or copy the docker-compose.yml file from this repository on the server computer.
- Run the command
docker compose up
from the same directory as the compose file. - That's it!
If you want to explore and edit the code for the RoboRuckus game server, that's great! While either Visual Studio or Visual Studio Code are recommended for this, these instructions will be specific to using the cross-platform Visual Studio Code (VS Code). Here are steps necessary to get started:
- Install Visual Studio Code.
- Install the C# Dev Kit Extension.
- Optionally: If you wish to develop the Docker container install Docker and the VS Code extension.
- Download or clone this GitHub repository.
- In VS Code, open the repository folder.
While the details of .Net development are beyond the scope of this guide, you can find basic information on debugging in VS Code here. If you wish to publish a native version of the server program for a specific platform, like Linux on ARM for the Raspberry Pi, you can use, and modify, this command from the VS Code terminal:
dotnet publish RoboRuckus.sln -r linux-arm -o PiReady\RoboRuckus -c Release --self-contained -p:PublishSingleFile=true
Details on how to manually set the game up on a Linux or Raspberry Pi server can be found here.