Code Wars 2014 Windwardopolis 2 – Server Instructions
You can run the server for the school practice runs and final on a laptop. If you can, connect it to a projector so everyone can see the game play out.
- The server program is a Windows program using .NET 4.0. Any updated system with Windows 7 or 8 should be fine. Download the server program and run windwardopolis.exe (video demonstration). (The download includes the files needed to run the program in Visual Studio. We recommend against this. Just run windwardopolis.exe in the root of the folder you unzipped to.)
- If there are any connection issues, turn off the firewall on your system.
- Make sure the files windwardopolis.exe.config and log4net.dll are in the same directory as the program.
- Make sure you are set to use all of the maps (maps setting in windwardopolis.exe.config).
- Run windwardopolis.exe.
- Tell students to run their client on their computer, connecting to your system’s IP address.
- You can find your computer’s IP address by opening a DOS command box and typing in “ipconfig /all” In the output look for the line:IPv4 Address. . . . . . . . . . . : 192.168.101.56(Preferred)The 192.168.101.56 is the IP address of your system.
- The clients as originally written will do this if the first parameter on the command line for them is the IP address. For example, they run “PlayerCSharpAI.exe 192.168.101.56” and their AI program will start and connect to the server on the system with an IP address of 192.168.101.563.
- As A.I.s connect, they will show up in the player status window.
- Once all are connected, click the Lock button in the menu (this will happen automatically if 10 players connect).
- Click ‘Play’ and the game is running.
- You can stop and then start another game with the connected players.
- To drop all existing players (and allow new ones in), click the ‘Join’ button.