{"id":13606036,"url":"https://github.com/wintercms/wn-battlesnake-plugin","last_synced_at":"2026-06-29T04:31:40.099Z","repository":{"id":213080831,"uuid":"732979751","full_name":"wintercms/wn-battlesnake-plugin","owner":"wintercms","description":"WIP playground for building Battlesnakes in Winter CMS","archived":false,"fork":false,"pushed_at":"2025-12-05T20:29:09.000Z","size":7574,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-12-07T10:48:08.598Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","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/wintercms.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},"funding":{"github":"wintercms","open_collective":"wintercms"}},"created_at":"2023-12-18T09:46:02.000Z","updated_at":"2025-12-05T20:29:13.000Z","dependencies_parsed_at":"2023-12-18T10:56:56.648Z","dependency_job_id":"95eb8145-6656-4ecd-a2b8-83cb5fb66665","html_url":"https://github.com/wintercms/wn-battlesnake-plugin","commit_stats":null,"previous_names":["wintercms/wn-battlesnake-plugin"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/wintercms/wn-battlesnake-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wintercms%2Fwn-battlesnake-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wintercms%2Fwn-battlesnake-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wintercms%2Fwn-battlesnake-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wintercms%2Fwn-battlesnake-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wintercms","download_url":"https://codeload.github.com/wintercms/wn-battlesnake-plugin/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wintercms%2Fwn-battlesnake-plugin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34913586,"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-29T02:00:05.398Z","response_time":58,"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-08-01T19:01:05.446Z","updated_at":"2026-06-29T04:31:40.093Z","avatar_url":"https://github.com/wintercms.png","language":"PHP","funding_links":["https://github.com/sponsors/wintercms","https://opencollective.com/wintercms"],"categories":["Uncategorized"],"sub_categories":["Uncategorized"],"readme":"# Battlesnake Plugin\n\n[![MIT License](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/wintercms/wn-battlesnake-plugin/blob/main/LICENSE)\n\nPlayground for building \u0026 debugging battlesnakes in Winter CMS.\n\n## Installation\n\nThis plugin is available for installation via [Composer](http://getcomposer.org/).\n\n```bash\ncomposer require winter/wn-battlesnake-plugin\n```\n\nAfter installing the plugin you will need to run the migrations and (if you are using a [public folder](https://wintercms.com/docs/develop/docs/setup/configuration#using-a-public-folder)) [republish your public directory](https://wintercms.com/docs/develop/docs/console/setup-maintenance#mirror-public-files).\n\n```bash\nphp artisan migrate\n```\n\n## Running Local Games\n\nRun local Battlesnake games using your snake templates with the `battlesnake:play` command:\n\n```bash\n# Run a game with specific snakes (by slug)\nphp artisan battlesnake:play snake1 snake2\n\n# Run multiple instances of the same snake\nphp artisan battlesnake:play local:3\n\n# Mix snakes and counts\nphp artisan battlesnake:play snake1 snake2:2 snake3\n\n# Interactive mode (prompts for snake selection)\nphp artisan battlesnake:play\n```\n\n### Options\n\n| Option | Description | Default |\n|--------|-------------|---------|\n| `-W, --width` | Board width | 11 |\n| `-H, --height` | Board height | 11 |\n| `-t, --timeout` | Request timeout in milliseconds | 500 |\n| `-r, --seed` | Random seed for reproducibility | - |\n| `-d, --delay` | Delay between turns in milliseconds | - |\n| `-g, --gametype` | Game type (standard, royale, etc.) | standard |\n| `-m, --map` | Map to use | standard |\n| `-b, --browser` | Open game in browser viewer | - |\n| `-o, --output` | Output game log to JSON file | - |\n\n### Examples\n\n```bash\n# Quick game with browser viewer\nphp artisan battlesnake:play local:4 --browser\n\n# Slow game for debugging\nphp artisan battlesnake:play local:2 --delay=500\n\n# Reproducible game with seed\nphp artisan battlesnake:play snake1 snake2 --seed=12345\n\n# Large board royale game\nphp artisan battlesnake:play local:8 -W 19 -H 19 -g royale\n\n# Save game log for replay\nphp artisan battlesnake:play local:4 -o game.json\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwintercms%2Fwn-battlesnake-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwintercms%2Fwn-battlesnake-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwintercms%2Fwn-battlesnake-plugin/lists"}