Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #53898
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.albasani.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <jsf80238@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.172 |
| X-Spam-Level | * |
| X-Spam-Evidence | '*H*': 0.66; '*S*': 0.00; 'remind': 0.05; 'additionally': 0.09; 'exceeds': 0.09; 'oh,': 0.09; 'runs': 0.10; 'cc:addr:python-list': 0.11; 'random': 0.14; 'play.': 0.16; 'quarterback': 0.16; 'throw': 0.16; 'two,': 0.16; 'unexpected': 0.16; 'variable': 0.18; 'all,': 0.19; 'trying': 0.19; 'cc:addr:python.org': 0.22; 'him.': 0.24; 'cc:2**0': 0.24; 'nearly': 0.26; 'player': 0.26; 'least': 0.26; 'gets': 0.27; 'header:In-Reply-To:1': 0.27; 'idea': 0.28; 'appear': 0.29; 'said,': 0.30; 'message-id:@mail.gmail.com': 0.30; "i'm": 0.30; 'team.': 0.31; 'ball': 0.31; 'option.': 0.31; 'skip:q 20': 0.31; 'probably': 0.32; 'run': 0.32; 'quite': 0.32; 'week.': 0.33; "i'd": 0.34; 'could': 0.34; "can't": 0.35; 'equal': 0.35; 'one,': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'really': 0.36; 'acceptable': 0.36; 'picking': 0.36; 'surely': 0.36; 'next': 0.36; 'should': 0.36; 'half': 0.37; 'two': 0.37; 'winning': 0.38; 'fact': 0.38; 'track': 0.38; 'expect': 0.39; 'enough': 0.39; 'either': 0.39; 'most': 0.60; "you're": 0.61; 'field': 0.63; 'skip:n 10': 0.64; 'our': 0.64; 'pick': 0.64; 'strategy': 0.64; 'total': 0.65; 'positions': 0.67; 'stated': 0.69; 'limit': 0.70; 'anyone.': 0.74; 'further,': 0.74; 'score': 0.74; 'touch': 0.74; 'goal': 0.75; 'absence,': 0.84; 'football': 0.84; 'importance.': 0.84; 'played': 0.84; 'players.': 0.84; 'receiver,': 0.84; 'clueless': 0.91; 'coach': 0.91; 'league': 0.91; 'to:none': 0.92 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=fERpI8YY8tnmvjGighSNa2AMddS7Vr1cFhijorOuT44=; b=qq8Kj1iapdAs/Y0zvBqMqD99QrVRtZGbL3oELPFmZRtOmNNJgwU1MwinSvYZ872x6S nujahSQjmau+3E0/eoNApCRVMGVAGF61+VgOSc/bAgD7lspZ00M0SkLQbAwHqo1diyUG wfQp21E4ODRT6XW4jllTZ2xl+3B0OFJA5L6m4SSW3dWeEv50rnwjIOMr3pi/osIHABaC HhEQfLu2opprzjuwQphzp1jpF2MUI2OHEXrTCqO18bWFchfM91YHP87HeyeyUPs6VSzm cpvMrKZYl+OTcjya/OKFc9uC7rMUN2Xq2z+i7flqJe+IYVVE0zeqLQxU4NhhpOH9iPfs C6yg== |
| MIME-Version | 1.0 |
| X-Received | by 10.42.89.134 with SMTP id g6mr11817473icm.8.1378780059552; Mon, 09 Sep 2013 19:27:39 -0700 (PDT) |
| In-Reply-To | <l0k4bq$jpa$1@ger.gmane.org> |
| References | <CANy1k1gHFFgd82P5VZJEEZvWe_kHJvi2r1uqVh3Sr=nFZyazuQ@mail.gmail.com> <l0k4bq$jpa$1@ger.gmane.org> |
| Date | Mon, 9 Sep 2013 20:27:39 -0600 |
| Subject | Re: Weighted choices |
| From | Jason Friedman <jsf80238@gmail.com> |
| Cc | python-list <python-list@python.org> |
| Content-Type | text/plain; charset=UTF-8 |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.197.1378780062.5461.python-list@python.org> (permalink) |
| Lines | 38 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1378780062 news.xs4all.nl 15886 [2001:888:2000:d::a6]:51643 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:53898 |
Show key headers only | View raw
>> I coach a flag football team of 11-year-olds. A stated goal of the >> league is that every player should get nearly equal playing time and >> that winning is of secondary importance. That said, some players just >> can't throw the ball at all, and having a quarterback who cannot throw >> is no fun for anyone. The other coach and I will pick two players who >> will be the quarterback for any given snap. The other players can play >> any position (center, receiver, runner) other than quarterback. >> >> The game is 5-on-5 and our roster contains ten players, and we can >> expect a random player or two missing on any given week. I'm trying >> to come up with a system that causes at least one of those >> quarterbacks to be on the offensive field on every play. Further, to >> compensate for the fact that the quarterback gets to touch the ball on >> every play, we want the quarterbacks to appear at the non-quarterback >> positions somewhat less than the other players. >> >> This is all quite challenging. 11-year-olds are exquisitely tuned to >> unfairness and most have a keen idea of the play that will surely >> score a touchdown if only the clueless coach would let them run it. >> Oh, and the originator of this play will be the key >> quarterback/runner/receiver for the play. Oh, and in case the coach >> forgets, they will remind him. > > OK, you're well inside the "finite" domain. Also, you probably want less > than the "natural" randomness. I'd probably shuffle the potential > quarterbacks and the others in independent lists, and then pick one half of > each to form a team. The other half would play in the next game. > Additionally you can keep track of every player's total number of games and > games not played in a row, and apply a correction if either exceeds a limit > acceptable for a kid. PIcking half to play one game and half to play the other is not an option. For one, there really isn't a concept of half when a variable number of players are available on a given Saturday. For two, we could have an unexpected absence, or during the game an injury. For three, the parents paid to have their child play in the league, and the league runs until the end of October, not long enough for that strategy to work out.
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Weighted choices Jason Friedman <jsf80238@gmail.com> - 2013-09-09 20:27 -0600
csiph-web