{"id":21850609,"url":"https://github.com/freakwill/tinygame","last_synced_at":"2025-07-03T00:06:21.684Z","repository":{"id":130366744,"uuid":"117351764","full_name":"Freakwill/tinygame","owner":"Freakwill","description":"create a tiny game.","archived":false,"fork":false,"pushed_at":"2018-02-23T11:50:21.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-21T17:55:48.612Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/Freakwill.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":"2018-01-13T14:51:10.000Z","updated_at":"2018-01-13T14:51:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"2178971c-0593-440a-bf10-001349ce8138","html_url":"https://github.com/Freakwill/tinygame","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Freakwill/tinygame","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Freakwill%2Ftinygame","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Freakwill%2Ftinygame/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Freakwill%2Ftinygame/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Freakwill%2Ftinygame/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Freakwill","download_url":"https://codeload.github.com/Freakwill/tinygame/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Freakwill%2Ftinygame/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263234942,"owners_count":23434918,"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-11-28T00:18:29.856Z","updated_at":"2025-07-03T00:06:21.566Z","avatar_url":"https://github.com/Freakwill.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tinygame\ncreate a tiny game.\n\n## authors\nHaojie Ma and me\n\n## new features\n\n1. use apscheduler\n2. more extensible\n\n## Main classes\n\n1. Hero \u003c Unit: name, life, damage, shield\n2. Army \u003c Unit: name, list of heros\n\n## example\n\n```python\n# create an army\narmy1 = Army.fromStr('袁军', '袁绍 500 10 100;颜良 200 30 30;文丑 200 30 30')\narmy2 = Army.fromStr('曹军', '曹操 800 30 200;荀彧 100 20 600;许褚 100 20 10')\narmy2 += Hero.fromStr('关羽 200 20 20')  # a new hero joins into army2\n\n# create a game (the romantic history of three kingdoms)\nthreeKingdoms = Game('官渡之战：东汉末年三大战役之一', army1, army2)\nthreeKingdoms.init()\nthreeKingdoms.start()\n\narmy1 = Army.fromStr('大日本帝国太平洋联合舰队', '山本五十六 200 20 20; 南云忠一 50 10 10; 山口多闻 20 20 10')\narmy2 = Army.fromStr('美利坚太平洋特混舰队', '尼米兹 400 20 20; 弗莱彻 100 10 10; 罗斯福 30 10 10')\npacificWar = Game('第二次世界大战太平洋海战 --- 人类历史上规模最大的海战', army1, army2)\npacificWar.weapons = ('鱼雷', '舰炮', '深水炸弹', '舰载机', '轰炸机', '导弹')\npacificWar.init()\npacificWar.start()\n```\n\n## motivation\n1. culture output\n2. entertainment and enjoyment\n3. learning the history\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffreakwill%2Ftinygame","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffreakwill%2Ftinygame","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffreakwill%2Ftinygame/lists"}