{"id":18497569,"url":"https://github.com/csb6/squad-tactical-game","last_synced_at":"2025-05-14T05:14:13.195Z","repository":{"id":115656479,"uuid":"162931108","full_name":"csb6/squad-tactical-game","owner":"csb6","description":"An XCOM-like, turn-based tactical game made in Ruby/Tk from a 2D, top-down perspective","archived":false,"fork":false,"pushed_at":"2019-04-02T07:25:37.000Z","size":214,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"ai","last_synced_at":"2025-02-17T00:21:07.895Z","etag":null,"topics":["2d-game","a-star-algorithm","ruby"],"latest_commit_sha":null,"homepage":null,"language":"Ruby","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/csb6.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}},"created_at":"2018-12-23T23:30:59.000Z","updated_at":"2019-04-02T07:25:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"12fc247c-fa12-497d-9a44-65638a77dd7c","html_url":"https://github.com/csb6/squad-tactical-game","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/csb6%2Fsquad-tactical-game","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csb6%2Fsquad-tactical-game/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csb6%2Fsquad-tactical-game/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csb6%2Fsquad-tactical-game/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/csb6","download_url":"https://codeload.github.com/csb6/squad-tactical-game/tar.gz/refs/heads/ai","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254076851,"owners_count":22010611,"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":["2d-game","a-star-algorithm","ruby"],"created_at":"2024-11-06T13:34:59.316Z","updated_at":"2025-05-14T05:14:13.143Z","avatar_url":"https://github.com/csb6.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# squad-tactical-game\n\nDemonstration Video:\n\n[![IMAGE ALT TEXT](http://img.youtube.com/vi/vRx1T4qwkBg/0.jpg)](http://youtu.be/vRx1T4qwkBg \"Video Title\")\n\nAn XCOM-like, turn-based tactical game made in Ruby/Tk from a 2D, top-down perspective.\n\nThe player controls a team of five blue soldiers, with the goal being to eliminate the enemy red soldiers by attacking them \nseveral times.\n\nWhile I did not complete the enemy AI code, I implemented the A* pathfinding algorithm, allowing players to \nselect a soldier, click on a destination and have a soldier find the shortest path there around obstacles. This was \nfascinating to learn about and I hope to make use of it in further projects.\n\nTo play, make sure that you have recent versions of Ruby and Tk installed, navigate to the squad-tactical-game folder, \nand run `ruby project-1.rb`\n\n## Controls\n**Left-click on a blue soldier** - Selects that soldier, displaying his stats in the right sidebar. \nRemains selected until you press the deselect soldier button or you perform an action (ex: attacking someone)\n\n**Right-click on the currently-selected soldier** - Shows contextual menu with some actions that soldier can take. \nInfo shows a window with a short description of the soldier, Overwatch allows the soldier to shoot any enemy that moves\nwithin a few squares during the opponent's turn, Take Cover makes the selected soldier harder to hit.\n\n**Right-click on a soldier who isn't the selected soldier** - Shows contextual menu showing chance to hit (HC) as a percentage \nthat decreases as distance increases. Click the Attack button in this menu to attempt to attack that soldier.\n\n**End turn button in right side-menu** - When you're done with all of your moves, press this button to let the Red Team move.\nOne Red Soldier should move 5 squares to the right of the right-most blue soldier at the end of the prior turn.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcsb6%2Fsquad-tactical-game","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcsb6%2Fsquad-tactical-game","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcsb6%2Fsquad-tactical-game/lists"}