Skip to content

square-melon/thegame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

2017/2018 清大資工新生營 - Python 程式設計

thegame

CircleCI License: MIT

Client

Installation

First, make sure you have python (3.6 or later required)

Then install with pip:

python3 -m pip install --upgrade git+https://github.com/afg984/thegame.git#subdirectory=client/python

You may want to use the --user flag.

For windows, replace python3 with py or whatever refers to the correct python.

Interactive Client

python3 -m thegame.gui [SERVER_ADDRESS]

Where [SERVER_ADDRESS] is the host:port of the server, which defaults to localhost:50051

Writing your own client

Use client/python/example.py as a template to start with

To start the client:

python3 example.py [SERVER_ADDRESS]

The API documentation is at: https://afq984.github.io/thegame/

Server

  1. Install go https://golang.org/

  2. Install the server

    go get github.com/afg984/thegame/server/go/thegame
    
  3. Run the server

    $GOPATH/bin/thegame [-listen [host]:port] [-tps N]
    

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages