Discuss Scratch

i_eat_coffee
Scratcher
1000+ posts

Obscure - The brand-new, Turing-Complete, easy to use programming language

queen of page no edit

also
should i do a project or a video?
for a guide in the docs page
breakfast_for_dinner
Scratcher
1000+ posts

Obscure - The brand-new, Turing-Complete, easy to use programming language

i_eat_coffee wrote:

(#161)
should i do a project or a video?
for a guide in the docs page
you can rewind and fast-forward a video but it's easier (imo) to make a scratch project and to get feedback on it
Redstone1080
Scratcher
1000+ posts

Obscure - The brand-new, Turing-Complete, easy to use programming language

i_eat_coffee wrote:

gonna need to find a voice actor for the video tutorial
even tho i have a very expensive mic
i'll do it :3
i_eat_coffee
Scratcher
1000+ posts

Obscure - The brand-new, Turing-Complete, easy to use programming language

Redstone1080 wrote:

i_eat_coffee wrote:

gonna need to find a voice actor for the video tutorial
even tho i have a very expensive mic
i'll do it :3
can i have a demo pls
lemoncello1205
Scratcher
11 posts

Obscure - The brand-new, Turing-Complete, easy to use programming language

Uhh… I can sorta art
breakfast_for_dinner
Scratcher
1000+ posts

Obscure - The brand-new, Turing-Complete, easy to use programming language

lemoncello1205 wrote:

(#165)
Uhh… I can sorta art
fancy seeing you here
i think you misunderstood something, this topic isn't about art
ominouswolf
Scratcher
63 posts

Obscure - The brand-new, Turing-Complete, easy to use programming language

i_eat_coffee wrote:

breakfast_for_dinner wrote:

i'm sure you know about this issue, but if you don't, the escape codes are….buggy.

this code:
out \\{hello}
returns “\{hello}”, when it should be returning an error, because the hello variable doesn't exist. but even if it did, it would display “\” and the variable after it.
i actually did not know about that, thank you
lots of bugs been popping up ever since i used chatgpt to rewrite part of the interpreter :skull:
pls let me know if u find any other bugs, tomorrow first thing in the morning I'm fixing everything
ChatGPT can be used, But Id write it myself in my opinion. ChatGPT generated code tends to have bugs…
elip100
Scratcher
100+ posts

Obscure - The brand-new, Turing-Complete, easy to use programming language

I wrote this code for the contest. It is completely valid but it stops for no reason after the first question due to a bug. Please fix!

clear
out TRIVIA CHALLENGE












set comment to DO NOT SCROLL BENEATH THIS LINE OR ANSWERS WILL BE REVEALED!!!























delay 0.1
ask Press enter to play! (make sure you can see output) as output

set score to 0

clear
set q to What is the capital of France?
set a to Paris
set b to London
set c to Rome
set d to Berlin
set answer to a
out {q}
out a) {a}
out b) {b}
out c) {c}
out d) {d}
delay 0.1
ask answer? (a/b/c/d) as input
delay 0.1
if {input} = {answer}
add {score} 1 as score
out Correct! Score: {score}
end
if {input} != {answer}
out Incorrect! Score: {score}
delay 2
clear
set q to Who wrote the play Romeo and Juliet?
set a to William Shakespeare
set b to Charles Dickens
set c to Mark Twain
set d to Jane Austen
set answer to a
out {q}
out a) {a}
out b) {b}
out c) {c}
out d) {d}
delay 0.1
ask answer? (a/b/c/d) as input
delay 0.1
if {input} = {answer}
add {score} 1 as score
out Correct! Score: {score}
end
if {input} != {answer}
out Incorrect! Score: {score}
delay 2
clear
set q to What is the largest planet in our solar system?
set a to Earth
set b to Mars
set c to Jupiter
set d to Saturn
set answer to c
out {q}
out a) {a}
out b) {b}
out c) {c}
out d) {d}
delay 0.1
ask answer? (a/b/c/d) as input
delay 0.1
if {input} = {answer}
add {score} 1 as score
out Correct! Score: {score}
end
if {input} != {answer}
out Incorrect! Score: {score}
delay 2
clear
set q to Which element has the chemical symbol 'O'?
set a to Gold
set b to Oxygen
set c to Silver
set d to Hydrogen
set answer to b
out {q}
out a) {a}
out b) {b}
out c) {c}
out d) {d}
delay 0.1
ask answer? (a/b/c/d) as input
delay 0.1
if {input} = {answer}
add {score} 1 as score
out Correct! Score: {score}
end
if {input} != {answer}
out Incorrect! Score: {score}
delay 2
clear
set q to What is the smallest prime number?
set a to 1
set b to 2
set c to 3
set d to 5
set answer to b
out {q}
out a) {a}
out b) {b}
out c) {c}
out d) {d}
delay 0.1
ask answer? (a/b/c/d) as input
delay 0.1
if {input} = {answer}
add {score} 1 as score
out Correct! Score: {score}
end
if {input} != {answer}
out Incorrect! Score: {score}
delay 2
clear
set q to Who painted the Mona Lisa?
set a to Vincent van Gogh
set b to Pablo Picasso
set c to Leonardo da Vinci
set d to Claude Monet
set answer to c
out {q}
out a) {a}
out b) {b}
out c) {c}
out d) {d}
delay 0.1
ask answer? (a/b/c/d) as input
delay 0.1
if {input} = {answer}
add {score} 1 as score
out Correct! Score: {score}
end
if {input} != {answer}
out Incorrect! Score: {score}
delay 2
clear
set q to What is the capital city of Japan?
set a to Beijing
set b to Seoul
set c to Tokyo
set d to Bangkok
set answer to c
out {q}
out a) {a}
out b) {b}
out c) {c}
out d) {d}
delay 0.1
ask answer? (a/b/c/d) as input
delay 0.1
if {input} = {answer}
add {score} 1 as score
out Correct! Score: {score}
end
if {input} != {answer}
out Incorrect! Score: {score}
delay 2
clear
set q to What is the chemical formula for water?
set a to CO2
set b to H2O
set c to NaCl
set d to O2
set answer to b
out {q}
out a) {a}
out b) {b}
out c) {c}
out d) {d}
delay 0.1
ask answer? (a/b/c/d) as input
delay 0.1
if {input} = {answer}
add {score} 1 as score
out Correct! Score: {score}
end
if {input} != {answer}
out Incorrect! Score: {score}
delay 2
clear
set q to Which planet is known as the Red Planet?
set a to Venus
set b to Mars
set c to Mercury
set d to Neptune
set answer to b
out {q}
out a) {a}
out b) {b}
out c) {c}
out d) {d}
delay 0.1
ask answer? (a/b/c/d) as input
delay 0.1
if {input} = {answer}
add {score} 1 as score
out Correct! Score: {score}
end
if {input} != {answer}
out Incorrect! Score: {score}
delay 2
clear
set q to What is the largest ocean on Earth?
set a to Atlantic Ocean
set b to Indian Ocean
set c to Arctic Ocean
set d to Pacific Ocean
set answer to d
out {q}
out a) {a}
out b) {b}
out c) {c}
out d) {d}
delay 0.1
ask answer? (a/b/c/d) as input
delay 0.1
if {input} = {answer}
add {score} 1 as score
out Correct! Score: {score}
end
if {input} != {answer}
out Incorrect! Score: {score}
delay 2
clear
out COMPLETE!
out You finished with a score of {score}/10
lemoncello1205
Scratcher
11 posts

Obscure - The brand-new, Turing-Complete, easy to use programming language

breakfast_for_dinner wrote:

lemoncello1205 wrote:

(#165)
Uhh… I can sorta art
fancy seeing you here
i think you misunderstood something, this topic isn't about art
project tutorial
breakfast_for_dinner
Scratcher
1000+ posts

Obscure - The brand-new, Turing-Complete, easy to use programming language

lemoncello1205 wrote:

(#169)
project tutorial
i'm not understanding, why do you need art for a tutorial on how to use a programming language? /genq
lemoncello1205
Scratcher
11 posts

Obscure - The brand-new, Turing-Complete, easy to use programming language

idk
SevenGuy777
Scratcher
29 posts

Obscure - The brand-new, Turing-Complete, easy to use programming language

breakfast_for_dinner wrote:

lemoncello1205 wrote:

(#169)
project tutorial
i'm not understanding, why do you need art for a tutorial on how to use a programming language? /genq
I mean you can't really have a tutorial without art unless you just put text
Eleven_Penguins
Scratcher
7 posts

Obscure - The brand-new, Turing-Complete, easy to use programming language

how do you learn how to code on this programming language website?
breakfast_for_dinner
Scratcher
1000+ posts

Obscure - The brand-new, Turing-Complete, easy to use programming language

Eleven_Penguins wrote:

(#173)
how do you learn how to code on this programming language website?
you can read the documentation
Eleven_Penguins
Scratcher
7 posts

Obscure - The brand-new, Turing-Complete, easy to use programming language

i_eat_coffee wrote:


Try it out: https://obscure.glitch.me/
I want to see what fun stuff y'all come up with


Obscure is a brand new programming language that I created
It's currently still in development, but works for the most part

To try it out:
1. Enter the website, you will see 3 sample projects

2. Open any project or create a new one to try it out

3. In the editor, you can click “Run” to run the project

4. You can also hit “Save” to save it, every project is stored
in your browser and will be there when you enter the page again

5. The full guide that shows all functions & their explanation is
on the navigation bar, called the Documentation

Please share on this topic any fun games or apps you make!
is there a way to make sprites?
DifferentDance8
Scratcher
1000+ posts

Obscure - The brand-new, Turing-Complete, easy to use programming language

Sir-Cats-A-Lot wrote:

If it wasn't clear, it wanted me to give a fake McAfee my email, name, etc. It redirected me to the website to put it in. I refused. (Why do people do this stuff?)
that kinda stuff isn't even allowed on glitch, you should've reported it to glitch rather than avoiding anything using it
i_eat_coffee
Scratcher
1000+ posts

Obscure - The brand-new, Turing-Complete, easy to use programming language

Eleven_Penguins wrote:

i_eat_coffee wrote:


Try it out: https://obscure.glitch.me/
I want to see what fun stuff y'all come up with


Obscure is a brand new programming language that I created
It's currently still in development, but works for the most part

To try it out:
1. Enter the website, you will see 3 sample projects

2. Open any project or create a new one to try it out

3. In the editor, you can click “Run” to run the project

4. You can also hit “Save” to save it, every project is stored
in your browser and will be there when you enter the page again

5. The full guide that shows all functions & their explanation is
on the navigation bar, called the Documentation

Please share on this topic any fun games or apps you make!
is there a way to make sprites?
no, it's not a visual programming language
you can create variables tho
:+1:
i_eat_coffee
Scratcher
1000+ posts

Obscure - The brand-new, Turing-Complete, easy to use programming language

ominouswolf wrote:

i_eat_coffee wrote:

breakfast_for_dinner wrote:

i'm sure you know about this issue, but if you don't, the escape codes are….buggy.

this code:
out \\{hello}
returns “\{hello}”, when it should be returning an error, because the hello variable doesn't exist. but even if it did, it would display “\” and the variable after it.
i actually did not know about that, thank you
lots of bugs been popping up ever since i used chatgpt to rewrite part of the interpreter :skull:
pls let me know if u find any other bugs, tomorrow first thing in the morning I'm fixing everything
ChatGPT can be used, But Id write it myself in my opinion. ChatGPT generated code tends to have bugs…
Yeah, I know, it's not like I didn't use it to rewrite part of an interpreter…
but I usually don't use unmodified ChatGPT code because of bugs
i_eat_coffee
Scratcher
1000+ posts

Obscure - The brand-new, Turing-Complete, easy to use programming language

i added:
replace <item number> of <array name> as <value>


pls test it and lmk
i_eat_coffee
Scratcher
1000+ posts

Obscure - The brand-new, Turing-Complete, easy to use programming language

elip100 wrote:

I wrote this code for the contest. It is completely valid but it stops for no reason after the first question due to a bug. Please fix!

clear
out TRIVIA CHALLENGE












set comment to DO NOT SCROLL BENEATH THIS LINE OR ANSWERS WILL BE REVEALED!!!























delay 0.1
ask Press enter to play! (make sure you can see output) as output

set score to 0

clear
set q to What is the capital of France?
set a to Paris
set b to London
set c to Rome
set d to Berlin
set answer to a
out {q}
out a) {a}
out b) {b}
out c) {c}
out d) {d}
delay 0.1
ask answer? (a/b/c/d) as input
delay 0.1
if {input} = {answer}
add {score} 1 as score
out Correct! Score: {score}
end
if {input} != {answer}
out Incorrect! Score: {score}
delay 2
clear
set q to Who wrote the play Romeo and Juliet?
set a to William Shakespeare
set b to Charles Dickens
set c to Mark Twain
set d to Jane Austen
set answer to a
out {q}
out a) {a}
out b) {b}
out c) {c}
out d) {d}
delay 0.1
ask answer? (a/b/c/d) as input
delay 0.1
if {input} = {answer}
add {score} 1 as score
out Correct! Score: {score}
end
if {input} != {answer}
out Incorrect! Score: {score}
delay 2
clear
set q to What is the largest planet in our solar system?
set a to Earth
set b to Mars
set c to Jupiter
set d to Saturn
set answer to c
out {q}
out a) {a}
out b) {b}
out c) {c}
out d) {d}
delay 0.1
ask answer? (a/b/c/d) as input
delay 0.1
if {input} = {answer}
add {score} 1 as score
out Correct! Score: {score}
end
if {input} != {answer}
out Incorrect! Score: {score}
delay 2
clear
set q to Which element has the chemical symbol 'O'?
set a to Gold
set b to Oxygen
set c to Silver
set d to Hydrogen
set answer to b
out {q}
out a) {a}
out b) {b}
out c) {c}
out d) {d}
delay 0.1
ask answer? (a/b/c/d) as input
delay 0.1
if {input} = {answer}
add {score} 1 as score
out Correct! Score: {score}
end
if {input} != {answer}
out Incorrect! Score: {score}
delay 2
clear
set q to What is the smallest prime number?
set a to 1
set b to 2
set c to 3
set d to 5
set answer to b
out {q}
out a) {a}
out b) {b}
out c) {c}
out d) {d}
delay 0.1
ask answer? (a/b/c/d) as input
delay 0.1
if {input} = {answer}
add {score} 1 as score
out Correct! Score: {score}
end
if {input} != {answer}
out Incorrect! Score: {score}
delay 2
clear
set q to Who painted the Mona Lisa?
set a to Vincent van Gogh
set b to Pablo Picasso
set c to Leonardo da Vinci
set d to Claude Monet
set answer to c
out {q}
out a) {a}
out b) {b}
out c) {c}
out d) {d}
delay 0.1
ask answer? (a/b/c/d) as input
delay 0.1
if {input} = {answer}
add {score} 1 as score
out Correct! Score: {score}
end
if {input} != {answer}
out Incorrect! Score: {score}
delay 2
clear
set q to What is the capital city of Japan?
set a to Beijing
set b to Seoul
set c to Tokyo
set d to Bangkok
set answer to c
out {q}
out a) {a}
out b) {b}
out c) {c}
out d) {d}
delay 0.1
ask answer? (a/b/c/d) as input
delay 0.1
if {input} = {answer}
add {score} 1 as score
out Correct! Score: {score}
end
if {input} != {answer}
out Incorrect! Score: {score}
delay 2
clear
set q to What is the chemical formula for water?
set a to CO2
set b to H2O
set c to NaCl
set d to O2
set answer to b
out {q}
out a) {a}
out b) {b}
out c) {c}
out d) {d}
delay 0.1
ask answer? (a/b/c/d) as input
delay 0.1
if {input} = {answer}
add {score} 1 as score
out Correct! Score: {score}
end
if {input} != {answer}
out Incorrect! Score: {score}
delay 2
clear
set q to Which planet is known as the Red Planet?
set a to Venus
set b to Mars
set c to Mercury
set d to Neptune
set answer to b
out {q}
out a) {a}
out b) {b}
out c) {c}
out d) {d}
delay 0.1
ask answer? (a/b/c/d) as input
delay 0.1
if {input} = {answer}
add {score} 1 as score
out Correct! Score: {score}
end
if {input} != {answer}
out Incorrect! Score: {score}
delay 2
clear
set q to What is the largest ocean on Earth?
set a to Atlantic Ocean
set b to Indian Ocean
set c to Arctic Ocean
set d to Pacific Ocean
set answer to d
out {q}
out a) {a}
out b) {b}
out c) {c}
out d) {d}
delay 0.1
ask answer? (a/b/c/d) as input
delay 0.1
if {input} = {answer}
add {score} 1 as score
out Correct! Score: {score}
end
if {input} != {answer}
out Incorrect! Score: {score}
delay 2
clear
out COMPLETE!
out You finished with a score of {score}/10


It's not a bug, you simply forgot to put “end” after every if statement…


I fixed it for you:

clear
out TRIVIA CHALLENGE












set comment to DO NOT SCROLL BENEATH THIS LINE OR ANSWERS WILL BE REVEALED!!!























delay 0.1
ask Press enter to play! (make sure you can see output) as output

set score to 0

clear
set q to What is the capital of France?
set a to Paris
set b to London
set c to Rome
set d to Berlin
set answer to a
out {q}
out a) {a}
out b) {b}
out c) {c}
out d) {d}
delay 0.1
ask answer? (a/b/c/d) as input
delay 0.1
if {input} = {answer}
add {score} 1 as score
out Correct! Score: {score}
end
if {input} != {answer}
out Incorrect! Score: {score}
end
delay 2
clear
set q to Who wrote the play Romeo and Juliet?
set a to William Shakespeare
set b to Charles Dickens
set c to Mark Twain
set d to Jane Austen
set answer to a
out {q}
out a) {a}
out b) {b}
out c) {c}
out d) {d}
delay 0.1
ask answer? (a/b/c/d) as input
delay 0.1
if {input} = {answer}
add {score} 1 as score
out Correct! Score: {score}
end
if {input} != {answer}
out Incorrect! Score: {score}
end
delay 2
clear
set q to What is the largest planet in our solar system?
set a to Earth
set b to Mars
set c to Jupiter
set d to Saturn
set answer to c
out {q}
out a) {a}
out b) {b}
out c) {c}
out d) {d}
delay 0.1
ask answer? (a/b/c/d) as input
delay 0.1
if {input} = {answer}
add {score} 1 as score
out Correct! Score: {score}
end
if {input} != {answer}
out Incorrect! Score: {score}
end
delay 2
clear
set q to Which element has the chemical symbol 'O'?
set a to Gold
set b to Oxygen
set c to Silver
set d to Hydrogen
set answer to b
out {q}
out a) {a}
out b) {b}
out c) {c}
out d) {d}
delay 0.1
ask answer? (a/b/c/d) as input
delay 0.1
if {input} = {answer}
add {score} 1 as score
out Correct! Score: {score}
end
if {input} != {answer}
out Incorrect! Score: {score}
end
delay 2
clear
set q to What is the smallest prime number?
set a to 1
set b to 2
set c to 3
set d to 5
set answer to b
out {q}
out a) {a}
out b) {b}
out c) {c}
out d) {d}
delay 0.1
ask answer? (a/b/c/d) as input
delay 0.1
if {input} = {answer}
add {score} 1 as score
out Correct! Score: {score}
end
if {input} != {answer}
out Incorrect! Score: {score}
end
delay 2
clear
set q to Who painted the Mona Lisa?
set a to Vincent van Gogh
set b to Pablo Picasso
set c to Leonardo da Vinci
set d to Claude Monet
set answer to c
out {q}
out a) {a}
out b) {b}
out c) {c}
out d) {d}
delay 0.1
ask answer? (a/b/c/d) as input
delay 0.1
if {input} = {answer}
add {score} 1 as score
out Correct! Score: {score}
end
if {input} != {answer}
out Incorrect! Score: {score}
end
delay 2
clear
set q to What is the capital city of Japan?
set a to Beijing
set b to Seoul
set c to Tokyo
set d to Bangkok
set answer to c
out {q}
out a) {a}
out b) {b}
out c) {c}
out d) {d}
delay 0.1
ask answer? (a/b/c/d) as input
delay 0.1
if {input} = {answer}
add {score} 1 as score
out Correct! Score: {score}
end
if {input} != {answer}
out Incorrect! Score: {score}
end
delay 2
clear
set q to What is the chemical formula for water?
set a to CO2
set b to H2O
set c to NaCl
set d to O2
set answer to b
out {q}
out a) {a}
out b) {b}
out c) {c}
out d) {d}
delay 0.1
ask answer? (a/b/c/d) as input
delay 0.1
if {input} = {answer}
add {score} 1 as score
out Correct! Score: {score}
end
if {input} != {answer}
out Incorrect! Score: {score}
end
delay 2
clear
set q to Which planet is known as the Red Planet?
set a to Venus
set b to Mars
set c to Mercury
set d to Neptune
set answer to b
out {q}
out a) {a}
out b) {b}
out c) {c}
out d) {d}
delay 0.1
ask answer? (a/b/c/d) as input
delay 0.1
if {input} = {answer}
add {score} 1 as score
out Correct! Score: {score}
end
if {input} != {answer}
out Incorrect! Score: {score}
end
delay 2
clear
set q to What is the largest ocean on Earth?
set a to Atlantic Ocean
set b to Indian Ocean
set c to Arctic Ocean
set d to Pacific Ocean
set answer to d
out {q}
out a) {a}
out b) {b}
out c) {c}
out d) {d}
delay 0.1
ask answer? (a/b/c/d) as input
delay 0.1
if {input} = {answer}
add {score} 1 as score
out Correct! Score: {score}
end
if {input} != {answer}
out Incorrect! Score: {score}
end
delay 2
clear
out COMPLETE!
out You finished with a score of {score}/10

Powered by DjangoBB