How to automatically create a player schedule?

I need your help how to automatically create a player schedule from a given list of players who will play doubles in a given period.
Let's say, I have a list of 12 players who will each play doubles with random partners for 4 times.
So play one could be: 1&2 vs 3&4, 5&6 vs 7&8, 9&10 vs 11&12.
But now I want inumbers to plan the second, third and fourth play automatically but with unique combinations.
In this example it's quite easy to do it manually, but I need to plan something similar for the tennisclub with many more players.
It should be able to set up a worksheet where you will fill out the following parameters:
List of players, number of available courts, whether you want ot let them play single or double games, number of plays.
The last one could also be left empty so discover how many unique plays you have given the other parameters.
I hope someone is able to help me, because this would save me a lot of time to make the planning for the tennisclub.
Thanks in advance for any support!

OK.  I think this may work for you:
There are two parts:
1) a small program you have to run (this is the part you may find difficult at first)
2) a Numbers spreadsheet
1) the program is invoked on the command line in the terminal.  You can open the Terminal by navigating to the folder "/Applications/Utilities"
you need to download the zip file here, then copy and unzip  in the same folder where you plan to store the Numbers document for making the tennis schedule.
Let's agree for this procedure that you are storing the program and Numbers file in the folder "/Users/<your user name>/Documents/TennisSchedule".
Once you launch the terminal you can navigate to the folder where you stored the zip file by typing:
cd ~/Documents/TennisSchedule
now you can invoke the program by typing:
./TennisRandomList
Then hit the return key.  Without any arguments the program simply emits some program information with a little help on how to use it-- described in the text starting with "USAGE" (see below)
Proton:TennisRandomList wayne$ ./TennisRandomList
Tennis Randomw List maker
Version 0.1
compiled on Nov 18 2012 @ 09:14:41
USAGE: TennisRandomList numPlayers numCourts numWeeks type verbosity
  numPlayers: 1 - 255
  numCourts: 1 - 255
  numWeeks: 1 - 255
  type: [s]ingle or [d]ouble
  verbosity: 0 - 5
  0 -> player ids only
  1 -> player ids + inputs
  2 -> player ids + inputs + raw random values
  3 -> player ids + inputs + raw random values + pairings
  4 -> player ids + inputs + raw random values + pairings
  5 -> player ids + inputs + raw random values + pairings
Proton:TennisRandomList wayne$
so to make a schedule for:
-12 players
  - 3 courts
- 6 weeks
- singles
you would invoke as:
./TennisRandomList 12 3 6 s
Then type return.
you should get something like:
Proton:TennisRandomList wayne$ ./TennisRandomList 12 3 6 s
Weeks: 6
Players: 12
Courts: 3
Type: singles
          Game
Week          Slot          Court 1          Court 2          Court 3
1          1          3          2          4          6          5          8
1          2          9          11          10          12          1          7
2          1          12          2          7          10          11          1
2          2          3          5          8          4          9          6
3          1          6          11          2          1          7          3
3          2          4          8          5          10          9          12
4          1          4          8          11          3          5          7
4          2          10          12          1          6          9          2
5          1          8          4          3          12          9          5
5          2          6          10          7          11          1          2
6          1          5          7          1          12          3          10
6          2          6          8          2          4          9          11
Proton:TennisRandomList wayne$
You can select, then copy the text following the line "Week Slot Court 1 Court 2 Court 3" upto, but not including, "Proton:TennisRandomList wayne$ "-- bolded in the above quotation
You can paste that into the Numbers document we will now make.
2) a Numbers spreadsheet
The Numbers document includes several tables as shown below:

Similar Messages

  • How to automatically create the custom migration scripts after recreating SSMA project?

    How to automatically create the custom data migration scripts after recreating SSMA project?
    There is number of tables ( big tables with BLOBS)  which I want to set up automatically to be migrated with custom migration scripts (replacing e.g. attribute named "FILE" with "TO_BLOB('') AS FILE" ).
    So the question is how to open MB file (I think that it should be standard db of some destktop RDBMS) ? 

    Hi Roman.Pokrovskij,
    According
    to your description, we can use SSMA tool to migrate data from one database (including Access, Oracle and so on) to SQL Server via GUI or the scripts. There is an example about migrating Access database to SQL Server via the
    custom migration scripts, you can review refer to them.
    <?xml version="1.0" encoding="utf-8"?>
    <ssma-script-file xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="C:\Microsoft SQL Server Migration Assistant for Access\Schemas\A2SSConsoleScriptSchema.xsd">
    <config>
    <output-providers>
    <output-window suppress-messages="false"
    destination="stdout"/>
    <upgrade-project action="yes"/>
    <data-migration-connection source-use-last-used="true"
    target-server="target_1"/>
    <progress-reporting enable="false"
    report-messages="false"
    report-progress="off"/>
    <object-overwrite action="skip" />
    </output-providers>
    </config>
    <servers>
    <!-- Server definition for Sql server target server-->
    <sql-server name="target_1">
    <sql-server-authentication>
    <server value="$SQLServerName$"/>
    <database value="$SQLServerDb$"/>
    <user-id value="$SQLServerUsrID$"/>
    <password value="$SQLServerPassword$"/>
    <encrypt value="true"/>
    <trust-server-certificate value="true"/>
    </sql-server-authentication>
    </sql-server>
    </servers>
    <script-commands>
    <create-new-project project-folder="$project_folder$ "
    project-name="$project_name$"
    overwrite-if-exists="true"/>
    <connect-target-database server="target_1"/>
    <load-access-database database-file="$AccessDbFolder$\$AccessDatabaseFile$"/>---
    <!--Schema Mapping-->
    <map-schema source-schema="$AccessDatabase$" sql-server-schema="$SQLServerDb$.dbo" />
    <!-- Convert schema -->
    <!-- Example: Convert entire Schema (with all attributes)-->
    <convert-schema object-name="$AccessDatabase$"
    object-type="Databases"
    conversion-report-overwrite="true"
    verbose="true"
    report-errors="true" />
    <!-- Synchronize target -->
    <!-- Example: Synchronize target entire Database with all attributes-->
    <synchronize-target object-name="$SQLServerDb$.dbo"
    on-error="fail-script" />
    <!-- Data Migration-->
    <!--Example: Data Migration of all tables in the schema (with all attributes)-->
    <migrate-data object-name="$AccessDatabase$.Tables"
    object-type="category"
    report-errors="true"
    verbose="true"/>
    </script-commands>
    </ssma-script-file>
    There is a similar scripts about migrating Oracle database to SQL Server, you can use powershell script to automatically run the console for scripts/variable files, saved in the specified folder. For more information, review the following
    article.
    http://blogs.msdn.com/b/ssma/archive/2010/09/09/performing-database-migration-assessment-using-ssma-console-application.aspx
    Regards,
    Sofiya Li
    Sofiya Li
    TechNet Community Support

  • How can I create a windows scheduler for shutdown my system in network?

    Hello.
    I want to create a windows scheduler for shutdown my system in a specific time but it can't let me to create it. I used below link to create a task but when I click on Finish it show me an error about permission. I used administrator account too but
    got same error.
    http://www.wikihow.com/Automatically-Shut-Down-Your-Computer-at-a-Specified-Time
    Thank you.

    Hello,
    Can you try opening Task Scheduler as Administrator :
    Right-click on "Task Scheduler" shortcut and select "Run as administrator
    Regards,
    Régis

  • How to automatically create fillable PDFs from XML

    We are looking for a way to create fillable PDFs that users can enter data into and save (so the PDF needs Reader Rights applied) and we want to be able to automatically create these PDFs from XML files. We are able to do what we want in a manual fashion using Acrobat Pro v8 but we need a way to automate this due to the volume of XML files that we will need to convert.
    Is there any way that this can be scripted from a command line interface with Acrobat.. like:
    Acrobat.exe –input FileName.xml –output FileName.pdf –applyReaderRights true
    If there is no command line options for this is there any way that this could be coded using .NET or any other programming language?

    You cannot automate applying usage rights with Acrobat. For that you'd need to use Adobe's LiveCycle Reader Extensions.
    How exactly are you currently converting XML into fillable forms? Are you using an XDP to somehow convert to an XFA-based PDF?

  • How can we create a work schedule number

    Dear pp masters
    i have one issue in our client side, we are in repetitive manufacturing(with mrp),how to create the work schedule number,,,, ,in that we have see only semifinished not finished,what is the t-code pls reply back
    thanks in adavance
    devendra

    Hi,
    Please check the below link ;
    http://www.sap-img.com/production/commonly-used-tcodes-in-pp-module-part-1.htm
    Regards
    Sreedhar reddy

  • How to automatically create xml documents ?

    Hi,
    I have created an xml form with specific fields and properties. Now, I want to automatically create a large amount of xml documents based on it.
    Is there any means to do this ?
    Thanks,
    Loïc LEVEUGLE

    You cannot automate applying usage rights with Acrobat. For that you'd need to use Adobe's LiveCycle Reader Extensions.
    How exactly are you currently converting XML into fillable forms? Are you using an XDP to somehow convert to an XFA-based PDF?

  • How can I create a cron schedule that repeats every 2 weeks on Mondays?

    I need to create a cron schedule that repeats every 2 weeks on Mondays. Cronmaker.com doesn't have the cron expression for this. Please advice.
    Using calendarSchedule I can do this,
    var trigger = TriggerBuilder.Create()
    .StartAt(new DateTime(2012, 11, 19, 12, 0, 0).ToUniversalTime())
    .WithCalendarIntervalSchedule(x => x.WithIntervalInWeeks(2))
    .Build();
    But where do  I specify it should be the 2nd monday?
    mayooran99

    Cron expressions available in Quartz.net library, which is used to schedule jobs through .Net code
    mayooran99
    Hi mayooran99,
    Welcome to MSDN forums.
    Since this is a 3rd-party library, we recommend that you directly contact the provider for help, or post your question in their own forums.
    Thanks for your understanding.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How do I create a new schedule via the Metadata Navigator Web interface?

    Hi All,
    Just wondering if it is possible to create a new schedule via the Metadata Navigator Web interface? What security rights do you need? Is this even possible? I have logged in as SUPERVISOR and It still looks like I can't do it.
    Thanks,
    Erik

    You can't. To create a new schedule, use the Operator or Designer tool.
    Craig

  • In VA01, how to automatically create a PO from a Sales Order

    In VA01, I create a sales order using item.cat. TAS; then, system generates a PR for the sales order.
    Is it possible to make the system create PO instead of PR?
    In item.cat. configuration, I tried to check the check box "Create PO Automatic."; however, the system still geerates a PR for me w/o generating any PO.
    Any idea would be appreciated.

    Hi Vitthavat
    In VOV6 for schedule line category CS  check wheather the following data has been maintained or not
    Order Type: NB
    Item Category: X
    Account assignment cat: 1
    In VOV7 , for item category TAS
    Check the box - Automatic PO generation
    Billing Relevance - F
    In MM02 , in Purchasing tab , check the automatic purchasing tab
    Use  ME59N for  Automatic PO creation
    Regards
    Srinath

  • How to automatically create a table on the next page?

    I was working on my Resume using tables on Pages 13.  When the first page is nearing to be filled in, I continue to put more details as I expected the table to be created automatically in the next page, like that of Microsoft Word but it did not happen.  What happened was the table continue to elongate only on the first page eventhough the last part cannot be seen anymore.  Please advise me how to do this, if possible.  Thanks.

    You need to make the Table Inline ie part of the text.
    Select the Table by clicking on the large dot top left > Cut > Click in the Text > Paste
    It will now flow from page to page, but there is a bug in Pages 5.2, which means text may not show in the table after a few pages.
    The table will also break at cell boundaries, it will not divide a cell over 2 pages.
    Peter

  • How To Automatically Create Planned Orders When Sales Order Is Saved

    I have a MTO sceanrio where we need to create planned orders when sales orders are saved without running MRP.
    I have the Planning Strategy Group set to 81 in the material master, but it didnt create the planned orders.
    Could you tell me other settings I should review to make the planned orders create automatically?

    Tony,
    At the "Requir. Classes" (OVZG) customizing screen, field "Automatic start of make-to-order in background mode" affects the automatic planning. See fields help doc. below.
        If you select this indicator, the system automatically carries out
        single-item, multi-level planning for a sales order if a sales order
        item is either created or changed.
        This function can only be used for make-to-order production.
    So check out the Req. Cl that yr Req. type (req. type is part of a strategy).
    BR,
    Elly

  • How to automatically create hyperlink destinations based on numbered list?

    I am very new to InDesign and am creating a template for an academic journal. Each article contains a list of references at the end and the references are cited in the main text (like what you see in Wikipedia if you are not familiar with scientfic journal articles). In exported HTML, the citation in the main text should be hyperlinked to the coressponding reference in the reference list. I have two questions:
    1) It is possible to ask paragraphy style to assign each numbered item a hyperlink destination? If this is possible, I can then manually inserted hyperlinks in the main text.
    2) one step further, is there any way (e.g. script) which can then insert hyperlink to those destinations based on pattern match? For example, in main text, the citation to reference #1 appear in the text as [1] which should be hyperlinked to reference #1.
    One more question, is there anyone who knows how academic journals handle the flow from InDesign to html? Certainly, the exported html cannot go directly online without further editing.
    Thank you.

    Hi Eric,
    I posted the script here. But it should be adjusted to your particular document. (Anyone with basic scripting knowledge can do this). I am sure it won’t work as it is. I assume that “comments” and “references” are in two different stories.
    Can I have the scripts from you (for a fee or free)?
    I don't sell my scripts: they're free.
    Can the scripts handle the pattens like these [3], [1-5], [3,4], [6, 8, 11-13]?
    This script can't, but another handles both single page numbers and page ranges like so:
    I can post it as well.
    Now I’d like to make one thing clear:
    I made a set of scripts for creating hyperlinks in InDesign documents for further exporting them to ePub/HTML. I can’t make a script that would work for everyone because all books are very different. I simply adjusted scripts for every book I had to work with (mainly changing GREP expressions and names of styles) and I have numerous variations of scripts. I can post them if someone is interested but you should be aware that they have to be reworked.

  • How to automatically create a script based on XML input

    I was wondering if it is possible to automatically generate a script in Flash itself, so like a plug in or something that I can build that will allow me to take in an xml document and generate scripts on certain frames in certain movie clips
    or is it better to create a swf where users load in an xml file and things just happen from that (would that be safe? could I guarentee that no one would be able to screw things up?)

    Here are the steps to do for your requirement.
    1) In design console, create a rule like user-type ="end user"
    2) Create a role using the above rule and also create an access policy to provision these two resources using the above role.
    2) In design console, go to resource object --> select resource2->dependency tab--> assign resource1.
    3) Try to provision resource 1..it should provision resource 2 as well.

  • How to automate creating movie poster frames?

    Hello.
    I have a fairly large movie library in itunes now, about 500 movies. I know how to right click a frame of a movie and set a poster frame. However this seems very slow and doesn't always work perfectly. Does anyone have any ideas or scripts that would automate the process? Even if it just sets the poster frame at 2 minutes into every movie it would be better than the 1st frame, Thanks for any ideas.

    I have not had my question answered yet. I am guessing its not possible. However the problem you mentioned is not an issue for me. I can pause a video, right click on it, and the bottom choice is to set a poster frame.
    What I want is to have something automate the process of picking a different point as the poster frame without having to select it on each and every video. I have 500 videos and this could take way too long. I would imagine there is an easier way to set all videos to use the 30 second mark as the poster frame.

  • How to automatically create a list of all pages on a site?

    Greetings,
    I am trying to find a way to create a list of all pages in a site folder.
    Site map creators don't do this.  They only list pages that are linked on other pages.
    The point of making a list is to create a page of links to all pages.
    Thanks

    >Well, whatever is easiest
    That depends on your skill level.
    >Easiest would be dreamweaver or another program.
    I don't know of a way to do this with DW, but Jon suggested a site mapping tool that might help.
    >SO I don;t have to go through the folders copying and pasting pages.
    The main advantage of a server side solution is that it's dynamic - as you add pages the links would update automatically. Otherwise you will need to manually manage this page.

Maybe you are looking for

  • Weird character substitutions ?

    When accessing one of my url parameters it somehow gets changed to the actual parameter name with the jsp tag around it. But not a regular jsp tag, this one has a question mark in it. String projectID = (String)request.getParameter("projectid") ; Rem

  • F110 Open Items wont close up

    While generating payment proposal i get all the lines registered in my system as open items... i have paid most of them but they still appear as open and i have to block them manually one by one... this occurs in Tx code F110... is this a common trou

  • HT2534 is this outdated or just me ???

    where is the "none" i'm 12 years old and i dont have a credit card and i dont think my dad would let me use his !!!

  • 3/7/2013 - Flash Player 11.7 Beta

    Flash Player Beta Channel Update The weekly Flash Player Beta update, 11.7.700.128, is now available for direct download and automatic installation via Background Update. To improve Flash Player security, we are making changes in Flash Player 11.7 th

  • Brand New iMac 24"

    I'm thinking about upgrading to a new iMac - 24", 3.06 ghz, 4 gig ram and so on. Are there any issues with those new machines running Logic Pro 8? Thanks for any responses. Paul