Discuss Scratch
- Discussion Forums
- » Advanced Topics
- » Obscure - The brand-new, Turing-Complete, easy to use programming language
- i_eat_coffee
-
Scratcher
1000+ posts
Obscure - The brand-new, Turing-Complete, easy to use programming language
Maybe you could open-source this? I'd love to help with the interpreter. IIRC there's a way to turn a Glitch project into a GitHub repo.the project source is actually public on glitch
but, i mean, if u know Javascript pretty well and are willing to help out, I can create a github repo
- elip100
-
Scratcher
100+ posts
Obscure - The brand-new, Turing-Complete, easy to use programming language
Cool! You should add lists and dictionaries.
- i_eat_coffee
-
Scratcher
1000+ posts
Obscure - The brand-new, Turing-Complete, easy to use programming language
Cool! You should add lists and dictionaries.soo…
arrays and JSON objects?
sorry i don't speak fancy python language
- SevenGuy777
-
Scratcher
34 posts
Obscure - The brand-new, Turing-Complete, easy to use programming language
The math game I'm trying to make doesn't work, but I don't know if I did something wrong or there is a glitch.
Code:
ask What is 1+1? as answer
ask What is 9x9? as answer3
ask What about 12x6? as answer4
ask You cant use a calculator, what is 30x9? as answer5
ask Hmmm… 99 divided by 4.5? as answer6
if answer = 2 and answer3 = 81 and answer4 = 72 and answer5 = 270 and answer6 = 22
out “That is correct!”
end
Code:
ask What is 1+1? as answer
ask What is 9x9? as answer3
ask What about 12x6? as answer4
ask You cant use a calculator, what is 30x9? as answer5
ask Hmmm… 99 divided by 4.5? as answer6
if answer = 2 and answer3 = 81 and answer4 = 72 and answer5 = 270 and answer6 = 22
out “That is correct!”
end
- i_eat_coffee
-
Scratcher
1000+ posts
Obscure - The brand-new, Turing-Complete, easy to use programming language
The math game I'm trying to make doesn't work, but I don't know if I did something wrong or there is a glitch.what is the error you are receiving?
Code:
ask What is 1+1? as answer
ask What is 9x9? as answer3
ask What about 12x6? as answer4
ask You cant use a calculator, what is 30x9? as answer5
ask Hmmm… 99 divided by 4.5? as answer6
if answer = 2 and answer3 = 81 and answer4 = 72 and answer5 = 270 and answer6 = 22
out “That is correct!”
end
- blubby4
-
Scratcher
100+ posts
Obscure - The brand-new, Turing-Complete, easy to use programming language
I've been trying to make a quine, but I've run into some problems. Here's a list of what I think should be added:
- Escaping brackets like \{ and \}
- Variable concatenation (concat <value1> <value2> as <variable>)
- Outputting without a new line (outl, maybe?)
- Functions
- i_eat_coffee
-
Scratcher
1000+ posts
Obscure - The brand-new, Turing-Complete, easy to use programming language
I've been trying to make a quine, but I've run into some problems. Here's a list of what I think should be added:
- Escaping brackets like \{ and \}
- Variable concatenation (concat <value1> <value2> as <variable>)
- Outputting without a new line (outl, maybe?)
- Functions
- might add all of these tomorrow with the bugfix
but
you can already concat variables and add curlybrackets like this:
set a as {
set b as }
out {a}{b}
yeah, that was a double demonstration
- ThisIsTemp1
-
Scratcher
1000+ posts
Obscure - The brand-new, Turing-Complete, easy to use programming language
I'm having a bit of trouble with the input. This is the code that I put into it=
ask <Original Suggestion?> as <OG>
- i_eat_coffee
-
Scratcher
1000+ posts
Obscure - The brand-new, Turing-Complete, easy to use programming language
I'm having a bit of trouble with the input. This is the code that I put into it=ask <Original Suggestion?> as <OG>
ask Original Suggestion? as OG
- i_eat_coffee
-
Scratcher
1000+ posts
Obscure - The brand-new, Turing-Complete, easy to use programming language
The math game I'm trying to make doesn't work, but I don't know if I did something wrong or there is a glitch.i was trying to debug the interpreter all this time until i realised
Code:
ask What is 1+1? as answer
ask What is 9x9? as answer3
ask What about 12x6? as answer4
ask You cant use a calculator, what is 30x9? as answer5
ask Hmmm… 99 divided by 4.5? as answer6
if answer = 2 and answer3 = 81 and answer4 = 72 and answer5 = 270 and answer6 = 22
out “That is correct!”
end
the if function is literally trying to see if the word “answer” is the number “2”
not if the variable answer is the number “2”
not a bug with the interpreter, you just have to put them inside curly brackets for them to be considered variables:
ask What is 1+1? as answer
ask What is 9x9? as answer3
ask What about 12x6? as answer4
ask You cant use a calculator, what is 30x9? as answer5
ask Hmmm... 99 divided by 4.5? as answer6
if {answer} = 2 and {answer3} = 81 and {answer4} = 72 and {answer5} = 270 and {answer6} = 22
out "That is correct!"
end
edit: also you can get creative with showing an “incorrect” message
since i havent added the “else” function yet
ask What is 1+1? as answer
ask What is 9x9? as answer3
ask What about 12x6? as answer4
ask You cant use a calculator, what is 30x9? as answer5
ask Hmmm... 99 divided by 4.5? as answer6
def result as That is incorrect!
if {answer} = 2 and {answer3} = 81 and {answer4} = 72 and {answer5} = 270 and {answer6} = 22
def result as "That is correct!"
end
out {result}
Last edited by i_eat_coffee (Sept. 2, 2024 09:41:59)
- i_eat_coffee
-
Scratcher
1000+ posts
Obscure - The brand-new, Turing-Complete, easy to use programming language
I've been trying to make a quine, but I've run into some problems. Here's a list of what I think should be added:
- Escaping brackets like \{ and \}
- Variable concatenation (concat <value1> <value2> as <variable>)
- Outputting without a new line (outl, maybe?)
- Functions
- Added the first 3,
the functions will be a bit more tricky because currently, all blocks cannot be nested, so i'd focus on that before adding anything new
https://obscure.glitch.me/docs
- stinkman2
-
Scratcher
1 post
Obscure - The brand-new, Turing-Complete, easy to use programming language
-_-^^ seems like there is a bug with the interpreter executing nested while & if blocks. trying to fix itOk!
bitp
- 50_scratch_tabs
-
Scratcher
1000+ posts
Obscure - The brand-new, Turing-Complete, easy to use programming language
This is really cool, I haven't made programs with it because I'm on mobile, but this seems promising! One thing, maybe use something like set {} to {} instead of set as, because I'm pretty much every programming language, you use a syntax of variable = value… Maybe have it detect what is the variable and what is the value by detecting if it uses “as” or “to”?
- artemvideoscratch
-
Scratcher
24 posts
Obscure - The brand-new, Turing-Complete, easy to use programming language
documentation please?
- i_eat_coffee
-
Scratcher
1000+ posts
Obscure - The brand-new, Turing-Complete, easy to use programming language
documentation please?it's on the website
it has a navigation bar
- i_eat_coffee
-
Scratcher
1000+ posts
Obscure - The brand-new, Turing-Complete, easy to use programming language
might rewrite the entire thing
- i_eat_coffee
-
Scratcher
1000+ posts
Obscure - The brand-new, Turing-Complete, easy to use programming language
fixed nested ifs/whiles
- ninjaMAR
-
Scratcher
1000+ posts
Obscure - The brand-new, Turing-Complete, easy to use programming language
(#21)please doMaybe you could open-source this? I'd love to help with the interpreter. IIRC there's a way to turn a Glitch project into a GitHub repo.the project source is actually public on glitch
but, i mean, if u know Javascript pretty well and are willing to help out, I can create a github repo
- Syedbilal321
-
Scratcher
35 posts
Obscure - The brand-new, Turing-Complete, easy to use programming language
How does the thing even work?
- i_eat_coffee
-
Scratcher
1000+ posts
Obscure - The brand-new, Turing-Complete, easy to use programming language
How does the thing even work?it's… a programming language?
wdym?
- Discussion Forums
- » Advanced Topics
-
» Obscure - The brand-new, Turing-Complete, easy to use programming language










