Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us $3,400 per month for bandwidth bills alone, and since we don't believe in shoving popup ads to our registered users, we try to make the money back through forum registrations.
  • Post
  • Reply
beauty queen breakdown
Dec 21, 2010


I wrote a program that simulates Quidditch games this morning and am interested in running a fantasy league (where each player is the coach of their own Quidditch franchise). We'd run a draft in Google chat or something similar, and then simulate multiple games ending in a playoff.

The only 'rules change' between this and the books is a 50-point Snitch capture, which eliminates the 'Snitch capture is almost always a win' problem. Of course, I'd be willing to change that if everyone was against it.

Anyhoo, I didn't want to create a separate thread until I had some bites. PM me or reply back here if you don't have PM.

Adbot
ADBOT LOVES YOU

beauty queen breakdown
Dec 21, 2010


Not terribly. Players have a statistic related to their position ranging from 0-30. Once a team selects a roster, I punch it in to a text file and feed that to the simulation. The rest does itself -- it spits out a log file with the results and individual player statistics.

Here's an example output from the program using the godawful test names I wrote during unit tests. Rest assured this would not be the quality of player names in future:

60 Test - Test2 90


Test fields Seeko The Great at Seeker.
Chasers are Katie Bell, Chasey McTwo, and Treemang Chasethree.
Beaters are Beato the First and Beato the Second.
And finally, Keeper Bernie Keepsalot.

Test2 fields Seeko The Great2 at Seeker.
Chasers are Katie Bell2, Chasey McTwo2, and Treemang Chasethree2.
Beaters are Beato the First2 and Beato the Second2.
And finally, Keeper Bernie Keepsalot2.

[Test] Stats
Chaser Katie Bell attempted 11 shots, and scored 0 times.
6 were misses,
4 were saved by the Keeper, Bernie Keepsalot2
and Katie Bell was hit with a bludger on 1 other plays.

Chaser Chasey McTwo attempted 12 shots, and scored 2 times.
6 were misses,
3 were saved by the Keeper, Bernie Keepsalot2
and Chasey McTwo was hit with a bludger on 1 other plays.

Chaser Treemang Chasethree attempted 13 shots, and scored 4 times.
4 were misses,
4 were saved by the Keeper, Bernie Keepsalot2
and Treemang Chasethree was hit with a bludger on 1 other plays.
[Test2] Stats
Chaser Katie Bell2 attempted 11 shots, and scored 0 times.
4 were misses,
6 were saved by the Keeper, Bernie Keepsalot
and Katie Bell2 was hit with a bludger on 2 other plays.

Chaser Chasey McTwo2 attempted 12 shots, and scored 2 times.
6 were misses,
4 were saved by the Keeper, Bernie Keepsalot.

Chaser Treemang Chasethree2 attempted 13 shots, and scored 2 times.
6 were misses,
5 were saved by the Keeper, Bernie Keepsalot.


To end the game, Seeko The Great2 captured the Emerald Snitch!

And that wraps it up, ladies and gentlemen.

Test2 wins the match by a score of 90 - 60 !

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply