Discuss Scratch

peakedpinnacles
Scratcher
35 posts

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

Hello, could you review this
 
array one two three as details
out Create your new shop now: Manage orders, calculate prices and more!
ask Shop name (Input): as shopname
out {shopname} will be very succesful!
ask Do you have an order? (Y) or (N): as order
if {order} = Y
ask What is detail one? (Input): as detailone
replace 1 of details as {detailone}
out Saved!
ask What is detail two? (Input): as detailtwo
replace 2 of details as {detailtwo}
out Saved!
ask What is detail three? (Input): as detailthree
replace 3 of details as {detailthree}
out Saved!
end
ask Calculate price? (Y) or (N): as calculate
if {calculate} = Y
ask What is the price for detail one? (Input): as firstprice
out Saved!
ask What is the price for detail two? (Input): as secondprice
out Saved!
ask What is the price for detail three? (Input): as thirdprice
out Saved!
add {firstprice} {secondprice} as a
add {a} {thirdprice} as finalprice
out The total is ${finalprice}
end
out {shopname}
out Thanks for coming!
out Services offered:
out {detailone} - {firstprice}
out {detailtwo} - {secondprice}
out {detailthree} - {thirdprice}
out Total:
out ${finalprice}
BigNate469
Scratcher
1000+ posts

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

peakedpinnacles wrote:

Hello, could you review this
snip of long code
I got the following error when I ran the code:
Error: Undefined variable: detailone

This comes from you setting the “details” as detailone, detailtwo, and detailthree in one place, but in another you set them to firstprice, secondprice, and thirdprice and your code doesn't check if any of those variables are null or undefined before trying to output.

Last edited by BigNate469 (Sept. 24, 2024 01:01:33)

catfaceQWERTY
Scratcher
2 posts

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

I still don't know how to use this
endyourenite
Scratcher
100+ posts

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

catfaceQWERTY wrote:

I still don't know how to use this
Read document
endyourenite
Scratcher
100+ posts

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

i_eat_coffee wrote:

2024 Contest Results (Tie?)
5 projects have been rated by Breakfast & Coffee

TOP OF THE LIST:
https://scratch.mit.edu/discuss/post/8123260/
davidtheplatform created an awesome brainf interpreter

50_scratch_tabs created an awesome tic tac toe game
https://scratch.mit.edu/discuss/post/8122762/

I honestly cannot decide which project takes the crown, the brainf interpreter had so much effort put into it and it works flawlessly, while the tic tac toe game is really well made - a visual game without a canvas, simply using text. (they had to create a parser for the board that figures out what goes where)
Although the brainf interpreter probably actually took a lot longer and I think is the first working interpreter of a real programming language in Obscure. It's really impressive

I'll think about it, and I'll post the results tomorrow.
Wait…. Would all the entries be ranked? Theres only 5…
i_eat_coffee
Scratcher
1000+ posts

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

what should the obscure file extension be?
project.obscure?
:hmm:
i_eat_coffee
Scratcher
1000+ posts

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

WINNER: Brainf interpreter by @davidtheplatform
Everyone will receive a participation certificate.

Thanks to everyone else who participated. Comment on my profile to receive your award.
(Edit: comment on my profile to receive your participation certificate also)

Last edited by i_eat_coffee (Sept. 24, 2024 16:57:54)

ajskateboarder
Scratcher
1000+ posts

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

i_eat_coffee wrote:

what should the obscure file extension be?
project.obscure?
:hmm:
Wayy too long, something like .ob or .obs would be good
i_eat_coffee
Scratcher
1000+ posts

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

ajskateboarder wrote:

i_eat_coffee wrote:

what should the obscure file extension be?
project.obscure?
:hmm:
Wayy too long, something like .ob or .obs would be good
already exists
endyourenite
Scratcher
100+ posts

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

i_eat_coffee wrote:

ajskateboarder wrote:

i_eat_coffee wrote:

what should the obscure file extension be?
project.obscure?
:hmm:
Wayy too long, something like .ob or .obs would be good
already exists
.obsp?
8to16
Scratcher
1000+ posts

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

endyourenite wrote:

i_eat_coffee wrote:

ajskateboarder wrote:

i_eat_coffee wrote:

what should the obscure file extension be?
project.obscure?
:hmm:
Wayy too long, something like .ob or .obs would be good
already exists
.obsp?
.ocr
breakfast_for_dinner
Scratcher
1000+ posts

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

8to16 wrote:

.ocr
……??
i_eat_coffee
Scratcher
1000+ posts

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

breakfast_for_dinner wrote:

8to16 wrote:

.ocr
……??
obscure i think
8to16
Scratcher
1000+ posts

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

i_eat_coffee wrote:

(#314)
obscure i think
indeed
Catzcute4
Scratcher
500+ posts

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

8to16 wrote:

endyourenite wrote:

i_eat_coffee wrote:

ajskateboarder wrote:

i_eat_coffee wrote:

what should the obscure file extension be?
project.obscure?
:hmm:
Wayy too long, something like .ob or .obs would be good
already exists
.obsp?
.ocr
.obsc
i_eat_coffee
Scratcher
1000+ posts

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

^ why shouldn't there just be two file types, .obs and .cure and you have to upload both of them to load a project
breakfast_for_dinner
Scratcher
1000+ posts

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

i_eat_coffee wrote:

(#317)
^ why shouldn't there just be two file types, .obs and .cure and you have to upload both of them to load a project
what's in both files
BigNate469
Scratcher
1000+ posts

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

i_eat_coffee wrote:

^ why shouldn't there just be two file types, .obs and .cure and you have to upload both of them to load a project
Or just ignore file extension and go by MIME type (application/obscure, text/plain)

Last edited by BigNate469 (Sept. 24, 2024 21:08:13)

50_scratch_tabs
Scratcher
500+ posts

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

ajskateboarder wrote:

(#309)
Wayy too long, something like .ob or .obs would be good
File extensions aren't limited-one of Scratch's file types is .sprite3
starlightsparker
Scratcher
1000+ posts

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

i_eat_coffee wrote:

obscure i think
.obsc makes more sense.
Monarch of the page.

Last edited by starlightsparker (Sept. 24, 2024 22:19:22)

Powered by DjangoBB