Skip to content

Latest commit

 

History

History
36 lines (34 loc) · 1.24 KB

README.md

File metadata and controls

36 lines (34 loc) · 1.24 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 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:

./main 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