{"id":50562995,"url":"https://github.com/fitzy1321/pokebattle","last_synced_at":"2026-06-04T12:30:26.960Z","repository":{"id":353266151,"uuid":"1218674564","full_name":"fitzy1321/pokebattle","owner":"fitzy1321","description":"C Project, Pokémon Battle System terminal simulator","archived":false,"fork":false,"pushed_at":"2026-05-30T04:08:45.000Z","size":411,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-30T05:06:39.099Z","etag":null,"topics":["c","marimo","marimo-notebook","python","python3","sqlite","sqlite3"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fitzy1321.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"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":"2026-04-23T05:29:14.000Z","updated_at":"2026-05-30T04:08:48.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/fitzy1321/pokebattle","commit_stats":null,"previous_names":["fitzy1321/pokebatlsys","fitzy1321/pokebattle"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fitzy1321/pokebattle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fitzy1321%2Fpokebattle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fitzy1321%2Fpokebattle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fitzy1321%2Fpokebattle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fitzy1321%2Fpokebattle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fitzy1321","download_url":"https://codeload.github.com/fitzy1321/pokebattle/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fitzy1321%2Fpokebattle/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33905358,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-04T02:00:06.755Z","response_time":64,"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":["c","marimo","marimo-notebook","python","python3","sqlite","sqlite3"],"created_at":"2026-06-04T12:30:26.194Z","updated_at":"2026-06-04T12:30:26.949Z","avatar_url":"https://github.com/fitzy1321.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pokémon Battle System\n\nI thought I'd build a silly project.\n\nI want to replicate a turn based monster fighting system, the back and forth, type based advantage, status effects, etc.\n\nI'll probably go with gen 1 - 3, since that's what I played, and I'm not trying to accuratley simulate anything.\n\n**THIS IS A FUNNY PROJECT. USE AT YOUR OWN RISK!!**\n\n## Requirements\n\n~~I need static pokemon data like base stats species id etc, move list, and a learn set per pokemon.~~\n\n~~I'm still debating having static pokemon data in csv files, or in a sqlite db along with user instance data?~~\n\n~~But I also need user instance pokemon data, which ones are in the party, what level, what moves, status effects, etc. Also need user data for a bag/inventory system eventually.~~\n\nsqlite might be the easiest solution, idk if it's the best but it works.\n\nFor the actual battles, I want to implement strategy pattern in C, but I'm not sure how yet. Probably higher order functions and function pointers, oi. I'm still learning the nitty-gritty of C, so we'll see how this evolves.\n\n- [x] Python scripts to fetch pokemon data\n- [x] Stash Pokemon data into sqlite\n- [ ] C sqlite setup?\n  - [x] C db object setup\n  - (need to think about creating everything in C?)\n  - [x] How to query in C sqlite?\n  - [ ] How to insert, update (upsert possible?) in C sqlite?\n- [x] C sqlite library\n- [ ] Load Pokedex\n- [ ] Check for and load user save\n  - [ ] If not save, prompt user to make one\n  - [ ] Party selection menu\n- [ ] ?What about Enemy and Their party?\n- [ ] Strategy pattern in C, for the battle system\n- [ ] C unit testing\n\nLol, slight detore accured. It took my like a week or 2 to scrap the pokeapi, create schemas and relationships that make sense for a simple cli app. Nothing fancy, and just the basics for a gen 1 pokemon battle.\n\nNo held items, no abilities, no stage advantages, none of that later gen stuff.\n\nI then had to learn the BASICS of the C lanugage to do anything semi-productive, like query the pokedex from sqlite, and stash that into a struct list.\n\n## Data\n\nUsing \u003chttps://pokeapi.co\u003e and python to fetch and transform data from json to sqlite. Still in progress.\n\nOpenAPI Schema file on github: \u003chttps://raw.githubusercontent.com/PokeAPI/pokeapi/master/openapi.yml\u003e\n\n## Gotchas\n\n1. Add `-lsqlite3` to CC, to link sqlite3 library. Otherwise it won't compile.\n2. Poke API data has so much damn data, it took me a week to write scripts to fetch the data and etl it into a sqlite db ... I'm tired bouss ...\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffitzy1321%2Fpokebattle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffitzy1321%2Fpokebattle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffitzy1321%2Fpokebattle/lists"}