Discuss Scratch
- Discussion Forums
- » Advanced Topics
- » [ATC#3] So you say you're a "hacker"? Prove it!
- jokebookservice1
- Scratcher
1000+ posts
[ATC#3] So you say you're a "hacker"? Prove it!
How do you get those scores to show up nxt to each bot. I loaded two bots and hey played against each other but no scores showed. Were the scores 0?
- MegaApuTurkUltra
- Scratcher
1000+ posts
[ATC#3] So you say you're a "hacker"? Prove it!
Also question(s):
How many bots can compete per person?
And some bots are over the 30 lines limit or is that OK?
Also if I change one line of my bot and call it my second bot is that allowed?
What does PROTECT do?
There's a limit of 3.
The interpreter cuts off anything past 32 lines
Sure
Read the first post on this topic
- IcyCoder
- Scratcher
1000+ posts
[ATC#3] So you say you're a "hacker"? Prove it!
ThanksAlso question(s):
How many bots can compete per person?
And some bots are over the 30 lines limit or is that OK?
Also if I change one line of my bot and call it my second bot is that allowed?
What does PROTECT do?
There's a limit of 3.
The interpreter cuts off anything past 32 lines
Sure
Read the first post on this topic
- jokebookservice1
- Scratcher
1000+ posts
[ATC#3] So you say you're a "hacker"? Prove it!
Um, PROTECT is supposed to be undone by attempting to set the variable, right?
I have a PROTECT EXECUTION_POINTER (which I assume allows incrementing at the end of each line)
but when I do
SET EXECUTION_POINTER 1
SET EXECUTION_POINTER 1
That is meant to go to the first line (which protects it again), right?
I have a PROTECT EXECUTION_POINTER (which I assume allows incrementing at the end of each line)
but when I do
SET EXECUTION_POINTER 1
SET EXECUTION_POINTER 1
That is meant to go to the first line (which protects it again), right?
- MegaApuTurkUltra
- Scratcher
1000+ posts
[ATC#3] So you say you're a "hacker"? Prove it!
Protects don't block your own code*. But yes, Um, PROTECT is supposed to be undone by attempting to set the variable, right?other bots would need to SET twice: once to remove the protect, then another time to actually set.
I have a PROTECT EXECUTION_POINTER (which I assume allows incrementing at the end of each line)
but when I do
SET EXECUTION_POINTER 1
SET EXECUTION_POINTER 1
That is meant to go to the first line (which protects it again), right?
*I'd like to see this abused by forcing other bots to set their own data :P
- gtoal
- Scratcher
1000+ posts
[ATC#3] So you say you're a "hacker"? Prove it!
Submission: TTAIB (the totally awesome icy bot)SET DIRECTION RANDOM
MOVE
IF *@RANDOM%2 EQUALS 5 5 3
SET *@5 @4
TAG
SET EXECUTION_POINTER 1
Version 2:SET DIRECTION RANDOM
MOVE
IF *@RANDOM%2 EQUALS 5 5 3
SET *@4 @5
TAG
SET EXECUTION_POINTER 1
Credit: @iamunknown2 for help.
Tell me if this works but I will still test it soon!
Edit: I cannot test it for some reason
Try this - NOT A SUBMISSION since it is totally derivative…
SET DIRECTION RANDOM
MOVE
IF *@RANDOM%2 EQUALS 5 5 3
SET *@4 @5
TAG dupbot
SET EXECUTION_POINTER 1
SET DIRECTION RANDOM
MOVE
IF *@RANDOM%2 EQUALS 5 11 9
SET *@4 @11
TAG dupbot
SET EXECUTION_POINTER 7
SET DIRECTION RANDOM
MOVE
IF *@RANDOM%2 EQUALS 5 17 15
SET *@4 @17
TAG dupbot
SET EXECUTION_POINTER 13
SET DIRECTION RANDOM
MOVE
IF *@RANDOM%2 EQUALS 5 23 21
SET *@4 @23
TAG dupbot
SET EXECUTION_POINTER 19
SET DIRECTION RANDOM
MOVE
IF *@RANDOM%2 EQUALS 5 29 27
SET *@4 @29
TAG dupbot
SET EXECUTION_POINTER 25
TAG dupbot
SET EXECUTION_POINTER RANDOM
- IcyCoder
- Scratcher
1000+ posts
[ATC#3] So you say you're a "hacker"? Prove it!
Is this for me?Submission: TTAIB (the totally awesome icy bot)SET DIRECTION RANDOM
MOVE
IF *@RANDOM%2 EQUALS 5 5 3
SET *@5 @4
TAG
SET EXECUTION_POINTER 1
Version 2:SET DIRECTION RANDOM
MOVE
IF *@RANDOM%2 EQUALS 5 5 3
SET *@4 @5
TAG
SET EXECUTION_POINTER 1
Credit: @iamunknown2 for help.
Tell me if this works but I will still test it soon!
Edit: I cannot test it for some reason
Try this - NOT A SUBMISSION since it is totally derivative…SET DIRECTION RANDOM
MOVE
IF *@RANDOM%2 EQUALS 5 5 3
SET *@4 @5
TAG dupbot
SET EXECUTION_POINTER 1
SET DIRECTION RANDOM
MOVE
IF *@RANDOM%2 EQUALS 5 11 9
SET *@4 @11
TAG dupbot
SET EXECUTION_POINTER 7
SET DIRECTION RANDOM
MOVE
IF *@RANDOM%2 EQUALS 5 17 15
SET *@4 @17
TAG dupbot
SET EXECUTION_POINTER 13
SET DIRECTION RANDOM
MOVE
IF *@RANDOM%2 EQUALS 5 23 21
SET *@4 @23
TAG dupbot
SET EXECUTION_POINTER 19
SET DIRECTION RANDOM
MOVE
IF *@RANDOM%2 EQUALS 5 29 27
SET *@4 @29
TAG dupbot
SET EXECUTION_POINTER 25
TAG dupbot
SET EXECUTION_POINTER RANDOM
- Turtle1331
- Scratcher
22 posts
[ATC#3] So you say you're a "hacker"? Prove it!
Are submissions with less than 32 lines of code allowed? If so, how does the execution behave (looping or NOPs)? What happens when a bot tries to overwrite code after the end of the program?
Side note: my submissions should be coming soon…
Hello? Could someone please answer my question?
- IcyCoder
- Scratcher
1000+ posts
[ATC#3] So you say you're a "hacker"? Prove it!
Yeah the program stops at 32 lines of code and I do not know the second thingAre submissions with less than 32 lines of code allowed? If so, how does the execution behave (looping or NOPs)? What happens when a bot tries to overwrite code after the end of the program?
Side note: my submissions should be coming soon…
Hello? Could someone please answer my question?
- jokebookservice1
- Scratcher
1000+ posts
[ATC#3] So you say you're a "hacker"? Prove it!
Submission: RunRunRun
PROTECT EXECUTION_POINTER
MOVE
IF *EXECUTION_POINTER EQUALS -1 1 4
SET *@RANDOM @6
PROTECT @RANDOM%6+1
TAG RunRunRun
SET EXECUTION_POINTER 1
- IcyCoder
- Scratcher
1000+ posts
[ATC#3] So you say you're a "hacker"? Prove it!
Submission: RunRunRunNicePROTECT EXECUTION_POINTER
MOVE
IF *EXECUTION_POINTER EQUALS -1 1 4
SET *@RANDOM @6
PROTECT @RANDOM%6+1
TAG RunRunRun
SET EXECUTION_POINTER 1
- jokebookservice1
- Scratcher
1000+ posts
[ATC#3] So you say you're a "hacker"? Prove it!
Question: Does the red rectangle mean that that bot is the target pf the hack, rather than the hacker?
So if I see
So if I see
………… ____Then A is hacking B
A ——— | B |
*****
Last edited by jokebookservice1 (July 13, 2016 17:49:43)
- jokebookservice1
- Scratcher
1000+ posts
[ATC#3] So you say you're a "hacker"? Prove it!
Thanks. I've ran simulations with many submitted bots (including the really good CopyBot, and RunRunRun wins because nothing can attack it since it protects all its code quite quickly. This is because of the low amount of code bunched together, which means that using the RANDOM (required because using DATA would add lines that would reduce the security of the bot). It however is vulnerable to tags, but it cannot be immobilised.Submission: RunRunRunNicePROTECT EXECUTION_POINTER
MOVE
IF *EXECUTION_POINTER EQUALS -1 1 4
SET *@RANDOM @6
PROTECT @RANDOM%6+1
TAG RunRunRun
SET EXECUTION_POINTER 1
Yours is really good too! I compared it to mine and another, and yours was beating the other one. But not mine because I wouldn't publish a losing program). Your coding is really well done! +1
- MegaApuTurkUltra
- Scratcher
1000+ posts
[ATC#3] So you say you're a "hacker"? Prove it!
I already didAre submissions with less than 32 lines of code allowed? If so, how does the execution behave (looping or NOPs)? What happens when a bot tries to overwrite code after the end of the program?
Side note: my submissions should be coming soon…
Hello? Could someone please answer my question?
The answer is no. Lines past 32 are deleted
- MegaApuTurkUltra
- Scratcher
1000+ posts
[ATC#3] So you say you're a "hacker"? Prove it!
Yep Question: Does the red rectangle mean that that bot is the target pf the hack, rather than the hacker?
So if I see………… ____Then A is hacking B
A ——— | B |
*****
- IcyCoder
- Scratcher
1000+ posts
[ATC#3] So you say you're a "hacker"? Prove it!
Thanks you can I use the lineThanks. I've ran simulations with many submitted bots (including the really good CopyBot, and RunRunRun wins because nothing can attack it since it protects all its code quite quickly. This is because of the low amount of code bunched together, which means that using the RANDOM (required because using DATA would add lines that would reduce the security of the bot). It however is vulnerable to tags, but it cannot be immobilised.Submission: RunRunRunNicePROTECT EXECUTION_POINTER
MOVE
IF *EXECUTION_POINTER EQUALS -1 1 4
SET *@RANDOM @6
PROTECT @RANDOM%6+1
TAG RunRunRun
SET EXECUTION_POINTER 1
Yours is really good too! I compared it to mine and another, and yours was beating the other one. But not mine because I wouldn't publish a losing program). Your coding is really well done! +1
PROTECT @RANDOM%6+1 and PROTECT EXECUTION_POINTER
- gtoal
- Scratcher
1000+ posts
[ATC#3] So you say you're a "hacker"? Prove it!
Is this for me?
If you want it. I don't know if it's any good but it did beat its parent most of the times I tried it. I was just throwing it out there as one more thing to test against.
G
- IcyCoder
- Scratcher
1000+ posts
[ATC#3] So you say you're a "hacker"? Prove it!
I may just use some lines but it beat mine?Is this for me?
If you want it. I don't know if it's any good but it did beat its parent most of the times I tried it. I was just throwing it out there as one more thing to test against.
G
- gtoal
- Scratcher
1000+ posts
[ATC#3] So you say you're a "hacker"? Prove it!
Most of the time. Try it yourself and see. It's basically just your repeated, so that if it is infected and executes random code, it may switch to a different loop that is not corrupted.I may just use some lines but it beat mine?Is this for me?
If you want it. I don't know if it's any good but it did beat its parent most of the times I tried it. I was just throwing it out there as one more thing to test against.
G
- jokebookservice1
- Scratcher
1000+ posts
[ATC#3] So you say you're a "hacker"? Prove it!
It is a strange pattern: First, my bot loses against CopyBot until we each get around 100 points (I get 100, CopyBot gets 120) then, CopyBot dies down, but mine keeps growing. I am not sure why though