Skip to content

cworld1/pingpong-calculation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pingpong Calculation

A calculation of pingpong play sport using go and rust.

Apis

  • GET /ping: Check the server status.

    • Parameters: None
    • Example: GET /ping
    • Response: message: "pong"
  • GET /best_action: Get the probobility of next action result calculation of the given action.

    • Parameters: action (string)
    • Example: GET /best_action?action=SB_2
    • Response: message: { "best_action": "E/N_1", "best_score": 0.25, "action_scores": [...] }

Local Development

Environment requirements:

Clone the repository:

git clone https://github.com/cworld1/pingpong-calculation.git

Make the project:

cd pingpong-calculation
make run-dynamic
# Or run: make run-static

Contributions

To spend more time coding and less time fiddling with whitespace, this project uses code conventions and styles to encourage consistency. Code with a consistent style is easier (and less error-prone!) to review, maintain, and understand.

Thanks

License

This project is licensed under the GPL 3.0 License.

About

A calculation of pingpong play sport using go and rust

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors