Discuss Scratch

100blacktak
Scratcher
100 posts

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

How do you upload images?
100blacktak
Scratcher
100 posts

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

I think you shouldn't make a language instead make something like HTML
Button maker?
i_eat_coffee
Scratcher
1000+ posts

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

ominouswolf wrote:

ominouswolf wrote:

Wait, I thought it was that you would say to participate and then later post the code? Also to write it, I need to be able to add things to arrays.
Actually, i need more then I thought thinking about it…
list them here

i added: unshift & push
syntax:
unshift arrayname value
same for push

currently working on a reverse function
i_eat_coffee
Scratcher
1000+ posts

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

100blacktak wrote:

How do you upload images?
There is currently no way to create visual projects on Obscure

100blacktak wrote:

I think you shouldn't make a language instead make something like HTML
Button maker?
what?
mybearworld
Scratcher
1000+ posts

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

Can you edit arrays at all after creating them?
Edit: Never mind, didn't see the new page and was on an outdated documentation page

Last edited by mybearworld (Sept. 3, 2024 15:17:23)

i_eat_coffee
Scratcher
1000+ posts

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

would be really cool to see someone make a quine

also im planning to add a delay function for a clock project or something
100blacktak
Scratcher
100 posts

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

i_eat_coffee wrote:

ominouswolf wrote:

ominouswolf wrote:

Wait, I thought it was that you would say to participate and then later post the code? Also to write it, I need to be able to add things to arrays.
Actually, i need more then I thought thinking about it…
list them here

i added: unshift & push
syntax:
unshift arrayname value
same for push

currently working on a reverse function
It says error for your sample projects
i_eat_coffee
Scratcher
1000+ posts

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

100blacktak wrote:

i_eat_coffee wrote:

ominouswolf wrote:

ominouswolf wrote:

Wait, I thought it was that you would say to participate and then later post the code? Also to write it, I need to be able to add things to arrays.
Actually, i need more then I thought thinking about it…
list them here

i added: unshift & push
syntax:
unshift arrayname value
same for push

currently working on a reverse function
It says error for your sample projects
what error
ThisIsTemp1
Scratcher
1000+ posts

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

This may be a stupid question but does
if <> then 



else

end

exist. It's for something I need in the contest.
ominouswolf
Scratcher
65 posts

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

Can there be a
(join [] [world])
, a
(letter () of [world])
, and a
(length of [])
please?
ThisIsTemp1
Scratcher
1000+ posts

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

Can you help me with this code

 array 5.04 4.99 5.97 5.32 4.62 5.34 6.12 as Dem
random 0 to 10 as PV
if PV > {Dem:1}
subtract PV-{Dem:1} as Trump_win
out Trump won Arizona by Trump_win
else
subtract {Dem:1}-PV as Harris_win
out Harris won Arizona by Harris_win

Says interpret is not defined as error message
mybearworld
Scratcher
1000+ posts

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

i_eat_coffee wrote:

(#108)
what error
You're using “set as” in the sample projects still

ominouswolf wrote:

(#110)
Can there be a
(join [] [world])
please?
That one exists:
set a to Hello,
set b to world
out {a} {b}
i_eat_coffee
Scratcher
1000+ posts

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

mybearworld wrote:

i_eat_coffee wrote:

(#108)
what error
You're using “set as” in the sample projects still
the sample projects have been updated, but the old versions are already saved in local storage

edit: so basically just replace the incorrect syntax or simply clear your cookies to get the new ones (tho any other projects will be removed)

Last edited by i_eat_coffee (Sept. 3, 2024 15:38:28)

100blacktak
Scratcher
100 posts

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

I know this is not a Visual Programming Language, however, on none visual programming languages, you can upload the images by adding the link in a certain way to upload the images
Here's one of my issues: Sample Project 2
Project code:

set bottles as 99
while {bottles} > 0
out {bottles} bottles of beer on the wall, {bottles} bottles of beer.
subtract {bottles} 1 as bottles
out Take one down and pass it around, {bottles} bottles of beer on the wall.
end
out No more bottles of beer on the wall, no more bottles of beer.
out Go to the store and buy some more, 99 bottles of beer on the wall.

What happens when I run it:

Error: Invalid variable assignment: set bottles as 99
i_eat_coffee
Scratcher
1000+ posts

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

100blacktak wrote:

I know this is not a Visual Programming Language, however, on none visual programming languages, you can upload the images by adding the link in a certain way to upload the images
Here's one of my issues: Sample Project 2
Project code:

set bottles as 99
while {bottles} > 0
out {bottles} bottles of beer on the wall, {bottles} bottles of beer.
subtract {bottles} 1 as bottles
out Take one down and pass it around, {bottles} bottles of beer on the wall.
end
out No more bottles of beer on the wall, no more bottles of beer.
out Go to the store and buy some more, 99 bottles of beer on the wall.

What happens when I run it:

Error: Invalid variable assignment: set bottles as 99
clear your cookies



ThisIsTemp1 wrote:

Can you help me with this code

 array 5.04 4.99 5.97 5.32 4.62 5.34 6.12 as Dem
random 0 to 10 as PV
if PV > {Dem:1}
subtract PV-{Dem:1} as Trump_win
out Trump won Arizona by Trump_win
else
subtract {Dem:1}-PV as Harris_win
out Harris won Arizona by Harris_win

Says interpret is not defined as error message
Works for me, try reloading, but you also used the wrong syntax here:
Error: Invalid random statement: random 0 to 10 as PV
should be:
random 0 10 as PV
i_eat_coffee
Scratcher
1000+ posts

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

ThisIsTemp1 wrote:

This may be a stupid question but does
if <> then 



else

end

exist. It's for something I need in the contest.

ominouswolf wrote:

Can there be a
(join [] [world])
, a
(letter () of [world])
, and a
(length of [])
please?
yeah, in like 5 minute i'll add letter x of y and length of,
but you can join two variables by just doing
set joined to {var1}{var2}

if-else will tkae a bit longer, but you can just do
if 0 = 1
out hi
end
if 0 != 1
out hey
end
100blacktak
Scratcher
100 posts

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

Can you please make a Youtube tutorial. Thank you, some of the documentation is confusing, (it'd) help a lot
i_eat_coffee
Scratcher
1000+ posts

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

set greeting to Hello, world!

out {greeting}
out {letter 2:greeting}
out {length:greeting}
added.
i_eat_coffee
Scratcher
1000+ posts

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

100blacktak wrote:

Can you please make a Youtube tutorial. Thank you, some of the documentation is confusing, (it'd) help a lot
once the contest ends, sure
ThisIsTemp1
Scratcher
1000+ posts

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

How do you make floats?

Also this code still isn't working….

array 5.04 4.99 5.97 5.32 4.62 5.34 6.12 as Dem
random 0 10 as PV
if PV > {Dem:1}
subtract PV {Dem:1} as Trump_win
out Trump won Arizona by {Trump_win}
end
if PV < {Dem:1}
subtract {Dem:1} PV as Harris_win
out Harris won Arizona by {Harris_win}
end

Powered by DjangoBB