A calculation of pingpong play sport using go and rust.
-
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": [...] }
- Parameters:
Environment requirements:
Clone the repository:
git clone https://github.com/cworld1/pingpong-calculation.gitMake the project:
cd pingpong-calculation
make run-dynamic
# Or run: make run-staticTo 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.
This project is licensed under the GPL 3.0 License.