moar logotron debugging

@logotron Trying out a new source program parser that requires CW and hashtag

to randomwalk
repeat 1000 [
setpencolor (random 1 15)
make "r random 3
if :r = 0 [ fd 20 ]
if :r = 1 [ rt 90 fd 20 ]
if :r = 2 [ lt 90 fd 20 ]
wait 1
]
end

fullscreen
randomwalk

wait 120
bye

another test logoton program

@logotron Let's see if this works?

setpencolor [0 255 0] for [i 1 18 2] [repeat 720 [fd :i rt repcount] lt 45]

@logotron Nice - this reply should be ignored as a program run.

@logotron And this reply is missing a program.

logotron cw

@logotron how about a CW'd post missing a program?

drawing another sun in logo

@logotron One more try before bed

repeat 2000 [
pu
home
seth random 361
setpencolor random 15
fd 40
pd
fd random 200
]

A little bit more hacking on @logotron - made it pickier about what it tries running as a program:

The toot has to have a content warning and the hashtag . The hashtag is used as a marker - everything before it is a comment, everything after is the program.

Hopefully that makes it ignore more chatter and replies that aren't actually meant to be programs

random rectangular

@logotron Here's some random right angle turns

repeat 10000 [ setpencolor random 15 fd random 80 rt 90 ]

full screen random rectangular

@logotron Someday maybe I'll find something more interesting to do with colors

fullscreen
repeat 1000 [
setpencolor random 15
fd random 80
rt 90
wait 1
]
bye

re: ph, feeling better but still scared.

@kusuriya Oof, 🤞 you continue to feel better!

ferny fern in logo

@logotron Let's try a fern before bed

to fern :size :sign
if :size < 1 [ stop ]
fd :size
rt 70 * :sign fern :size * 0.5 :sign * -1 lt 70 * :sign
fd :size
lt 70 * :sign fern :size * 0.5 :sign rt 70 * :sign
rt 7 * :sign fern :size - 1 :sign lt 7 * :sign
bk :size * 2
end
setpencolor 2
window clearscreen pu bk 150 pd
fern 25 1

Alright, here's hoping @logotron stays awake overnight. I'm off to bed

tree in logo

@logotron Oh, heck, why not a tree too?

to tree :size
if :size < 5 [forward :size back :size stop]
forward :size/3
left 30 tree :size*2/3 right 30
forward :size/6
right 25 tree :size/2 left 25
forward :size/3
right 25 tree :size/2 left 25
forward :size/6
back :size
end
setpencolor 2
clearscreen
tree 175

@logotron Okay, that was 1000x more tree than I actually intended

tiny tree

@logotron I need to stop hacking now

to tree :size
if :size < 5 [forward :size back :size stop]
forward :size/3
left 30 tree :size*2/3 right 30
forward :size/6
right 25 tree :size/2 left 25
forward :size/3
right 25 tree :size/2 left 25
forward :size/6
back :size
end
setpencolor 2
clearscreen
tree 50

re: ferny fern in logo

@logotron Hush, bot, that wasn't meant to be a program

taking the turtle for a spin

@logotron Wheee!

to spiral :size
make "n 1
make "turns 0
while [:n < :size] [
make "n :n + 5
make "turns turns + 1
if :turns > 3 [
make "turns 0
setpencolor (random 1 15)
]
fd :n rt 90
]
end

clearscreen
fullscreen
setpensize 2
spiral 2000

taking the turtle for a slower spin

@logotron Whoa, that was more intense than I expected. How about slowing it down?

to spiral :size
make "n 1
make "turns 0
while [:n < :size] [
make "n :n + 5
make "turns turns + 1
if :turns > 3 [
make "turns 0
setpencolor (random 1 15)
]
fd :n rt 90
wait 1
]
end

clearscreen
fullscreen
setpensize 2
spiral 1000
bye

turtle spins in a hex now

@logotron Hope this doesn't make the turtle dizzy!

to hexspiral :size
make "n 1
make "turns 0
while [:n < :size] [
make "n :n + 5
make "turns turns + 1
if :turns > 5 [
make "turns 0
setpencolor (random 1 15)
]
fd :n rt 60
wait 1
]
end

clearscreen
fullscreen
setpensize 3
hexspiral 500

spin the hex in full screen

@logotron How about this tweak?

to hexspiral :size
make "n 1
make "turns 0
while [:n < :size] [
make "n :n + 5
make "turns turns + 1
if :turns > 5 [
make "turns 0
setpencolor (random 1 15)
]
fd :n rt 60
wait 1
]
end

clearscreen
setpensize 3
fullscreen
hexspiral 1000

Just discovered that Plex can shuffle TV episodes, so today is all of "How It's Made" on shuffle

@neauoire ohh, that looks so tasty!

Happy belated

@giflian That's a good question, I've futzed with the bot a lot in the past day or two. I think your instructions should have worked as logo, though. Let's see...

testing a program

@giflian @logotron Does this work?

fd 10
rt 90
fd 10
rt 90
fd 10
rt 90
fd 10

wait 120
bye

re: testing a program

@giflian Looks like that worked, for whatever shape the bot is in today 😅 Right now, it requires both a CW and a hashtag to be really sure you want to run a program

The overall window resolution should be 800x600, though some of that is eaten up by window chrome

@pixel @logotron @paulrickards@mastodon.social

To be (un)fair, I've also futzed around a lot with the input parsing over last night & today.

I think it's stable now such that it ignores everything before the hashtag and requires a CW before it tries a program run

@jacqueline You absolutely have my vote

2023/04/03