{"id":20398760,"url":"https://github.com/bcambl/powershell-battlesnake","last_synced_at":"2026-05-11T09:52:45.275Z","repository":{"id":73990524,"uuid":"487044192","full_name":"bcambl/powershell-battlesnake","owner":"bcambl","description":"A Battlesnake QuickStart using PowerShell Core","archived":false,"fork":false,"pushed_at":"2023-09-28T03:38:02.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-31T13:42:49.808Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PowerShell","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/bcambl.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":"2022-04-29T16:42:50.000Z","updated_at":"2025-11-26T00:13:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"31c0c7d7-d52e-48d3-b46e-6b433322a6a8","html_url":"https://github.com/bcambl/powershell-battlesnake","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bcambl/powershell-battlesnake","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcambl%2Fpowershell-battlesnake","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcambl%2Fpowershell-battlesnake/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcambl%2Fpowershell-battlesnake/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcambl%2Fpowershell-battlesnake/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bcambl","download_url":"https://codeload.github.com/bcambl/powershell-battlesnake/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcambl%2Fpowershell-battlesnake/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32889971,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-10T13:40:02.631Z","status":"online","status_checked_at":"2026-05-11T02:00:05.975Z","response_time":120,"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":"2024-11-15T04:23:59.235Z","updated_at":"2026-05-11T09:52:45.213Z","avatar_url":"https://github.com/bcambl.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"PowerShell Battlesnake QuickStart\n=================================\n\nA Starter Battlesnake written in PowerShell Core 7.\n\nLearn more at https://play.battlesnake.com/\n\n## Customizing Your Battlesnake\nUpdate the `Get-Info` function found inside [Add-Logic.ps1](Add-Logic.ps1#L11)\n```\n$info = [PSCustomObject]@{\n    apiversion = '1'\n    author = ''        # TODO: Your Battlesnake username\n    color = '#012456'  # TODO: Personalize\n    head = \"default\"   # TODO: Personalize\n    tail = \"default\"   # TODO: Personalize\n    version = \"0.0.1\"\n}\n```\nRefer to [Battlesnake Customization](https://docs.battlesnake.com/guides/customizations) for how to customize your Battlesnake's appearance using these values.\n\n## Changing Behavior\nOn every turn of each game your Battlesnake receives information about the game board and must decide its next move.\n\nLocate the `Get-Move` function inside [Add-Logic.ps1](Add-Logic.ps1#L49). Possible moves are \"up\", \"down\", \"left\", or \"right\" and initially your Battlesnake will choose a move randomly. Your goal as a developer is to read information sent to you about the game (available in the `$gameState` variable) and decide where your Battlesnake should move next. All your Battlesnake logic lives in [Add-Logic.ps1](Add-Logic.ps1), and this is the code you will want to edit.  \nRefer to the ['object definitions'](https://docs.battlesnake.com/api/requests/move) in the `/move` POST request documentation for the structure of `$gameState`.\n\nSee the [Battlesnake Game Rules](https://docs.battlesnake.com/guides/playing/rules) for more information on playing the game, moving around the board, and improving your algorithm.\n\n## Running Your Battlesnake\n### Run Locally\n```\npwsh Start-BattleSnake.ps1\n```\n\n\n### Run As Container\n\nBuild\n```\npodman build -t powershell-battlesnake -f Containerfile\n```\n\nRun\n```\npodman run -dt -p 8080:8080 --name powershell-battlesnake localhost/powershell-battlesnake\n```\n\nTest\n```\ncurl http://localhost:8080/\n```\n\nStop\n```\npodman stop powershell-battlesnake\n```\n\n## Running Tests\nInstall Pester\n```\nInstall-Module Pester -Force\nImport-Module Pester -PassThru\n```\nRun All Tests\n```\nInvoke-Pester -Output Detailed ./*.Tests.ps1\n```\n\nExample Test Output:\n```\nPester v5.3.2\n\nStarting discovery in 1 files.\nDiscovery found 1 tests in 3ms.\nRunning tests.\n\nRunning tests from '/home/bcambl/workspace/powershell-battlesnake/Add-Logic.Tests.ps1'\nDescribing Get-Move\n  [+] Avoids Neck Move 2.07s (2.07s|2ms)\nTests completed in 2.1s\nTests Passed: 1, Failed: 0, Skipped: 0 NotRun: 0\n\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbcambl%2Fpowershell-battlesnake","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbcambl%2Fpowershell-battlesnake","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbcambl%2Fpowershell-battlesnake/lists"}