Skip to content

Add split-second-stopwatch exercise #2547

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 33 commits into from
Apr 15, 2025
Merged
Changes from 1 commit
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
6e77b12
Add `split-second-stopwatch` exercise
ErikSchierboom Mar 11, 2025
4a4b8cd
Update instructions.md
ErikSchierboom Mar 28, 2025
e04156c
Update instructions.md
ErikSchierboom Mar 28, 2025
b9ad75b
Update instructions.md
ErikSchierboom Mar 28, 2025
09fb9b1
Update introduction.md
ErikSchierboom Mar 28, 2025
45e8721
Update introduction.md
ErikSchierboom Mar 28, 2025
6ba2dc4
Update introduction.md
ErikSchierboom Mar 28, 2025
75ec01c
Minor changes
ErikSchierboom Mar 30, 2025
c2dde7b
Tweak introduction
ErikSchierboom Mar 30, 2025
9f60c46
Update introduction.md
ErikSchierboom Mar 31, 2025
4c038c8
Update instructions.md
ErikSchierboom Mar 31, 2025
31f0e40
Clarify instructions
ErikSchierboom Apr 5, 2025
c325d0f
Explain time format
ErikSchierboom Apr 5, 2025
3bbfb6a
Add stop state
ErikSchierboom Apr 6, 2025
653ada6
Add more test cases
ErikSchierboom Apr 6, 2025
432b543
Remove nesting
ErikSchierboom Apr 6, 2025
93cd3f4
Add state diagram
ErikSchierboom Apr 6, 2025
c801dbb
Start improving instructions
ErikSchierboom Apr 8, 2025
ded5b17
More simple
ErikSchierboom Apr 9, 2025
0f8be5a
Spice up intro
ErikSchierboom Apr 9, 2025
948fe9c
Update exercises/split-second-stopwatch/metadata.toml
ErikSchierboom Apr 9, 2025
f02d447
Fix canonical data
ErikSchierboom Apr 9, 2025
e6e7d9c
Fix uuids
ErikSchierboom Apr 9, 2025
10a7c15
Fix source url
ErikSchierboom Apr 9, 2025
76afe8d
Fix time
ErikSchierboom Apr 9, 2025
20911be
Update exercises/split-second-stopwatch/canonical-data.json
ErikSchierboom Apr 10, 2025
65f7f72
lowercase commands
ErikSchierboom Apr 10, 2025
d942dbd
Add more explanations to canonical data
ErikSchierboom Apr 10, 2025
8276e71
Remove trailing spaces from comments
ErikSchierboom Apr 11, 2025
4f1d130
Update canonical-data.json
ErikSchierboom Apr 13, 2025
3570883
Update canonical-data.json
ErikSchierboom Apr 13, 2025
4e0afd1
Improve stop previouslaps case
ErikSchierboom Apr 14, 2025
e09f643
Update introduction.md
ErikSchierboom Apr 15, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion exercises/split-second-stopwatch/canonical-data.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,14 @@
"comments": [
"All times are formatted in '<hours>:<minutes>:<seconds>' format.",
"Hours, minutes, and seconds are formatted using two digits.",
"Thus 4 hours, 23 minutes, and 6 seconds is represented as '04:23:06'."
"Thus 4 hours, 23 minutes, and 6 seconds is represented as '04:23:06'.",
"Tracks are free to convert these times into a format that is the most ",
"appropriate for their language.",
"",
"The advanceTime command is used to simulate the passage of time. ",
"Some tracks might be able to mock the system time, others might need ",
"to provide some time-representing value, while other might need to ",
"pass the current time as an argument to the other commands."
],
"cases": [
{
Expand Down
Loading