{"id":22707172,"url":"https://github.com/cair/deepaxie","last_synced_at":"2025-03-29T20:44:54.188Z","repository":{"id":82388239,"uuid":"497673940","full_name":"cair/DeepAxie","owner":"cair","description":"Implementation of a simplified Axie Infinity Environment in C++ that is used to train an agent with the reinforcement learning algorithm DQN to play the game.","archived":false,"fork":false,"pushed_at":"2022-05-29T22:17:38.000Z","size":3241,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-02-04T21:45:15.528Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","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/cair.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":"2022-05-29T18:21:16.000Z","updated_at":"2022-06-04T17:22:14.000Z","dependencies_parsed_at":"2023-06-15T11:15:27.840Z","dependency_job_id":null,"html_url":"https://github.com/cair/DeepAxie","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cair%2FDeepAxie","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cair%2FDeepAxie/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cair%2FDeepAxie/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cair%2FDeepAxie/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cair","download_url":"https://codeload.github.com/cair/DeepAxie/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246243551,"owners_count":20746308,"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-12-10T10:11:41.069Z","updated_at":"2025-03-29T20:44:54.166Z","avatar_url":"https://github.com/cair.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DeepAxie v1.0\n\nDeepAxie is a simplified version of the NFT-card-game Axie Infinity.\n\nCheck the report [here](https://github.com/cair/DeepAxie/blob/main/DeepAxieQLearning.pdf) for more details on this project.\n\nThe following picture is how the environment looks when executing in python.\n![](https://github.com/cair/DeepAxie/blob/main/environment.png)\n\n\n## Reinforcement Learning using DQN\n\nTo use the environment in python, check the file [test.py](https://github.com/cair/DeepAxie/blob/main/test.py).\n\n## To compile the library\nCompile lib on Mac (x86)\n```\nclang -O3 -Wall -shared -undefined dynamic_lookup -std=c++17 -fPIC \n$(python3 -m pybind11 --includes) DeepAxie.cpp -o DeepAxie.so -target \nx86_64-apple-darwin-macho\n```\n\nCompile lib on Mac (M1)\n```\nclang -O3 -Wall -shared -undefined dynamic_lookup -std=c++17 -fPIC \n$(python3 -m pybind11 --includes) DeepAxie.cpp -o DeepAxie.so -target \narm64e-apple-darwin-macho\n```\n\nCompile lib on linux:\n```\ng++ -O3 -Wall -shared -std=c++17 -fPIC $(python3 -m pybind11 --includes) \nDeepAxie.cpp -o DeepAxieLinux.so\n```\n\n\nTo compile the library for windows you might want to use `\"g++\"` or \n`\"gcc\"`.\n\nTo run code with library on M1 mac, try the following link:\nhttps://github.com/apple/tensorflow_macos\n\n\nFor compiling library on different operating systems, check \"Target \nTriple\" from this link:\nhttps://clang.llvm.org/docs/CrossCompilation.html\n\n\n## conpile library with pybind11 inside Docker\n\nPython \u0026 C++\n\nThis was made as a workaround when developing on different systems, but \nworks across systems by using Docker!\n\nHow to use:\n```\ncd pybind11-docker\ncd base\ndocker build . -t base\ncd ../app\ndocker build . -t app\ndocker run --rm -it app\n```\n\nwhen inside the container:\n\n```\npython3\nimport test\ntest.add(1, 5)\n```\nor\n```\npython3 hello.py\n```\n\nLicence\nCopyright 2022 Rune Alexander Laursen, Peshang Alo\n\nPermission is hereby granted, free of charge, to any person obtaining a \ncopy of this software and associated documentation files (the \"Software\"), \nto deal in the Software without restriction, including without limitation \nthe rights to use, copy, modify, merge, publish, distribute, sublicense, \nand/or sell copies of the Software, and to permit persons to whom the \nSoftware is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in \nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR \nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, \nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL \nTHE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER \nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING \nFROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER \nDEALINGS IN THE SOFTWARE.\n\nThe implementation is inspired by: \nhttps://medium.com/@keithwhitley/using-c-with-python-3-in-2018-480f3e46c8c \nand https://youtu.be/R9dtxqVdc8M.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcair%2Fdeepaxie","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcair%2Fdeepaxie","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcair%2Fdeepaxie/lists"}