{"id":46149899,"url":"https://github.com/signalbean/tbs","last_synced_at":"2026-05-11T14:05:32.886Z","repository":{"id":325401194,"uuid":"1101033019","full_name":"signalbean/tbs","owner":"signalbean","description":"Text-based Python combat demo with simple OOP and colored health bars.","archived":false,"fork":false,"pushed_at":"2025-12-21T12:50:06.000Z","size":53,"stargazers_count":1,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-23T03:58:19.437Z","etag":null,"topics":["fun","oop","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"wtfpl","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/signalbean.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-11-21T05:13:23.000Z","updated_at":"2025-12-21T12:50:09.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/signalbean/tbs","commit_stats":null,"previous_names":["signalbean/pythoning"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/signalbean/tbs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/signalbean%2Ftbs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/signalbean%2Ftbs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/signalbean%2Ftbs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/signalbean%2Ftbs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/signalbean","download_url":"https://codeload.github.com/signalbean/tbs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/signalbean%2Ftbs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29995912,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-02T01:47:34.672Z","status":"online","status_checked_at":"2026-03-02T02:00:07.342Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["fun","oop","python"],"created_at":"2026-03-02T08:32:36.805Z","updated_at":"2026-05-11T14:05:32.875Z","avatar_url":"https://github.com/signalbean.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n# Terminal Battle Sim\n\nA small Python OOP demo where two characters fight each other in the terminal. Characters, weapons, and a colored health bar each use their own class. The health bar uses ANSI colors and fills with specific symbols as HP moves. Weapons define damage, the hero can change them, and `main.py` runs a loop that clears the screen, shows the bars, applies attacks, and waits for Enter along with weapon switching for the Hero character.\n\n\u003c/div\u003e\n\n## Files\n\n* `main.py`: runs the battle loop\n* `character.py`: character logic plus `Hero` and `Enemy`\n* `weapon.py`: weapon classes and presets\n* `healthbar.py`: draws colored health bars\n\n## Run\n\n```bash\npython main.py\n```\n\nPress Enter for each round. `Ctrl+C` to quit.\n\n\u003cdiv align=\"center\"\u003e\n\n## License\n\nWTFPL\n\n\u003c/div\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsignalbean%2Ftbs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsignalbean%2Ftbs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsignalbean%2Ftbs/lists"}