{"id":18470655,"url":"https://github.com/jmegner/kt21calculator","last_synced_at":"2025-04-08T11:31:59.638Z","repository":{"id":42988177,"uuid":"435087285","full_name":"jmegner/KT21Calculator","owner":"jmegner","description":"Specialized calculator for analyzying shooting and fighting in Kill Team 2021 edition (\"KT21\").","archived":false,"fork":false,"pushed_at":"2024-06-17T16:45:01.000Z","size":2236,"stargazers_count":10,"open_issues_count":15,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-06-17T18:52:50.697Z","etag":null,"topics":["github-actions","github-pages","jest","kill-team","react","react-hooks","statistics"],"latest_commit_sha":null,"homepage":"https://jmegner.github.io/KT21Calculator/","language":"TypeScript","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/jmegner.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}},"created_at":"2021-12-05T06:02:34.000Z","updated_at":"2024-06-17T16:43:53.000Z","dependencies_parsed_at":"2023-01-20T00:20:24.810Z","dependency_job_id":"9caaba6d-dd92-4878-9449-b76f8d593ed2","html_url":"https://github.com/jmegner/KT21Calculator","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/jmegner%2FKT21Calculator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmegner%2FKT21Calculator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmegner%2FKT21Calculator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmegner%2FKT21Calculator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jmegner","download_url":"https://codeload.github.com/jmegner/KT21Calculator/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223317849,"owners_count":17125605,"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":["github-actions","github-pages","jest","kill-team","react","react-hooks","statistics"],"created_at":"2024-11-06T10:14:35.974Z","updated_at":"2025-04-08T11:31:59.624Z","avatar_url":"https://github.com/jmegner.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Kill Team 2021 Calculator (\"ktcalc\")\nCalculator for helping analyze shooting and fighting attacks in Kill Team (2024 edition and formerly 2021 edition). Heavily inspired by kt2.doit-cms.ru (now offline).\n\nLive at [jmegner.github.io/KT21Calculator](https://jmegner.github.io/KT21Calculator/).\n\nFor reference, here's ktcalc's [announcement reddit thread](https://www.reddit.com/r/killteam/comments/rvhme0/kt21_calculator_web_app/)\nand\n[follow-up thread for fight support](https://www.reddit.com/r/killteam/comments/s5gczq/kt21_calculator_now_supports_fightingmelee/).\nCheck out [Kill Team Resources](https://github.com/jmegner/KillTeamResources) repo for other calculators/simulators and more.\n\n## Future Work\n\nSee [issues](https://github.com/jmegner/KT21Calculator/issues), but to comment on the big ones ...\n- I would love to do a [mass analysis tab](https://github.com/jmegner/KT21Calculator/issues/13), but it will take a lot of work.\n- [FNP for melee](https://github.com/jmegner/KT21Calculator/issues/3) is painful and I don't have any short term or medium term plans to do it.\n- Option for user to [select a relevant operative profile](https://github.com/jmegner/KT21Calculator/issues/14) (ex: Necron Immortal with Gauss Blaster) instead of individually selecting parameters.  Low priority because it is high effort and moderate benefit.\n\n## Dev Stuff\nBasically, this is a React SPA web app mostly written in TypeScript.\nThere is some Rust compiled down to wasm for some stuff where I needed more performance.\nI use GitHub Actions to test, build, and deploy the web app upon every git-push to main branch.\nI do my development in vscode.\n\nList of notable technologies/libs/whatever used...\n- [TypeScript](https://www.typescriptlang.org/) as the primary programming language.\n- [NodeJS and npm](https://nodejs.org/en/) for toolchain and package management.\n- [React](https://reactjs.org/) for UI framework.\n- [React-Bootstrap](https://react-bootstrap.github.io/) for UI components.\n- [Create-React-App](https://create-react-app.dev/) (but heavily considering using [Vite](https://vitejs.dev/) or [Remix](https://remix.run/) in future).\n- [Jest](https://jestjs.io/) for general JS/TS testing.\n- [Testing Library](https://testing-library.com/docs/react-testing-library/intro) for react-oriented testing.\n- [GitHub Actions](https://docs.github.com/en/actions) for CI/CD.\n- [Visual Studio Code](https://code.visualstudio.com/) (vscode) for the IDE.\n- For the Deadzone calculator, which is Monte Carlo, I got 10x speed from using wasm.\n  - [Rust](https://www.rust-lang.org/tools/install).\n  - [wasm-pack](https://rustwasm.github.io/wasm-pack/installer/) to build Rust into wasm.\n  - [wasm-bindgen](https://github.com/rustwasm/wasm-bindgen)\n\nDev setup...\n- You'll need to install [NodeJS+npm](https://nodejs.org/en/) for building and running.\n- Install [rust](https://www.rust-lang.org/tools/install) and [wasm-pack](https://rustwasm.github.io/wasm-pack/installer/) to build rust into wasm.\n  - Might have to do `rustup target add wasm32-unknown-unknown` as well.\n- For debugging and otherwise having a nice experience, this project is set up for vscode as the IDE.\n- Initially, you'll have to do a `npm ci` to install npm packages with exact versions of previous development.\n- Do a `npm run build` to build the wasm and React stuff.\n- Do a `npm start` to build the TypeScript stuff and run.\n- For debugging non-tests with vscode, be sure to do `npm start` before launching the debugger.\n  For debugging tests, you can just launch one of vscode's test-oriented debug profiles.\n- To run tests, do `npm test` for normal watch-mode testing that sticks around.\n  Do `npm run testq` that does a single run of tests (like doing `test` and then hitting `q` to quit).\n\n\n## Thanks\n\nMy thanks to [Daniel Espinoza-Hernandez](https://github.com/daespinozah) for UI improvements, like Accordions and SwipableViews.\n\nMy thanks to [Dave/veddermatic](https://github.com/veddermatic) for the nav bar and icons at top.\n\nMy thanks to [Kevin/Sigma](https://github.com/DenamPavel) for some initial KT2024 support.\n\nMy thanks to Redux maintainer\n[Mark Erikson](https://github.com/markerikson)\nfor his\n[advice and help](https://www.reddit.com/r/reactjs/comments/ropftw/comment/hpzxqrf/?utm_source=reddit\u0026utm_medium=web2x\u0026context=3).\nI decided not to use Redux just yet, but look forward to using it.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmegner%2Fkt21calculator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjmegner%2Fkt21calculator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmegner%2Fkt21calculator/lists"}