{"id":50727723,"url":"https://github.com/kernelshreyak/battleboard","last_synced_at":"2026-06-10T05:32:17.358Z","repository":{"id":346571758,"uuid":"1190459039","full_name":"kernelshreyak/battleboard","owner":"kernelshreyak","description":"Strategy game with huge armies of red and blue team with simple rules but scalable gameplay","archived":false,"fork":false,"pushed_at":"2026-03-24T12:22:47.000Z","size":153,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-25T16:00:28.993Z","etag":null,"topics":["game-development","html5-canvas","html5-game","javascript","javascript-game","javascript-game-engine","pixijs-v5","strategy-game","typescript","web-game"],"latest_commit_sha":null,"homepage":"https://battleboard-classic.vercel.app/","language":"TypeScript","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/kernelshreyak.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-03-24T09:55:16.000Z","updated_at":"2026-03-24T12:22:59.000Z","dependencies_parsed_at":"2026-03-25T16:03:46.659Z","dependency_job_id":null,"html_url":"https://github.com/kernelshreyak/battleboard","commit_stats":null,"previous_names":["kernelshreyak/battleboard"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/kernelshreyak/battleboard","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kernelshreyak%2Fbattleboard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kernelshreyak%2Fbattleboard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kernelshreyak%2Fbattleboard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kernelshreyak%2Fbattleboard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kernelshreyak","download_url":"https://codeload.github.com/kernelshreyak/battleboard/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kernelshreyak%2Fbattleboard/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34139178,"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-10T02:00:07.152Z","response_time":89,"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":["game-development","html5-canvas","html5-game","javascript","javascript-game","javascript-game-engine","pixijs-v5","strategy-game","typescript","web-game"],"created_at":"2026-06-10T05:32:12.895Z","updated_at":"2026-06-10T05:32:17.346Z","avatar_url":"https://github.com/kernelshreyak.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Battleboard\n\nBattleboard is a web-based 2D strategy prototype built with TypeScript, Vite, and PixiJS. It combines a large configurable board editor with a turn-based tactics sandbox where red and blue teams fight using dice-driven movement and attack rules.\n\n## Screenshot\n\n![Battleboard gameplay screenshot](./screen1.jpg)\n\n## Features\n\n- Configurable square board with large-map support.\n- Setup mode for placing red, blue, and neutral wall pieces directly on the board.\n- Position-string format for saving and loading board states.\n- Play mode with click-based selection, movement, attacks, captures, scoring, and win detection.\n- Rules modal for quick in-app reference.\n- Neutral wall pieces with two-hit durability and cracked visual state.\n\n## Piece Types\n\n- `Soldier`: melee attacker, circular token, direct capture.\n- `Archer`: ranged attacker, circular token with ring marker.\n- `Champion`: flexible attacker, triangle token, moves onto captured square.\n- `Leader`: diamond token, cannot attack directly; losing it ends the game.\n- `Behemoth`: heavy ranged attacker, triangle token with black center.\n- `Wall`: neutral blocker that takes two direct hits to destroy.\n\n## Rules Summary\n\n- Red and blue alternate turns.\n- Each turn allows exactly one roll.\n- General roll: `1d6`, usable across movement by multiple friendly pieces or one soldier/archer attack.\n- Piece roll: `1d6`, usable only by the selected piece.\n- Soldiers and archers attack using the full roll distance in straight unobstructed line of sight.\n- Champions and behemoths can spend their points across movement and multiple direct line-of-sight attacks.\n- Champions capture by moving onto the target square.\n- Behemoths and archers capture from range and stay put.\n- Leaders cannot attack directly.\n- Walls crack on the first direct hit and are removed on the second.\n\n## Scoring\n\n- Soldier: `1`\n- Archer: `2`\n- Champion: `8`\n- Behemoth: `20`\n- Leader: `50`\n\n## Position String\n\nBattleboard uses a compact FEN-like format:\n\n`bb1;size=20;turn=red;rows=...`\n\n- Rows are separated by `/`.\n- Digits compress consecutive empty squares.\n- Lowercase letters are red pieces.\n- Uppercase letters are blue pieces.\n- `x` is an intact wall.\n- `X` is a cracked wall.\n\n## Development\n\nInstall dependencies and run the Vite dev server:\n\n```bash\nnpm install\nnpm run dev\n```\n\nCreate a production build:\n\n```bash\nnpm run build\n```\n\nPreview the production build locally:\n\n```bash\nnpm run preview\n```\n\n## Tech Stack\n\n- TypeScript\n- Vite\n- PixiJS\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkernelshreyak%2Fbattleboard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkernelshreyak%2Fbattleboard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkernelshreyak%2Fbattleboard/lists"}