承接 estbase/round-robin 相关项目开发

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

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

estbase/round-robin

Composer 安装命令:

composer require estbase/round-robin

包简介

Package to generate Round-robin schedule for a tournament.

README 文档

README

Travis (.org) License

EST Base Packages

  • RoundRobin Schedule Generator
  • TBC

About Round-Robin EST Package

This package will generate a tournament or seasonal calendar instantly, through the round-robin system.

Based on code of: https://github.com/mnito/round-robin

Features

  • Schedule generation by Round-robin system
  • Support for any number of teams (Indicated for no more than 12 or 14 teams)
  • Ability to generate a number of rounds on demand
  • Ability to configure add a bye for odd-numbered team counts
  • PHP 8.3
  • PHPUnit tested

Installation

If you use Composer, run on your terminal:

composer require estbase/round-robin

in other cases add the following line on required packages:

"estbase/round-robin": "^2.0"

Ready to use!

Usage

Short call, generating a schedule where each player meets every other player once:

$schedule = Schedule::create(['A','B','C','D']);

or

$teams = ['A','B','C','D'];
$schedule = Schedule::create($teams);

Generate schedule with personalized number of rounds or on each team plays with other team twice:

$teams = ['A','B','C','D'];
$schedule = Schedule::create($teams, 5);

or

$teams = ['A','B','C','D'];
$rounds = (($count = count($teams)) % 2 === 0 ? $count - 1 : $count) * 2;
$schedule = Schedule::create($teams, $rounds);

Generate schedule with or without adding a bye for an odd-numbered tournaments:

This case generates a Schedule adding a bye.

$teams = ['A','B','C','D','E'];
$schedule = Schedule::create($teams);

or without it

$teams = ['A','B','C','D','E'];
$schedule = Schedule::create($teams, null, false);

Generate a schedule without randomly shuffling the teams:

$schedule = Schedule::createSchedule(['A','B','C','D'],null,true, false);

Using your own seed to generate the schedule with predetermined shuffling:

$schedule = Schedule::createSchedule(['A','B','C','D'],null,true, true, 9);

License

EST Base round-robin package is free software distributed under the terms of the MIT license.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-05-03

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固