Discuss Scratch

endyourenite
Scratcher
100+ posts

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

SevenGuy777 wrote:

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
Hello there! I have fixed your script:
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






# Hide answers to prevent cheating. DO NOT SCROLL DOWN.



































if {answer} = 2 and {answer3} = 81 and {answer4} = 72 and {answer5} = 270 and {answer6} = 22
out That is correct!
end

Last edited by endyourenite (Sept. 10, 2024 17:29:28)

breakfast_for_dinner
Scratcher
1000+ posts

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

endyourenite wrote:

(#264)
Wait who are the judges?
i_eat_coffee and i

Last edited by breakfast_for_dinner (Sept. 10, 2024 18:00:34)

endyourenite
Scratcher
100+ posts

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

breakfast_for_dinner wrote:

endyourenite wrote:

(#264)
Wait who are the judges?
i_eat_coffee and i
Thanks for the information!
50_scratch_tabs
Scratcher
1000+ posts

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

breakfast_for_dinner wrote:

(#263)
i_eat_coffee and i
I know I entered in the contest, but if you do it again in the future, could I please be a judge?
i_eat_coffee
Scratcher
1000+ posts

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

bump
Catzcute4
Scratcher
500+ posts

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

wait, so who’s gonna make bad apple in Obscure

Last edited by Catzcute4 (Sept. 14, 2024 16:07:44)

50_scratch_tabs
Scratcher
1000+ posts

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

Thinking about how to make a quine in Obscure, but not sure exactly how I should go about it.
i_eat_coffee
Scratcher
1000+ posts

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

50_scratch_tabs wrote:

Thinking about how to make a quine in Obscure, but not sure exactly how I should go about it.
If you need any new features for it, I'll happily add them.
50_scratch_tabs
Scratcher
1000+ posts

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

i_eat_coffee wrote:

(#269)
If you need any new features for it, I'll happily add them.
Not entirely sure. I feel like there should be some way to have escaped characters in a string/arguments. For example to get just a space in a variable you have to do:
set space to x x
set space to {letter 2:space}
And I feel like although it is technically possible to make a quine, I'm not sure how to do it. Although, I just made a quine in Python that was easier to understand, so maybe I'll kind of make an Obscure version of that.

Is there a way to have strings with spaces in arrays? Can I do that in the array's definition or can I only do it with push?

Last edited by 50_scratch_tabs (Sept. 14, 2024 19:40:34)

50_scratch_tabs
Scratcher
1000+ posts

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

Not at all necessary for my quine, but would it be possible to add a side-panel for the documentation? Tabbing back and forth is getting annoying.
50_scratch_tabs
Scratcher
1000+ posts

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

This is really annoying in terms of escaping, could you please add:
{unicodeof:var}
{unicodeof:x}
{tounicode:var}
{tounicode:120}
Actually nevermind, I want to make the changes, then I'll post the updated interpreter.js. Could you please set up a github repo so I can git pull?

Last edited by 50_scratch_tabs (Sept. 14, 2024 20:14:47)

breakfast_for_dinner
Scratcher
1000+ posts

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

removed - reply to old post

Last edited by breakfast_for_dinner (Sept. 15, 2024 08:32:23)

56-s
Scratcher
500+ posts

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

Asp.net framework?
50_scratch_tabs
Scratcher
1000+ posts

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

56-s wrote:

(#274)
Asp.net framework?
What about it…? Obscure does not use it, if that's what you're asking.
blubby4
Scratcher
100+ posts

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

i_eat_coffee wrote:

50_scratch_tabs wrote:

Thinking about how to make a quine in Obscure, but not sure exactly how I should go about it.
If you need any new features for it, I'll happily add them.
Can we have a statement called “quine” and it outputs “quine”. That would make it easy
breakfast_for_dinner
Scratcher
1000+ posts

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

blubby4 wrote:

(#276)
Can we have a statement called “quine” and it outputs “quine”. That would make it easy
if i'm understanding correctly, can't you just do this?
log quine
blubby4
Scratcher
100+ posts

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

breakfast_for_dinner wrote:

blubby4 wrote:

(#276)
Can we have a statement called “quine” and it outputs “quine”. That would make it easy
if i'm understanding correctly, can't you just do this?
log quine
But that would output “quine”. You'd want it to output “log quine” instead.
breakfast_for_dinner
Scratcher
1000+ posts

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

blubby4 wrote:

(#278)
But that would output “quine”.
is that not what you wanted to print out?

blubby4 wrote:

(#276)
Can we have a statement called “quine” and it outputs “quine”.
blubby4
Scratcher
100+ posts

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

breakfast_for_dinner wrote:

blubby4 wrote:

(#278)
But that would output “quine”.
is that not what you wanted to print out?

blubby4 wrote:

(#276)
Can we have a statement called “quine” and it outputs “quine”.
A quine is a program that outputs its source code. A program that consists of
log quine
and outputs
quine
doesn't qualify.

A program that consists of
quine
and outputs
quine
does, since the program and the output are the same.
TheCreatorOfUnTV
Scratcher
1000+ posts

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

How did this get so popular? 14 pages in 9 days…
EDIT: Now 15 pages.

Last edited by TheCreatorOfUnTV (Sept. 15, 2024 23:53:23)

Powered by DjangoBB