Discuss Scratch
- Discussion Forums
- » Advanced Topics
- » ATC XI - Bot Take Over!!
- IcyCoder
-
Scratcher
1000+ posts
ATC XI - Bot Take Over!!
Brining ATC back!
In this game, you have 1000 moves to take over the most amount of space!
Warning! The current library is very laggy so you need phosphorus to test… if you make a better library that does the same thing with less lag you get extra points with judging
But you have some limits… of course:
1000 Moves per bot.
Bots in one move can only move forward or backward one square or look if there is someone on that square.
Bots in one game are placed in a random area.
Restrictions on use of variables (look bellow).
You can only use one of the custom blocks that take a move in one loop.
You may make your own variables.
You cannot edit the template custom blocks (unless you ask me).
Blocks you can use:
Make Move - Where you put all of your code
change x by (n) or change y by (n) - Only accepts numbers -1 and 1. When you move you get a point (unless another bot covers your space)
get (x) (y) - Get value in the return variable. Value is 0 if space is empty. If it is not 0 it is the bot number.
Variables you can use:
botx and boty (Read Only) - Position of bot.
# of bots (Read Only) - # of bots.
bot id (Write your bot id from 1 to 5 in your init) - Your bot id.
moves (Read Only) - Number of moves you made.
Things you cannot use:
Variables not in the variables you cannot use area.
() of ()
If you are questionable about anything please ask me!
How to make a bot:
Remix.
Rename the template sprite to the name of your bot.
Code in the make move custom block.
Make sure you follow the rules.
How to test:
Move the bot sprites into a project that you are testing (Up to 5 at the moment).
In the bot sprites go to the init block and give each a bot an id from 1 to 5.
In the brains sprite go to the init block and set the # of sprites variables to the number of bots added
Thanks and have fun!
Unless this becomes popular (somehow) we will test when we have 5 bots. When I get the first entry I will make a studio.
Template is here!
In this game, you have 1000 moves to take over the most amount of space!
Warning! The current library is very laggy so you need phosphorus to test… if you make a better library that does the same thing with less lag you get extra points with judging
But you have some limits… of course:
1000 Moves per bot.
Bots in one move can only move forward or backward one square or look if there is someone on that square.
Bots in one game are placed in a random area.
Restrictions on use of variables (look bellow).
You can only use one of the custom blocks that take a move in one loop.
You may make your own variables.
You cannot edit the template custom blocks (unless you ask me).
Blocks you can use:
Make Move - Where you put all of your code
change x by (n) or change y by (n) - Only accepts numbers -1 and 1. When you move you get a point (unless another bot covers your space)
get (x) (y) - Get value in the return variable. Value is 0 if space is empty. If it is not 0 it is the bot number.
Variables you can use:
botx and boty (Read Only) - Position of bot.
# of bots (Read Only) - # of bots.
bot id (Write your bot id from 1 to 5 in your init) - Your bot id.
moves (Read Only) - Number of moves you made.
Things you cannot use:
Variables not in the variables you cannot use area.
() of ()
If you are questionable about anything please ask me!
How to make a bot:
Remix.
Rename the template sprite to the name of your bot.
Code in the make move custom block.
Make sure you follow the rules.
How to test:
Move the bot sprites into a project that you are testing (Up to 5 at the moment).
In the bot sprites go to the init block and give each a bot an id from 1 to 5.
In the brains sprite go to the init block and set the # of sprites variables to the number of bots added
Thanks and have fun!
Unless this becomes popular (somehow) we will test when we have 5 bots. When I get the first entry I will make a studio.
Template is here!
Last edited by IcyCoder (Feb. 20, 2017 00:55:04)
- IcyCoder
-
Scratcher
1000+ posts
ATC XI - Bot Take Over!!
the project doesn't do anything…It is just a template it just includes the library for using the challenge.
- TheMonsterOfTheDeep
-
Scratcher
1000+ posts
ATC XI - Bot Take Over!!
Yes, except said library does nothing, as far as I can tell. If it does, it's so laggy that nothing happens.the project doesn't do anything…It is just a template it just includes the library for using the challenge.

- IcyCoder
-
Scratcher
1000+ posts
ATC XI - Bot Take Over!!
Yeah unforchantly I did not know a better way of doing this challenge library than the way it does it… use phosphorus to test.Yes, except said library does nothing, as far as I can tell. If it does, it's so laggy that nothing happens.the project doesn't do anything…It is just a template it just includes the library for using the challenge.
If you can optimise it to do the same thing with less lag I will give you extra points in judging.
Last edited by IcyCoder (Feb. 20, 2017 00:52:52)
- IcyCoder
-
Scratcher
1000+ posts
ATC XI - Bot Take Over!!
…phosphorus also does nothing…Look at my post edit… but phosphorus works for me (minus the list showing part since phosphorus does not yet support that so you cannot see what bot wins)
- gtoal
-
Scratcher
1000+ posts
ATC XI - Bot Take Over!!
Brining ATC back!
In this game, you have 1000 moves to take over the most amount of space!
Warning! The current library is very laggy so you need phosphorus to test… if you make a better library that does the same thing with less lag you get extra points with judging
But you have some limits… of course:
1000 Moves per bot.
Bots in one move can only move forward or backward one square or look if there is someone on that square.
Bots in one game are placed in a random area.
Restrictions on use of variables (look bellow).
You can only use one of the custom blocks that take a move in one loop.
You may make your own variables.
You cannot edit the template custom blocks (unless you ask me).
Blocks you can use:
Make Move - Where you put all of your code
change x by (n) or change y by (n) - Only accepts numbers -1 and 1. When you move you get a point (unless another bot covers your space)
get (x) (y) - Get value in the return variable. Value is 0 if space is empty. If it is not 0 it is the bot number.
Variables you can use:
botx and boty (Read Only) - Position of bot.
# of bots (Read Only) - # of bots.
bot id (Write your bot id from 1 to 5 in your init) - Your bot id.
moves (Read Only) - Number of moves you made.
Things you cannot use:
Variables not in the variables you cannot use area.
() of ()
If you are questionable about anything please ask me!
How to make a bot:
Remix.
Rename the template sprite to the name of your bot.
Code in the make move custom block.
Make sure you follow the rules.
How to test:
Move the bot sprites into a project that you are testing (Up to 5 at the moment).
In the bot sprites go to the init block and give each a bot an id from 1 to 5.
In the brains sprite go to the init block and set the # of sprites variables to the number of bots added
Thanks and have fun!
Unless this becomes popular (somehow) we will test when we have 5 bots. When I get the first entry I will make a studio.
Template is here!
I've read this half a dozen times and I still have no idea what the challenge does. I don't think it is my comprehension skills that are at fault here. I
m assuming the people who have a clue as to what is wanted have inferred it from the code, but the problem should be fully explained here without needing to refer to the code.
- IcyCoder
-
Scratcher
1000+ posts
ATC XI - Bot Take Over!!
-snip-]
I've read this half a dozen times and I still have no idea what the challenge does. I don't think it is my comprehension skills that are at fault here. I
m assuming the people who have a clue as to what is wanted have inferred it from the code, but the problem should be fully explained here without needing to refer to the code.
Sorry about that

In short the challenge is to make an AI using the custom blocks provided (and other things minus the ones that I told you not to use because those blocks could be used to cheat) that can take the most amount of the board as possible. If a bot goes over a spot on the board they have captured it but if another bot goes over a spot that another bot landed on they now own that spot. Hope it makes sense now.
By the way, if you are not getting visual output you can still do this challenge because it saves the spots on the list and at the end of a round my code counts up the spots.
- Discussion Forums
- » Advanced Topics
-
» ATC XI - Bot Take Over!!


