{"id":18093846,"url":"https://github.com/ktimam/SoccerTrainer","last_synced_at":"2025-03-29T06:31:18.351Z","repository":{"id":258423918,"uuid":"796927021","full_name":"ktimam/SoccerTrainer","owner":"ktimam","description":null,"archived":false,"fork":false,"pushed_at":"2025-01-10T19:13:17.000Z","size":51734,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-10T20:24:17.465Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Assembly","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ktimam.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-06T22:02:30.000Z","updated_at":"2025-01-10T19:13:20.000Z","dependencies_parsed_at":"2024-10-31T19:13:45.733Z","dependency_job_id":null,"html_url":"https://github.com/ktimam/SoccerTrainer","commit_stats":null,"previous_names":["ktimam/soccertrainer"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ktimam%2FSoccerTrainer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ktimam%2FSoccerTrainer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ktimam%2FSoccerTrainer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ktimam%2FSoccerTrainer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ktimam","download_url":"https://codeload.github.com/ktimam/SoccerTrainer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246150270,"owners_count":20731414,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-31T19:01:39.930Z","updated_at":"2025-03-29T06:31:13.334Z","avatar_url":"https://github.com/ktimam.png","language":"Assembly","funding_links":[],"categories":["Decentralized AI"],"sub_categories":["TON"],"readme":"# ICSoccerWorld Server\nBackend for a soccer simulation built for ICP using ICPP. Based on code sample from book \"AI Game Programming by Example\".\nDemo is built in C++ and uses Jolt physics Engine. Flashlight Multilayer Perceptron Deep Learning used for training Soccer Agents on ICP blockchain.\n\n### Prerequisites\ndfx\nicpp\n\n## Installation\nICP Build Steps (Workaround to ICP exports Limit):\n\n```bash\n1. clear \u0026\u0026 icpp build-wasm --config=icpp_libraries.toml \u0026\u0026 wasm2wat build/SimSoccerServer.wasm --output=build/SimSoccerServer.wasm.wat\n\n2. edit .wat file with editor to remove all lines having export except:\n  (export \"canister_update start_match\" (func 2489))\n  (export \"canister_update play_match\" (func 352))\n  (export \"canister_update delete_file\" (func 1370))\n  (export \"canister_update train\" (func 117))\n  (export \"canister_query file_download_chunk\" (func 148))\n  (export \"canister_query health\" (func 1753))\n  (export \"canister_update file_upload_chunk\" (func 194))  \n\n3. wat2wasm build/SimSoccerServer.wasm.wat --output=build/SimSoccerServer_noexports.wasm \u0026\u0026 ../binaryen/bin/wasm-opt build/SimSoccerServer_noexports.wasm -o build/SimSoccerServer.wasm -Oz --enable-bulk-memory \u0026\u0026 dfx deploy\n\n```\n\n## Usage\n\n### Local\nUsage examples for local query:\n\nFrontend:\nhttps://gb4ri-5yaaa-aaaal-ac3hq-cai.raw.icp0.io/\n\n```bash\n$ dfx canister --network local call SimSoccerServer start\n$ dfx canister --network local call SimSoccerServer play_match '(1674211940: nat64, 60: nat64)'\n```\n\nUsage examples for uploading training data and training:\n```bash\n$ dfx canister --network local call SimSoccerServer delete_file '(\"Models/latest_model\": text)'\n$ python -m scripts.upload Models/observations.txt --network local --canister SimSoccerServer\n$ python -m scripts.upload Models/actions.txt --network local --canister SimSoccerServer\n$ dfx canister --network local call SimSoccerServer train '(\"Models/latest_model\": text, \"Models/observations.txt\": text, \"Models/actions.txt\": text, 20: nat64, 0.009: float32)'\n```\n\n## License\nThis project is licensed under the MIT license.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fktimam%2FSoccerTrainer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fktimam%2FSoccerTrainer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fktimam%2FSoccerTrainer/lists"}