{ "info": { "author": "Orcun Gumus", "author_email": "orcungumus@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "# Tournament Scheduling\n[![Build Status](https://travis-ci.org/guemues/german-game-tournament.svg?branch=master)](https://travis-ci.org/guemues/german-game-tournament) [![Coverage Status](https://coveralls.io/repos/github/guemues/german-game-tournament/badge.svg?branch=master)](https://coveralls.io/github/guemues/german-game-tournament?branch=master)\n\nThis repository created for a tournament scheduling problem.\n\nThe purpose is prevent placing same players more than one times in the same game.\n\nYou can schedule your tournament in only one way with this repo. More scheduling types including round-robin may or may not added.\n\nThe algorithm works like this for 16 person tournement:\n```\n[0, 1, 2 ... 15]\n```\nFor 4 player catan tournement\n\nFirst Cycle: \n```\n[0, 1, 2, 3]\n[4, 5, 6, 7]\n[8, 9, 10, 11]\n[12, 13, 14, 15]\n```\nSecond Cycle: \n```\n[0, 4, 8, 12]\n[1, 5, 9, 13]\n[2, 6, 10, 14]\n[3, 7, 11, 15]\n```\n\nSupport for game_per_player (game count for players) other then 2 is not tested.\nWith this algorithm you need k * power(player count in one game, game count for one player) player. k must be integer bigger than 0.\n\n\n### Installing\n\n```\npip install germantournament\n```\n\n### Usage\n\nExample\n\n```\n>>>from germantournament.GameTournament import GermanGameTournament\n>>>tournament = GermanGameTournament()\n>>>tournament.set_player_count(16)\n>>>scheduled_events = tournament.schedule(player_count_in_one_game=4)\n>>>print(scheduled_events)\n\n[[0, 4, 8, 12], [3, 7, 11, 15], [1, 5, 9, 13], [2, 6, 10, 14], [4, 5, 6, 7], [0, 1, 2, 3], [12, 13, 14, 15], [8, 9, 10, 11]]\n```", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/guemues/german-game-tournament/archive/0.1.1.tar.gz", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/guemues/german-game-tournament", "keywords": "tournament,german,game", "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "germantournament", "package_url": "https://pypi.org/project/germantournament/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/germantournament/", "project_urls": { "Download": "https://github.com/guemues/german-game-tournament/archive/0.1.1.tar.gz", "Homepage": "https://github.com/guemues/german-game-tournament" }, "release_url": "https://pypi.org/project/germantournament/0.1.1/", "requires_dist": null, "requires_python": null, "summary": "A package for help schedule tournaments", "version": "0.1.1" }, "last_serial": 2680301, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "5cd73df26b592bc5422b26c8c4749716", "sha256": "b034650cc1d07e1b2599ae0a84b83a042e5414459c3e31e92b182c4c42c5c494" }, "downloads": -1, "filename": "germantournament-0.1.tar.gz", "has_sig": false, "md5_digest": "5cd73df26b592bc5422b26c8c4749716", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1377, "upload_time": "2017-03-03T10:56:01", "url": "https://files.pythonhosted.org/packages/a6/63/5b95f04c968da88a512040356520c9f3067189ef38f0c3f93086ca6f9661/germantournament-0.1.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "f405aa352fc984a591f034873bc40ce3", "sha256": "c99c86e9340a77fc47f5147902dc38756770d744488104ce3da904b1ab36fcce" }, "downloads": -1, "filename": "germantournament-0.1.1.tar.gz", "has_sig": false, "md5_digest": "f405aa352fc984a591f034873bc40ce3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2106, "upload_time": "2017-03-03T12:10:50", "url": "https://files.pythonhosted.org/packages/63/81/eba3e47b6d536368b49d73db24dee8f8f41c53c40c9ab4584e5fec6d8dbe/germantournament-0.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "f405aa352fc984a591f034873bc40ce3", "sha256": "c99c86e9340a77fc47f5147902dc38756770d744488104ce3da904b1ab36fcce" }, "downloads": -1, "filename": "germantournament-0.1.1.tar.gz", "has_sig": false, "md5_digest": "f405aa352fc984a591f034873bc40ce3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2106, "upload_time": "2017-03-03T12:10:50", "url": "https://files.pythonhosted.org/packages/63/81/eba3e47b6d536368b49d73db24dee8f8f41c53c40c9ab4584e5fec6d8dbe/germantournament-0.1.1.tar.gz" } ] }