From 2a8da454aae45ef4bc57e423077210f13c7a0fb2 Mon Sep 17 00:00:00 2001 From: Peter Tseng Date: Sat, 10 Sep 2016 17:12:25 -0700 Subject: [PATCH] move tournament between wordy and custom-set In the beginning, tournament was between parallel-letter-frequency and rectangles. Then, in #152, File I/O was removed so it was deemed to be easier. So we moved it to between grade-school and robot-simulator. However, #174 rightly points out that tournament is still a bit involved simply becaue there are multiple moving parts to it and the path to a solution that even passes the first test is a bit long. This placement is a general feeling from how much work I think one would need to do on the input before being able to get the expected output: In tournament, you have to look at each line, parse it, look at the result, increment two win/draw/loss counts (one for each team that played). then at the end calculate scores and sort. wordy also has string parsing, so let's try right after wordy. Closes #174 --- config.json | 2 +- problems.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config.json b/config.json index 10ef35b3e..5e5cf23a9 100644 --- a/config.json +++ b/config.json @@ -22,7 +22,6 @@ "roman-numerals", "all-your-base", "grade-school", - "tournament", "robot-simulator", "bracket-push", "queen-attack", @@ -32,6 +31,7 @@ "variable-length-quantity", "phone-number", "wordy", + "tournament", "custom-set", "anagram", "nucleotide-codons", diff --git a/problems.md b/problems.md index 10300f88f..51126fae6 100644 --- a/problems.md +++ b/problems.md @@ -41,7 +41,6 @@ rna-transcription | match, struct, str vs string roman-numerals | mutable, results, loops, struct, traits all-your-base | Result, enumerate, fold, map grade-school | struct, entry api, Vec, Option -tournament | enum, sorting, hashmap, structs robot-simulator | Immutability, enum bracket-push | From trait, stack or recursion queen-attack | struct, trait (optional), Result @@ -51,6 +50,7 @@ allergies | struct, enum, bitwise (probably), vectors, filter variable-length-quantity | Encodings, slices, bitwise, Result phone-number | option, format, unwrap_or, iters, match wordy | Result, string parsing, operators (optional) +tournament | enum, sorting, hashmap, structs custom-set | generic over type, vector, equality, struct ## Rust Gets Strange