Discuss Scratch

CodeLegend
Scratcher
500+ posts

[ATC#1] Rule 110

MartinBraendli2 wrote:

Same here. Also, I didn't realise that you quote me in your signature. Had to chuckle, when I clicked on the link.
Wow, I had completely forgotten about that…

MartinBraendli2 wrote:

I think there are 2 kinds of challenges. Multiple submission challenges like Code Golf, “find the fastest way to do something” etc., and single submission challenges where the first correct answer/submission wins (like this one). If the creator decided to do a single submission challenge, it would IMO be fair to announce the release of the challenge in advance, e.g. 24h before, ideally in the thread of the previous challenge. This would allow more ATers to participate.
Agreed!
PullJosh
Scratcher
1000+ posts

[ATC#1] Rule 110

CodeLegend wrote:

Wow, I had completely forgotten about that…

MartinBraendli2 wrote:

I think there are 2 kinds of challenges. Multiple submission challenges like Code Golf, “find the fastest way to do something” etc., and single submission challenges where the first correct answer/submission wins (like this one). If the creator decided to do a single submission challenge, it would IMO be fair to announce the release of the challenge in advance, e.g. 24h before, ideally in the thread of the previous challenge. This would allow more ATers to participate.
Agreed!
I'll keep that in mind.

I have an idea for what the next challenge could be, but I don't have a great timeframe for when I'll have it ready. I'm going to be without internet for a little while this week, and I've got some other events planned, but I'll try to get the next ATC out as soon as I can.
kvackkvack
Scratcher
500+ posts

[ATC#1] Rule 110

Now that the challenge is done, I had an idea about simulating global, (constant, except for being able to set certain values using broadcasts maybe) numerical variables with Sprites at certain x-positions. You'd have the “main” sprite at x: -240, then you could have other sprites with a x such that their distance to the main sprite is the number the Sprite represents – if you wanted to have the global var X, you'd just place it at x: -239.
Then, when you wanted the value of a global var you'd just do (distance to ). The best part is that you can insert reporter blocks/variables into the dropdown slot in normal Scratch, so to convert “X”/“_” to 1/0 you'd simply do (distance to (letter (i) of (string)).

Last edited by kvackkvack (July 6, 2016 07:13:15)

Flame2957
Scratcher
63 posts

[ATC#1] Rule 110

I don't understand this. What do you mean by line/iteration?
jokebookservice1
Scratcher
1000+ posts

[ATC#1] Rule 110

CodeLegend wrote:

MartinBraendli2 wrote:

Same here. Also, I didn't realise that you quote me in your signature. Had to chuckle, when I clicked on the link.
Wow, I had completely forgotten about that…

MartinBraendli2 wrote:

I think there are 2 kinds of challenges. Multiple submission challenges like Code Golf, “find the fastest way to do something” etc., and single submission challenges where the first correct answer/submission wins (like this one). If the creator decided to do a single submission challenge, it would IMO be fair to announce the release of the challenge in advance, e.g. 24h before, ideally in the thread of the previous challenge. This would allow more ATers to participate.
Agreed!
Please try to make it accessible to as many timezones as possible?
MartinBraendli2
Scratcher
100+ posts

[ATC#1] Rule 110

Flame2957 wrote:

I don't understand this. What do you mean by line/iteration?
A picture is worth a thousand words.

I can't wait for the next challenge. Firstly, I need me ona those medals, but more importantly, because I came up with a awesome (but really hard) coding puzzle that i want it to be ATC#3.
PullJosh
Scratcher
1000+ posts

[ATC#1] Rule 110

Just letting everyone know that (despite being offline for a day and a half) the next ATC is nearing completion. I would expect that by the end of today I'll have my “entry” finished (to prove to myself that the challenge is possible to complete). I'll then give the 24-hour warning sometime tomorrow and launch the next ACT the day after. That's the plan, anyway…

So here's your 48ish hour warning.
jokebookservice1
Scratcher
1000+ posts

[ATC#1] Rule 110

PullJosh wrote:

Just letting everyone know that (despite being offline for a day and a half) the next ATC is nearing completion. I would expect that by the end of today I'll have my “entry” finished (to prove to myself that the challenge is possible to complete). I'll then give the 24-hour warning sometime tomorrow and launch the next ACT the day after. That's the plan, anyway…

So here's your 48ish hour warning.
Thanks, I'm really excited
PullJosh
Scratcher
1000+ posts

[ATC#1] Rule 110

24 hour (and 4 minute) warning!
jokebookservice1
Scratcher
1000+ posts

[ATC#1] Rule 110

PullJosh wrote:

24 hour (and 4 minute) warning!

I'll make a countdown project for you
ilikelegos
Scratcher
100+ posts

[ATC#1] Rule 110

Totally missed this…
Super exicted for next one.
jokebookservice1
Scratcher
1000+ posts

[ATC#1] Rule 110

ilikelegos wrote:

Totally missed this…
Super exicted for next one.
ATC#2 has already happened and I just bumped ATC#3 which is still pending. Good luck!
ilikelegos
Scratcher
100+ posts

[ATC#1] Rule 110

jokebookservice1 wrote:

ilikelegos wrote:

Totally missed this…
Super exicted for next one.
ATC#2 has already happened and I just bumped ATC#3 which is still pending. Good luck!
WHAT?!?! :O
*Checks AT posts*
jokebookservice1
Scratcher
1000+ posts

[ATC#1] Rule 110

ilikelegos wrote:

jokebookservice1 wrote:

ilikelegos wrote:

Totally missed this…
Super exicted for next one.
ATC#2 has already happened and I just bumped ATC#3 which is still pending. Good luck!
WHAT?!?! :O
*Checks AT posts*
lol but ATC#3 isn't time-based but unluckily ends tomorrow
ilikelegos
Scratcher
100+ posts

[ATC#1] Rule 110

jokebookservice1 wrote:

ilikelegos wrote:

jokebookservice1 wrote:

ilikelegos wrote:

Totally missed this…
Super exicted for next one.
ATC#2 has already happened and I just bumped ATC#3 which is still pending. Good luck!
WHAT?!?! :O
*Checks AT posts*
lol but ATC#3 isn't time-based but unluckily ends tomorrow
Found it and am trying to decifer weird instructions in post.
-Jie-
Scratcher
13 posts

[ATC#1] Rule 110

I found the ATC topics way too late, but I like this one a lot, so I solved it anyway.
Now on to ATC#5 I guess
brooc210
Scratcher
100+ posts

[ATC#1] Rule 110

Y O U C A N S T I L L P O S T .
Hans5958
Scratcher
100+ posts

[ATC#1] Rule 110

brooc210 wrote:

Y O U C A N S T I L L P O S T .
yes, you can, along with a lot of topics, but that is necroposting, which you shouldn't do
MonkeyBean2
Scratcher
500+ posts

[ATC#1] Rule 110

MartinBraendli2 wrote:

I declare this the first “Advanced Topics Challenge”. The Winner is allowed to carry this beautiful trophy in his/her signature:


- He/She can either create the next ATC or name someone to do so.
- Challenges can be anything from riddles, puzzles, code golf etc. The challenge doesn't have to be related to Scratch, but it should target the average AT-Reader. I think, the challenge should be something involving logic and crown a winner by objective means. However, the winner of a challenge has total freedom on the rules of it.
- Each challenge has a maximum time frame of one month (shorter time frames are advised).
- If the winner is decided by the first correct submission, then it would be fair to announce the challenge in advance, e.g. 24h before, in the thread of the previous challenge


I'll leave these here for quick access on upcoming challenges (thanks to PullJosh)






ATC#1:
Update: PullJosh solved the puzzle. Congratulations!


Make a Rule 110 program, that tells you, when a certain pattern appears first. This is simple, but the rules make it a bit tricky:
1. When the green flag is pressed, the user can enter a string, a starting pattern of "X" and "_" (underscore) into a ask&wait dialogue.
2. After that, the user can enter another pattern composed of X and underscore.
3. The program must then tell the user (again via ask&wait), on what line/iteration the 2nd pattern appears first.
4. No variables and lists are allowed (not even built in variables, except "answer")
5. No boolean blocks.
6. No hacked blocks.
EDIT: Changed in “5.” “operators” to “blocks”.
You are now allowed to brainstorm in this thread, even if it spoils part of the challenge.

Explanation:
1. The character “X” corresponds to 1, the character “_” corresponds to 0.
2. The program only must be able to search for patterns starting and ending with X.
3. Line 1 corresponds to the input.
4. No system-variables means, you cant use any of the blocks, that have a checkbox left of them in the blocks menu.
EDIT:
([volume v] of [Stage  v])
isn't allowed either (it accesses built in variables).
5. No boolean operators means, you can't use any of the blocks that have 6 corners. Combining rules 5 & 6 means, that you also can't use the “if”, “if/else”, “wait until” and “repeat until” blocks.
6. No hacking means, that you have to be able to recreate that program in the original scratch editor, without importing or using blocks from the backpack.


The following table can help you to test your program (testname, input pattern, search pattern, expected output):
Test1:
X
X
1
Test2:
X
XX_X
4
Test3:
X_X
X_X_X
9
Test4:
XXX_XXX
X_X
1
Test5
X__X
XXXXXXXX
19
Test6:
XXX___XXX
X__XX__X
25
Test7:
X_XX__XXX___X
XXX_XX_X_X
27

Am I allowed to type anything into the URL bar of my browser during the time that I attempt the challenge?

Powered by DjangoBB