{"id":16656462,"url":"https://github.com/xvw/tetra-master-util","last_synced_at":"2026-04-19T20:39:30.747Z","repository":{"id":192166361,"uuid":"686000831","full_name":"xvw/tetra-master-util","owner":"xvw","description":"Miscellaneous tools for the Final Fantasy IX Tetra Master card game","archived":false,"fork":false,"pushed_at":"2023-09-02T01:36:29.000Z","size":20,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-26T09:35:12.023Z","etag":null,"topics":["card-game","final-fantasy-ix","tetra-master","tool"],"latest_commit_sha":null,"homepage":"https://xvw.lol/pages/tetra-master.html","language":"OCaml","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xvw.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}},"created_at":"2023-09-01T13:54:52.000Z","updated_at":"2023-09-05T11:56:13.000Z","dependencies_parsed_at":"2023-09-03T04:09:06.170Z","dependency_job_id":null,"html_url":"https://github.com/xvw/tetra-master-util","commit_stats":null,"previous_names":["xvw/tetra-master-util"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/xvw/tetra-master-util","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xvw%2Ftetra-master-util","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xvw%2Ftetra-master-util/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xvw%2Ftetra-master-util/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xvw%2Ftetra-master-util/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xvw","download_url":"https://codeload.github.com/xvw/tetra-master-util/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xvw%2Ftetra-master-util/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32022558,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T20:23:30.271Z","status":"online","status_checked_at":"2026-04-19T02:00:07.110Z","response_time":55,"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":["card-game","final-fantasy-ix","tetra-master","tool"],"created_at":"2024-10-12T09:57:24.517Z","updated_at":"2026-04-19T20:39:30.700Z","avatar_url":"https://github.com/xvw.png","language":"OCaml","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tetra-master-util\n\n\u003e Miscellaneous tools for the Final Fantasy IX Tetra Master card game\n\nThe card game (from Final Fantasy IX) relies on a lot of implicit probabilities,\nand this little binary served as the basis for the article describing it (in\nFrench) [on my site](https://xvw.lol).\n\n## Programs\n\nCurrently, the project contains only one utility (used to write the [following\narticle](https://xvw.lol/pages/tetra-master.html)). However, it's possible that\nthe software will be enriched with new features as I continue to build on my\nexperience with the Tetra Master.\n\n### vprob\n\n`vprob` pessimistically calculates an attacking card's probability of victory\nbased on its statistics. `vprob` pessimistically calculates an attacking card's\nprobability of victory based on its statistics.\n\n**invocation:**\n\n```shell\n./tetra.exe vprob --attacker {attacker_stats} --defender {defender_stats}\n```\n\nThe statistics are the same as in FFIX: `PKPP` :\n\n- `P` is a number in hexadecimal from `0` to `F`\n- `K` is the kind of the card `P`, `M`, `X` or `A`.\n\n## Setting up the development environment\n\nSetting up a development environment is quite common. We recommend setting up a\nlocal switch to collect dependencies locally. Here are the commands to enter to\ninitiate the environment:\n\n```shell\nopam update\nopam switch create . ocaml-base-compiler.5.0.0 --deps-only -y\neval $(opam env)\n```\n\nAfter initializing the switch, you can collect the development and project\ndependencies using make:\n\n```shell\nmake deps\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxvw%2Ftetra-master-util","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxvw%2Ftetra-master-util","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxvw%2Ftetra-master-util/lists"}