Skip to content

Latest commit

 

History

History
38 lines (36 loc) · 1.4 KB

README.md

File metadata and controls

38 lines (36 loc) · 1.4 KB

Codewars-v3

Welcome to Codewars-v3!
Build the strongest village and capture enemy territory to win!

Installations:

For Linux users:

sudo apt-get install libboost-all-dev #to install boost
sudo apt-get install libsfml-dev      #to install sfml

For Windows and Mac users:

FOr boost, use this for windows and this for mac.This is boost's official site.
Use this for SFML

Instructions to run the code:

Create an account on github and download this repository.
Create a directory "Object" in the CodeWars-v3 folder.
Run the compile.py file as follows (this only needs to be run once):

python compile.py

Add your Python code team_name.py in any of the player files. and run them:

python <team_name>.py > team_number.txt

Finally run the following in separate terminals inside the Object directory:
Note that the game will start only until <number_of_players> clients have started

./main <number_of_players> 6000
./client <player_number0> 127.0.0.1 6000
./client <player_number1> 127.0.0.1 6000
#for example, ./client 0 127.0.0.1 6000

Runs the file in player0