No Description

Eren Yilmaz 50137da151 Missing code for bot.py 6 years ago
assets 50137da151 Missing code for bot.py 6 years ago
.gitignore 53126025ea Ignore database backup 6 years ago
README.md 31bea9e15f update README 6 years ago
client_controller.py a16a733ff0 Fix #16 6 years ago
connection.py d10dd2f004 print what is sent to server if debugging 6 years ago
create_new_key.py 45bea8aa33 Move model to cleanup 6 years ago
create_new_stock.py c24422fbc4 Optimize imports 6 years ago
db_setup.py 7785f2e702 Also insert ownership if nobody else owns 6 years ago
debug.py a5b408b619 Debug defaults to False 6 years ago
delete_ownable.py c24422fbc4 Optimize imports 6 years ago
delete_user.py c24422fbc4 Optimize imports 6 years ago
drop_old_sessions.py c24422fbc4 Optimize imports 6 years ago
game.py bd9dbd3d31 Make inspector happy 6 years ago
hash_all_users_passwords.py c24422fbc4 Optimize imports 6 years ago
model.py 701dbbb9b4 Rename orders_changed to orders_traded 6 years ago
publish_news_item.py c24422fbc4 Optimize imports 6 years ago
reset_bank.py c24422fbc4 Optimize imports 6 years ago
run_client.py a16a733ff0 Fix #16 6 years ago
run_db_setup.py c24422fbc4 Optimize imports 6 years ago
run_server.py fd7a9b4470 Implement order_history and command old_orders 6 years ago
server_controller.py 3d13109715 Round limit values :P 6 years ago
trading_bot.py 95aff80984 Add an assertion for the number of the trading bots orders 6 years ago
util.py a16a733ff0 Fix #16 6 years ago

README.md

README

How to play

Windows (64 Bit only???)

You can either

Any machine capable of running python 3

You can clone this repository and use python (3.6 recommended) to execute the client. Make sure you set the debug flag in debug.py to False, otherwise you will not connect to the server.

If you know python and want to develop any cool features for you personal client, feel free to fork this repository and create a pull request.

Compilation

Server

The server is intended to be run within a python 3.6 environment on the host specified in connection.py.

On the server you can install the required packages using pip:

pip3 install bottle requests

and start the server using

python3 -OO run_server.py

Client

The client is intended to be compiled with

echo debug = False > debug.py &&\
python -OO -m PyInstaller run_client.py &&\
echo debug = True > debug.py

where pyinstaller can be installed using pip.