承接 winter/wn-battlesnake-plugin 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

winter/wn-battlesnake-plugin

Composer 安装命令:

composer require winter/wn-battlesnake-plugin

包简介

Playground for building Battlesnakes in Winter CMS

README 文档

README

MIT License

Playground for building & debugging battlesnakes in Winter CMS.

Installation

This plugin is available for installation via Composer.

composer require winter/wn-battlesnake-plugin

After installing the plugin you will need to run the migrations and (if you are using a public folder) republish your public directory.

php artisan migrate

Running Local Games

Run local Battlesnake games using your snake templates with the battlesnake:play command:

# Run a game with specific snakes (by slug)
php artisan battlesnake:play snake1 snake2

# Run multiple instances of the same snake
php artisan battlesnake:play local:3

# Mix snakes and counts
php artisan battlesnake:play snake1 snake2:2 snake3

# Interactive mode (prompts for snake selection)
php artisan battlesnake:play

Options

Option Description Default
-W, --width Board width 11
-H, --height Board height 11
-t, --timeout Request timeout in milliseconds 500
-r, --seed Random seed for reproducibility -
-d, --delay Delay between turns in milliseconds -
-g, --gametype Game type (standard, royale, etc.) standard
-m, --map Map to use standard
-b, --browser Open game in browser viewer -
-o, --output Output game log to JSON file -

Examples

# Quick game with browser viewer
php artisan battlesnake:play local:4 --browser

# Slow game for debugging
php artisan battlesnake:play local:2 --delay=500

# Reproducible game with seed
php artisan battlesnake:play snake1 snake2 --seed=12345

# Large board royale game
php artisan battlesnake:play local:8 -W 19 -H 19 -g royale

# Save game log for replay
php artisan battlesnake:play local:4 -o game.json

统计信息

  • 总下载量: 15
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 2
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-11-15