Discuss Scratch

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!

IcyCoder wrote:

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!

MegaApuTurkUltra wrote:

IcyCoder wrote:

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
Thanks
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?
MegaApuTurkUltra
Scratcher
1000+ posts

[ATC#3] So you say you're a "hacker"? Prove it!

jokebookservice1 wrote:

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?
Protects don't block your own code*. But yes, other bots would need to SET twice: once to remove the protect, then another time to actually set.

*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!

IcyCoder wrote:

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!

gtoal wrote:

IcyCoder wrote:

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
Is this for me?
Turtle1331
Scratcher
22 posts

[ATC#3] So you say you're a "hacker"? Prove it!

Turtle1331 wrote:

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!

Turtle1331 wrote:

Turtle1331 wrote:

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?
Yeah the program stops at 32 lines of code and I do not know the second thing
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!

jokebookservice1 wrote:

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
Nice
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
………… ____
A ——— | B |
*****
Then A is hacking 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!

IcyCoder wrote:

jokebookservice1 wrote:

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
Nice
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.

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!

Turtle1331 wrote:

Turtle1331 wrote:

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?
I already did

The answer is no. Lines past 32 are deleted
MegaApuTurkUltra
Scratcher
1000+ posts

[ATC#3] So you say you're a "hacker"? Prove it!

jokebookservice1 wrote:

Question: Does the red rectangle mean that that bot is the target pf the hack, rather than the hacker?

So if I see
………… ____
A ——— | B |
*****
Then A is hacking B
Yep
IcyCoder
Scratcher
1000+ posts

[ATC#3] So you say you're a "hacker"? Prove it!

jokebookservice1 wrote:

IcyCoder wrote:

jokebookservice1 wrote:

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
Nice
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.

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
Thanks you can I use the line
PROTECT @RANDOM%6+1 and PROTECT EXECUTION_POINTER
I will give you credit but would I have to change it to work with mine?
gtoal
Scratcher
1000+ posts

[ATC#3] So you say you're a "hacker"? Prove it!

IcyCoder wrote:

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!

gtoal wrote:

IcyCoder wrote:

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
I may just use some lines but it beat mine?
gtoal
Scratcher
1000+ posts

[ATC#3] So you say you're a "hacker"? Prove it!

IcyCoder wrote:

gtoal wrote:

IcyCoder wrote:

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
I may just use some lines but it beat mine?
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.
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

Powered by DjangoBB