Skip to content

wncc/CodeWars-v3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published