a python and vue gamesystem project for drawguess(你画我猜) and gobang(五子棋)
- install redis
- install mysql
- install python module
- tornado
- torndb (dependency MySQLdb)
- redis
- install npm
cd game_vue
and usenpm run dev
to start vue project- create mysql database and named partyplay, next import sql.sql to partyplay;
cd game_server
andvim common.py
to change password for Mysql connect:
conn = torndb.Connection(host='127.0.0.1',
database='partyplay',
user='root',
password='******', ) # need change to your password
- start redis server and
cd game_server
and usepython server
to start server