{"id":25705805,"url":"https://github.com/namek/battle-tactics","last_synced_at":"2026-06-13T03:02:57.894Z","repository":{"id":74358903,"uuid":"70831046","full_name":"Namek/battle-tactics","owner":"Namek","description":"Turn-based top-down game where units move between corners, peek and fire","archived":false,"fork":false,"pushed_at":"2016-10-14T12:33:45.000Z","size":32,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-19T03:22:26.708Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/Namek.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2016-10-13T17:27:13.000Z","updated_at":"2016-10-14T23:05:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"28557d7d-5ef9-4238-b7d8-f22c4c1fc77f","html_url":"https://github.com/Namek/battle-tactics","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Namek/battle-tactics","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Namek%2Fbattle-tactics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Namek%2Fbattle-tactics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Namek%2Fbattle-tactics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Namek%2Fbattle-tactics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Namek","download_url":"https://codeload.github.com/Namek/battle-tactics/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Namek%2Fbattle-tactics/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34270417,"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-13T02:00:06.617Z","response_time":62,"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":[],"created_at":"2025-02-25T06:48:25.132Z","updated_at":"2026-06-13T03:02:57.889Z","avatar_url":"https://github.com/Namek.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Battle Tactics\n\nTurn-based game prototype where units move between corners, peek and fire.\n\n## Rules\n\nThere are 4 actions:\n\n * move to adjoint field\n * peek over the corner behind wall\n * fire\n * wait\n\nEvery action has a cost of **action points**.\n\n**Result of peeking**: mark on board all positions of enemy units that were seen.\nFor a longer peek there is a path rather than single point.\n\n\n## Simulation\n\nAll actions are equal to one or more steps. **Move** is always 1 step, however **peeking** and **firing** are enabled until other action starts or turn ends.\n\nEach turn consists of:\n\n1. marking all units who are peeking\n2. then simulating moves and firing\n\n\nMore detailed - on every step simulate actions for each unit:\n\n 1. if any unit is going to start peeking this round, then turn the peek mode for them\n\n 2. fire/move simulation:\n  - move:\n    - if current unit has a move, then he moves\n    - after move, if he's spotted then he's marked on board to the spotting players\n    - if enemy units are shooting then the closest one hits the unit and takes the point\n\n  - fire:\n    - take down the closest spotted unit on current step\n    - if enemy unit is firing at us at the same time then both units are down\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnamek%2Fbattle-tactics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnamek%2Fbattle-tactics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnamek%2Fbattle-tactics/lists"}