add turtle
Some checks failed
Deploy / build-and-deploy (push) Has been cancelled

This commit is contained in:
2025-09-16 17:37:43 +08:00
parent d9bcb81109
commit 4b59d1cf17
9 changed files with 277 additions and 176 deletions

View File

@@ -6,6 +6,17 @@ const pythonSource = ""
const javaSource =
"public class Main {\r\n public static void main(String[] args) {\r\n \r\n }\r\n}"
const turtleSource = `import turtle
t = turtle.Turtle()
t.speed(1)
for i in range(4):
t.forward(100)
t.left(90)
turtle.done()`
export const languageToId = {
c: 50,
cpp: 54,
@@ -18,4 +29,5 @@ export const sources = {
cpp: cppSource,
java: javaSource,
python: pythonSource,
turtle: turtleSource,
}