-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample-project.js
More file actions
42 lines (35 loc) · 2.18 KB
/
Copy pathexample-project.js
File metadata and controls
42 lines (35 loc) · 2.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// ─────────────────────────────────────────────────────────────────
// stdin — Project Template
//
// Copy this into the right file in projects/:
// easy.js medium.js hard.js expert.js
//
// Paste it inside the array, with a comma after the previous entry.
// Do NOT add an id: field — IDs are auto-assigned.
// ─────────────────────────────────────────────────────────────────
{
title: 'My Project Title', // shown in sidebar + header
difficulty: 'medium', // easy | medium | hard | expert
topic: 'Strings', // used in filter panel
author: 'yourname', // optional — your username
// Shown in the Problem tab. HTML is supported for inline formatting.
description: 'Write a clear description of the task. '
+ 'Use <code>code</code> for identifiers and expected values.',
// At least one example required. output is used for auto-verification.
// For input() problems: input is what the user types (comma or \n separated).
// For no-input problems: omit the input field entirely.
// Multiline output: use \n between lines.
// Use '...' on its own line as a wildcard for long/variable sections.
examples: [
{ input: 'hello', output: 'HELLO', explanation: 'str.upper() converts all characters to uppercase.' },
{ input: 'Python', output: 'PYTHON' },
],
// Revealed one at a time. Go from vague to specific.
hints: ['Think about built-in string methods.', 'Try str.upper()'],
// Shown in the editor on first open. Scaffold without giving it away.
starter: 's = input("Enter text: ")\n# Your code here\n',
// Valid runnable Python 3. Used to verify output structure on input() problems.
solution: 's = input("Enter text: ")\nprint(s.upper())',
// Shown below the solution in the Solution tab. HTML supported.
explanation: '<code>str.upper()</code> returns a new uppercase string.',
},