source:
trial.py
| Last change on this file was 12, checked in by David Owen <dsowen@fugue88.ws>, 9 years ago | |
|---|---|
|
|
| File size: 193 bytes | |
| Line | |
|---|---|
| 1 | #!/usr/bin/python3 |
| 2 | |
| 3 | import random |
| 4 | |
| 5 | import main |
| 6 | |
| 7 | wins = {} |
| 8 | |
| 9 | for i in range(1000): |
| 10 | random.seed(i) |
| 11 | winner = main.main(10) |
| 12 | x = wins.get(winner, 0) |
| 13 | wins[winner] = x + 1 |
| 14 | |
| 15 | print(wins) |
Note: See TracBrowser
for help on using the repository browser.
![(please configure the [header_logo] section in trac.ini)](/resistance/chrome/site/your_project_logo.png)