Code Monkey home page Code Monkey logo

tournament-generator's People

Contributors

heroyt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

tournament-generator's Issues

PHP 8.1.5 Throwing Deprecated Error on Iterator Class

Any plans to develop this and bring it up to speed with PHP 8.1.5?

I'm running your sample code and getting the following error:
Deprecated: Return type of TournamentGenerator\Containers\BaseContainer::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in .\sandbox\bracket-may-2022\vendor\heroyt\tournament-generator\src\TournamentGenerator\Containers\BaseContainer.php on line 122

Help Needed

Hey,

Just a FYI, this package is amazing, it seem's to have all of the functionality i need to create my football tournaments. There is only a small problem i am hoping you can help me with.

I'm struggling to get this to work with my Laravel application.

Currently i have an array of teams that are in my database. How can i use your package to generate round-robin tournament matches (either one round or two round) and then record the schedule in my database?

Any help would be appreciated, thank you.

Cannot set results

When using setResults method on a game, the method does not find the team in the array. I have even used an array within the game class to try ensure it wasnt my query such as [$game->getTeam($match->hometeam)->getId() => score] and still get the exception of 'Couldn't find team with id of "'.$id.'"'. I was going to fork and try to look at it, but there seems to be an issue with the array its looking at in the class.

Filters help

Im a bit confused how to use filters. Or more specifically if there is a way to us the filters to achive what im trying to.

Tournament stretchs 9 weeks. 10 teams are in the tournament (there will always be 2 1 more team then the number of weeks the tournament lasts)

I need it so every one plays everyone only once over that entire time. If you need anything from me please let me know.

Thank you!

Fatal Error on setResults

I am unable to set a setResults(Array).
Creating a tournament and filling the teams from database works fine, as well as the export /import to json.
Running script tournament-robin-min.php throws a fatal error.
php_and_output.zip

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.