Skip to content

Commit c040040

Browse files
Merge branch 'exercism:main' into main
2 parents 4544ce0 + 7367d5d commit c040040

File tree

164 files changed

+1020
-419
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

164 files changed

+1020
-419
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name: Run Configlet Sync
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: '0 0 15 * *'
7+
8+
jobs:
9+
call-gha-workflow:
10+
uses: exercism/github-actions/.github/workflows/configlet-sync.yml@main

config.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2394,13 +2394,27 @@
23942394
"parsing"
23952395
]
23962396
},
2397+
{
2398+
"slug": "flower-field",
2399+
"name": "Flower Field",
2400+
"uuid": "cb4da136-db03-44fa-a5c8-5235f273320c",
2401+
"practices": [],
2402+
"prerequisites": [],
2403+
"difficulty": 7,
2404+
"topics": [
2405+
"algorithms",
2406+
"arrays",
2407+
"games"
2408+
]
2409+
},
23972410
{
23982411
"slug": "minesweeper",
23992412
"name": "Minesweeper",
24002413
"uuid": "8bafe6c4-9154-4037-9070-7f57f91d495a",
24012414
"practices": [],
24022415
"prerequisites": [],
24032416
"difficulty": 7,
2417+
"status": "deprecated",
24042418
"topics": [
24052419
"algorithms",
24062420
"arrays",

exercises/concept/amusement-park/amusement-park.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* @returns {Visitor} the visitor that was created
1111
*/
1212
export function createVisitor(name, age, ticketId) {
13-
throw new Error('Please implement the createVisitor function.');
13+
throw new Error('Remove this line and implement the function');
1414
}
1515

1616
/**
@@ -20,7 +20,7 @@ export function createVisitor(name, age, ticketId) {
2020
* @returns {Visitor} the visitor without a ticket
2121
*/
2222
export function revokeTicket(visitor) {
23-
throw new Error('Please implement the revokeTicket function.');
23+
throw new Error('Remove this line and implement the function');
2424
}
2525

2626
/**
@@ -31,7 +31,7 @@ export function revokeTicket(visitor) {
3131
* @returns {string} ticket status
3232
*/
3333
export function ticketStatus(tickets, ticketId) {
34-
throw new Error('Please implement the ticketStatus function.');
34+
throw new Error('Remove this line and implement the function');
3535
}
3636

3737
/**
@@ -43,7 +43,7 @@ export function ticketStatus(tickets, ticketId) {
4343
* @returns {string} ticket status
4444
*/
4545
export function simpleTicketStatus(tickets, ticketId) {
46-
throw new Error('Please implement the simpleTicketStatus function.');
46+
throw new Error('Remove this line and implement the function');
4747
}
4848

4949
/**
@@ -53,5 +53,5 @@ export function simpleTicketStatus(tickets, ticketId) {
5353
* @returns {string | undefined} version
5454
*/
5555
export function gtcVersion(visitor) {
56-
throw new Error('Please implement the gtcVersion function.');
56+
throw new Error('Remove this line and implement the function');
5757
}

exercises/concept/bird-watcher/bird-watcher.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* @returns {number} total bird count
1212
*/
1313
export function totalBirdCount(birdsPerDay) {
14-
throw new Error('Please implement the totalBirdCount function');
14+
throw new Error('Remove this line and implement the function');
1515
}
1616

1717
/**
@@ -22,7 +22,7 @@ export function totalBirdCount(birdsPerDay) {
2222
* @returns {number} birds counted in the given week
2323
*/
2424
export function birdsInWeek(birdsPerDay, week) {
25-
throw new Error('Please implement the birdsInWeek function');
25+
throw new Error('Remove this line and implement the function');
2626
}
2727

2828
/**
@@ -33,5 +33,5 @@ export function birdsInWeek(birdsPerDay, week) {
3333
* @returns {void} should not return anything
3434
*/
3535
export function fixBirdCountLog(birdsPerDay) {
36-
throw new Error('Please implement the fixBirdCountLog function');
36+
throw new Error('Remove this line and implement the function');
3737
}

exercises/concept/coordinate-transformation/coordinate-transformation.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* translated coordinate pair in the form [x, y]
1616
*/
1717
export function translate2d(dx, dy) {
18-
throw new Error('Implement the translate2d function');
18+
throw new Error('Remove this line and implement the function');
1919
}
2020

2121
/**
@@ -29,7 +29,7 @@ export function translate2d(dx, dy) {
2929
* scaled coordinate pair in the form [x, y]
3030
*/
3131
export function scale2d(sx, sy) {
32-
throw new Error('Implement the scale2d function');
32+
throw new Error('Remove this line and implement the function');
3333
}
3434

3535
/**
@@ -43,7 +43,7 @@ export function scale2d(sx, sy) {
4343
* transformed coordinate pair in the form [x, y]
4444
*/
4545
export function composeTransform(f, g) {
46-
throw new Error('Implement the composeTransform function');
46+
throw new Error('Remove this line and implement the function');
4747
}
4848

4949
/**
@@ -56,5 +56,5 @@ export function composeTransform(f, g) {
5656
* if the arguments are the same on subsequent calls, or compute a new result if they are different.
5757
*/
5858
export function memoizeTransform(f) {
59-
throw new Error('Implement the memoizeTransform function');
59+
throw new Error('Remove this line and implement the function');
6060
}

exercises/concept/custom-signs/custom-signs.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
*/
1515

1616
export function buildSign(occasion, name) {
17-
throw new Error('Implement the buildSign function');
17+
throw new Error('Remove this line and implement the function');
1818
}
1919

2020
/**
@@ -26,7 +26,7 @@ export function buildSign(occasion, name) {
2626
*/
2727

2828
export function buildBirthdaySign(age) {
29-
throw new Error('Implement the buildBirthdaySign function');
29+
throw new Error('Remove this line and implement the function');
3030
}
3131

3232
/**
@@ -39,7 +39,7 @@ export function buildBirthdaySign(age) {
3939
*/
4040

4141
export function graduationFor(name, year) {
42-
throw new Error('Implement the graduationFor function');
42+
throw new Error('Remove this line and implement the function');
4343
}
4444

4545
/**
@@ -53,5 +53,5 @@ export function graduationFor(name, year) {
5353
*/
5454

5555
export function costOf(sign, currency) {
56-
throw new Error('Implement the costOf function');
56+
throw new Error('Remove this line and implement the function');
5757
}

exercises/concept/elyses-enchantments/enchantments.spec.js

Lines changed: 19 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -242,42 +242,34 @@ describe('make the bottom card disappear', () => {
242242
});
243243

244244
describe('check your work', () => {
245-
describe('an empty stack of cards', () => {
246-
test('has 0 cards', () => {
247-
const stack = [];
245+
test('an empty stack of cards has 0 cards', () => {
246+
const stack = [];
248247

249-
expect(checkSizeOfStack(stack, 0)).toBe(true);
250-
expect(checkSizeOfStack(stack, 1)).toBe(false);
251-
});
248+
expect(checkSizeOfStack(stack, 0)).toBe(true);
249+
expect(checkSizeOfStack(stack, 1)).toBe(false);
252250
});
253251

254-
describe('a stack with a single card', () => {
255-
test('has exactly 1 card', () => {
256-
const stack = [7];
252+
test('a stack with a single card has exactly 1 card', () => {
253+
const stack = [7];
257254

258-
expect(checkSizeOfStack(stack, 0)).toBe(false);
259-
expect(checkSizeOfStack(stack, 1)).toBe(true);
260-
expect(checkSizeOfStack(stack, 2)).toBe(false);
261-
});
255+
expect(checkSizeOfStack(stack, 0)).toBe(false);
256+
expect(checkSizeOfStack(stack, 1)).toBe(true);
257+
expect(checkSizeOfStack(stack, 2)).toBe(false);
262258
});
263259

264-
describe('a stack with the even cards', () => {
265-
test('has exactly 4 cards', () => {
266-
const stack = [2, 4, 6, 8];
260+
test('a stack with the even cards has exactly 4 cards', () => {
261+
const stack = [2, 4, 6, 8];
267262

268-
expect(checkSizeOfStack(stack, 3)).toBe(false);
269-
expect(checkSizeOfStack(stack, 4)).toBe(true);
270-
expect(checkSizeOfStack(stack, 5)).toBe(false);
271-
});
263+
expect(checkSizeOfStack(stack, 3)).toBe(false);
264+
expect(checkSizeOfStack(stack, 4)).toBe(true);
265+
expect(checkSizeOfStack(stack, 5)).toBe(false);
272266
});
273267

274-
describe('a stack with the odd cards', () => {
275-
test('has exactly 5 cards', () => {
276-
const stack = [1, 3, 5, 7, 9];
268+
test('a stack with the odd cards has exactly 5 cards', () => {
269+
const stack = [1, 3, 5, 7, 9];
277270

278-
expect(checkSizeOfStack(stack, 3)).toBe(false);
279-
expect(checkSizeOfStack(stack, 4)).toBe(false);
280-
expect(checkSizeOfStack(stack, 5)).toBe(true);
281-
});
271+
expect(checkSizeOfStack(stack, 3)).toBe(false);
272+
expect(checkSizeOfStack(stack, 4)).toBe(false);
273+
expect(checkSizeOfStack(stack, 5)).toBe(true);
282274
});
283275
});

exercises/concept/factory-sensors/factory-sensors.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export class OverheatingError extends Error {
1616
* @throws {Error}
1717
*/
1818
export function checkHumidityLevel(humidityPercentage) {
19-
throw new Error('Implement the checkHumidity function');
19+
throw new Error('Remove this line and implement the function');
2020
}
2121

2222
/**
@@ -26,7 +26,7 @@ export function checkHumidityLevel(humidityPercentage) {
2626
* @throws {ArgumentError|OverheatingError}
2727
*/
2828
export function reportOverheating(temperature) {
29-
throw new Error('Implement the reportOverheating function');
29+
throw new Error('Remove this line and implement the function');
3030
}
3131

3232
/**
@@ -41,5 +41,5 @@ export function reportOverheating(temperature) {
4141
* @throws {ArgumentError|OverheatingError|Error}
4242
*/
4343
export function monitorTheMachine(actions) {
44-
throw new Error('Implement the monitorTheMachine function');
44+
throw new Error('Remove this line and implement the function');
4545
}

exercises/concept/high-score-board/high-score-board.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @returns {Record<string, number>} new score board
88
*/
99
export function createScoreBoard() {
10-
throw new Error('Please implement the createScoreBoard function');
10+
throw new Error('Remove this line and implement the function');
1111
}
1212

1313
/**
@@ -19,7 +19,7 @@ export function createScoreBoard() {
1919
* @returns {Record<string, number>} updated score board
2020
*/
2121
export function addPlayer(scoreBoard, player, score) {
22-
throw new Error('Please implement the addPlayer function');
22+
throw new Error('Remove this line and implement the function');
2323
}
2424

2525
/**
@@ -30,7 +30,7 @@ export function addPlayer(scoreBoard, player, score) {
3030
* @returns {Record<string, number>} updated score board
3131
*/
3232
export function removePlayer(scoreBoard, player) {
33-
throw new Error('Please implement the removePlayer function');
33+
throw new Error('Remove this line and implement the function');
3434
}
3535

3636
/**
@@ -42,7 +42,7 @@ export function removePlayer(scoreBoard, player) {
4242
* @returns {Record<string, number>} updated score board
4343
*/
4444
export function updateScore(scoreBoard, player, points) {
45-
throw new Error('Please implement the updateScore function');
45+
throw new Error('Remove this line and implement the function');
4646
}
4747

4848
/**
@@ -52,5 +52,5 @@ export function updateScore(scoreBoard, player, points) {
5252
* @returns {Record<string, number>} updated score board
5353
*/
5454
export function applyMondayBonus(scoreBoard) {
55-
throw new Error('Please implement the applyMondayBonus function');
55+
throw new Error('Remove this line and implement the function');
5656
}

exercises/concept/lucky-numbers/lucky-numbers.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* @returns {number} sum of the two arrays
99
*/
1010
export function twoSum(array1, array2) {
11-
throw new Error('Implement the twoSum function');
11+
throw new Error('Remove this line and implement the function');
1212
}
1313

1414
/**
@@ -18,7 +18,7 @@ export function twoSum(array1, array2) {
1818
* @returns {boolean} whether the number is a palindrome or not
1919
*/
2020
export function luckyNumber(value) {
21-
throw new Error('Implement the luckyNumber function');
21+
throw new Error('Remove this line and implement the function');
2222
}
2323

2424
/**
@@ -29,5 +29,5 @@ export function luckyNumber(value) {
2929
* @returns {string} error message
3030
*/
3131
export function errorMessage(input) {
32-
throw new Error('Implement the errorMessage function');
32+
throw new Error('Remove this line and implement the function');
3333
}

0 commit comments

Comments
 (0)