make readme slightly nicer

This commit is contained in:
Jeff Wu 2019-03-10 22:26:24 -07:00
parent 8fd230da1c
commit c791adcb5a
2 changed files with 10 additions and 10 deletions

View File

@ -67,11 +67,11 @@ To update this file:
time cargo run --release -- --write-results-table
```
On the first 20000 seeds, we have these average scores and win rates:
On the first 20000 seeds, we have these scores and win rates (average ± standard error):
| | 2p (stderr) | 3p (stderr) | 4p (stderr) | 5p (stderr) |
| | 2p | 3p | 4p | 5p |
|---------|------------------|------------------|------------------|------------------|
| cheat | 24.8594 (0.0036) | 24.9785 (0.0012) | 24.9720 (0.0014) | 24.9557 (0.0018) |
| | 90.59 % (0.21 %) | 98.17 % (0.09 %) | 97.76 % (0.10 %) | 96.42 % (0.13 %) |
| info | 22.3249 (0.0128) | 24.7278 (0.0046) | 24.8919 (0.0029) | 24.8961 (0.0027) |
| | 09.81 % (0.21 %) | 80.54 % (0.28 %) | 91.67 % (0.20 %) | 91.90 % (0.19 %) |
| cheat | 24.8594 ± 0.0036 | 24.9785 ± 0.0012 | 24.9720 ± 0.0014 | 24.9557 ± 0.0018 |
| | 90.59 ± 0.21 % | 98.17 ± 0.09 % | 97.76 ± 0.10 % | 96.42 ± 0.13 % |
| info | 22.3249 ± 0.0128 | 24.7278 ± 0.0046 | 24.8919 ± 0.0029 | 24.8961 ± 0.0027 |
| | 09.81 ± 0.21 % | 80.54 ± 0.28 % | 91.67 ± 0.20 % | 91.90 ± 0.19 % |

View File

@ -165,11 +165,11 @@ fn get_results_table() -> String {
let n_trials = 20000;
let n_threads = 8;
let intro = format!("On the first {} seeds, we have these average scores and win rates:\n\n", n_trials);
let intro = format!("On the first {} seeds, we have these scores and win rates (average ± standard error):\n\n", n_trials);
let format_name = |x| format!(" {:7} ", x);
let format_players = |x| format!(" {}p (stderr) ", x);
let format_percent = |x, stderr| format!(" {:05.2} % ({:.2} %) ", x, stderr);
let format_score = |x, stderr| format!(" {:07.4} ({:.4}) ", x, stderr);
let format_players = |x| format!(" {}p ", x);
let format_percent = |x, stderr| format!(" {:05.2} ± {:.2} % ", x, stderr);
let format_score = |x, stderr| format!(" {:07.4} ± {:.4} ", x, stderr);
let space = String::from(" ");
let dashes = String::from("---------");
let dashes_long = String::from("------------------");