Skip to content

thrwKappu/WerewolfServer

 
 

Repository files navigation

Werewolf Server

Werewolf game server, working with Werewolf API https://github.com/cpe200-161/WerewolfAPI . You can test with with the simple Werewolf Client https://github.com/cpe200-161/WerewolfClient or any REST api tester, such as Postman (https://www.getpostman.com/ , see test/ folder for Postman test configuration)

Required software

  1. .NET Core 2.0 (2.1 might be fine, untested)
  2. Visual Studio Code (optional)

Installation (withtout Visual Studio Code on Windows)

  1. Fork the code, then clone to your disk

  2. Open an elevated Powershell then change directory to the cloned folder

    (Or run with normal powershell with namespace reservation to your config)

  3. Run dotnet build to build the project

  4. If no error, run dotnet run to run the server.

Installation (without Visual Studio Code on Mac/Linux)

  1. Fork the code, then clone to your disk
  2. Open a terminal then go to the cloned folder
  3. Run dotnet build to build the project
  4. If no error, run dotnet run to run the server.

Installation (With Visual Studio Code on Windows/Mac/Linux)

  1. Fork the code, then clone to your disk
  2. Open the folder in Visual Studio Code
  3. Run the project from the menu (Debug->Start Debugging) or from F5 shortcut.

Note

  1. Now, it is configured to use sqlite database ( see Configuration file ) , you can connect it to local MySQL/MariaDB server for performance, but it's not necessary for testing.
  2. You can set the number of users in a game in here, but make sure it's either 2, 14, 15 or 16. 2 is the best for testing. 3.You should be able to connect to it in the same computer with URL http://localhost:2343/werewolf/ .

Please make sure you fork the git repo first, don't try to push to my repo!

About

DotNetWebServer with Werewolf Plugin

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 99.9%
  • Other 0.1%