Skip to content

Commit 60ec6bf

Browse files
authored
Improve high scores experience (#502)
1 parent ad16036 commit 60ec6bf

File tree

2 files changed

+29
-8
lines changed

2 files changed

+29
-8
lines changed

config.json

+8-8
Original file line numberDiff line numberDiff line change
@@ -115,14 +115,6 @@
115115
"prerequisites": [],
116116
"difficulty": 2
117117
},
118-
{
119-
"slug": "high-scores",
120-
"name": "High Scores",
121-
"uuid": "7a7f05bd-16d1-4103-90c7-f3c8f7a08af0",
122-
"practices": [],
123-
"prerequisites": [],
124-
"difficulty": 3
125-
},
126118
{
127119
"slug": "house",
128120
"name": "House",
@@ -162,6 +154,14 @@
162154
"searching"
163155
]
164156
},
157+
{
158+
"slug": "high-scores",
159+
"name": "High Scores",
160+
"uuid": "7a7f05bd-16d1-4103-90c7-f3c8f7a08af0",
161+
"practices": [],
162+
"prerequisites": [],
163+
"difficulty": 4
164+
},
165165
{
166166
"slug": "darts",
167167
"name": "Darts",
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,23 @@
1+
local HighScores = {}
2+
3+
function HighScores:scores()
4+
5+
end
6+
7+
function HighScores:latest()
8+
9+
end
10+
11+
function HighScores:personal_best()
12+
13+
end
14+
15+
function HighScores:personal_top_three()
16+
17+
end
18+
119
return function(scores)
20+
local high_scores = {}
21+
setmetatable(high_scores, { __index = HighScores })
22+
return high_scores
223
end

0 commit comments

Comments
 (0)