Welcome, Guest

Author Topic: Map War Bot  (Read 21094 times)

vh

  • formerly mudkipz
  • *****
  • Posts: 1140
  • "giving heat meaning"
Re: Map War Bot
« Reply #30 on: December 17, 2012, 12:54:27 PM »
yeah ok here's an example:

each turn(
for every nation(
hostility = hostility -1
)
request alliance with atomic or smjjames
accept alliance with anyone if they have asked
if someone has attacked me(
for every zone they have taken
hostility=hostility+5
)
if i have enough resources(
if the western most region is empty, then conquer it
)
if hostility against any nation> 20(
attack 3(hostilty-20) zones, or as many as i have resources left for
)
end turn
)

Hellpotatoe

  • *****
  • Posts: 230
  • JooJ
Re: Map War Bot
« Reply #31 on: December 18, 2012, 03:45:45 AM »
oh god, but thats not your code, yeah? :P

I'll make one

make'd :P

Hellpotatoe

  • *****
  • Posts: 230
  • JooJ
Re: Map War Bot
« Reply #32 on: December 23, 2012, 04:07:50 AM »
"the game will start on 12/21/12
they saied

vh

  • formerly mudkipz
  • *****
  • Posts: 1140
  • "giving heat meaning"
Re: Map War Bot
« Reply #33 on: December 23, 2012, 06:29:28 AM »
yes, i cannot join right now but you can!

Hellpotatoe

  • *****
  • Posts: 230
  • JooJ
Re: Map War Bot
« Reply #34 on: December 23, 2012, 06:47:14 AM »
mapp pplease

vh

  • formerly mudkipz
  • *****
  • Posts: 1140
  • "giving heat meaning"
Re: Map War Bot
« Reply #35 on: December 23, 2012, 07:02:24 AM »
on first page!

Hellpotatoe

  • *****
  • Posts: 230
  • JooJ
Re: Map War Bot
« Reply #36 on: December 23, 2012, 11:29:13 AM »
on first page!
OHKOL

*I, E and N spawned
*NIE alliance formed
*Colors:
I: 255,0,0 (FF0000)
E: 255,106,0 (FF6A00)
N: 255,216,0 (FFD800)
alliancerequest(fiah; vh)
traderequest(fiah; vh)

vh

  • formerly mudkipz
  • *****
  • Posts: 1140
  • "giving heat meaning"
Re: Map War Bot
« Reply #37 on: December 23, 2012, 02:32:52 PM »
Hellpotaote: the term alliance is not an official term like trade is, so other bots may not have a alliance acceptance thing. For example, my bot will not attack you if you don't attack it, so it is kind of like an alliance, although I haven't used the word.

Also, we're only supposed to have one nation or bot each, but since no one seems to be playing, if no one else joins the game in the next two turns, I'll change the rules to every one controlling three bots

Hellpotatoe

  • *****
  • Posts: 230
  • JooJ
Re: Map War Bot
« Reply #38 on: December 23, 2012, 05:31:18 PM »
ok :(

Darvince

  • *****
  • Posts: 1842
  • 差不多
Re: Map War Bot
« Reply #39 on: December 23, 2012, 07:47:40 PM »
i will join with a bot.

*D spawned at seazone x: -17 y: -4 from top-left corner
*D requests "alliance" with all players it is not touching
*D requests trade with all nations
*D expands, with these directions in priority, first to last
1. East
2. West
3. North
4. South
if more resources than required for 4 new zones(
1. Northeast
2. Southwest
3. Southeast
4. Northwest
)

for all nations(
hostility this turn = hostility last turn - number of non-touching zones/10
accept incoming alliances if non-touching
accept all incoming trades
)

if touching other nation(
hostility+1 for every other touching zone #equation is floor(number of touching zones/2)
hostility >= 10(
take over other nation's zones in this priority:
1. South
2. West
3. North
4. East
5. Southwest
6. Northeast
7. Southeast
8. Northwest
)
)

tuto99

  • *****
  • Posts: 533
  • Baba Booey
Re: Map War Bot
« Reply #40 on: December 23, 2012, 08:00:16 PM »
How can I join this game?  :D

Hellpotatoe

  • *****
  • Posts: 230
  • JooJ
Re: Map War Bot
« Reply #41 on: December 24, 2012, 03:56:05 AM »
make your code and join! :D
but dont show it like darvince,
HOWEVER; the first three turns are special: you will not reveal your bot code yet, but will follow the directions exactly. after three turns, you must reveal your code and everyone will be able to ensure that you have followed the rules of your bot and continue doing so.

FiahOwl

  • *****
  • Posts: 1234
  • This is, to give a dog and in recompense desire my dog again.
Re: Map War Bot
« Reply #42 on: December 24, 2012, 05:19:19 AM »

This message is only viewable with Universe Sandbox Galaxy Edition. Access it and much more with promo-code '94424'.

« Last Edit: March 22, 2021, 02:19:20 AM by FiahOwl »

Hellpotatoe

  • *****
  • Posts: 230
  • JooJ
Re: Map War Bot
« Reply #43 on: December 24, 2012, 05:43:40 AM »
We lready started, but we can wait you :)

FiahOwl

  • *****
  • Posts: 1234
  • This is, to give a dog and in recompense desire my dog again.
Re: Map War Bot
« Reply #44 on: December 24, 2012, 05:58:41 AM »

This message is only viewable with Universe Sandbox Galaxy Edition. Access it and much more with promo-code '94427'.

« Last Edit: March 22, 2021, 02:19:15 AM by FiahOwl »

vh

  • formerly mudkipz
  • *****
  • Posts: 1140
  • "giving heat meaning"
Re: Map War Bot
« Reply #45 on: December 24, 2012, 06:45:53 AM »
the point of not showing the code is so that someone else does not steal you ideas

And yes we can start later if someone is busy, no hurry

vh

  • formerly mudkipz
  • *****
  • Posts: 1140
  • "giving heat meaning"
Re: Map War Bot
« Reply #46 on: December 24, 2012, 06:50:21 AM »
Darvince your code could do with these modifications:

first, instead of requesting "alliance" just minus 5 hostility to make sure you won't attack them or something. Alliance is not a recognized thing

Also, you should define northeast better. If my starting position is 0,0 and I own zones 2,3 and 3,2 which one is most NE zone?

tuto99

  • *****
  • Posts: 533
  • Baba Booey
Re: Map War Bot
« Reply #47 on: December 24, 2012, 01:59:56 PM »
make your code and join! :D
but dont show it like darvince,
HOWEVER; the first three turns are special: you will not reveal your bot code yet, but will follow the directions exactly. after three turns, you must reveal your code and everyone will be able to ensure that you have followed the rules of your bot and continue doing so.
Code?

vh

  • formerly mudkipz
  • *****
  • Posts: 1140
  • "giving heat meaning"
Re: Map War Bot
« Reply #48 on: December 24, 2012, 02:12:31 PM »
Tutu do you know how all the other map wars on this forum work?

Well this is an extreremely simplified version, but instead of playing the game, you give a set if instructions to a "bot" and the bot uses all the instructions to play the game

Of course because this bot doesn't exist, you'll be the bot and play according to the set of instructions you invented at the start of the game

This set of instructions is the code.

Hellpotatoe

  • *****
  • Posts: 230
  • JooJ
Re: Map War Bot
« Reply #49 on: December 24, 2012, 02:17:19 PM »
like steps of what your nation have to do
example:

each turn(
conquer zones)
conquer(
first north;
them south;
them east;
them west)
accept(
trades;
alliances;)
attack others if(
they're bordering me)

^
simple example

tuto99

  • *****
  • Posts: 533
  • Baba Booey
Re: Map War Bot
« Reply #50 on: December 24, 2012, 07:37:32 PM »
Tutu do you know how all the other map wars on this forum work?

Well this is an extreremely simplified version, but instead of playing the game, you give a set if instructions to a "bot" and the bot uses all the instructions to play the game

Of course because this bot doesn't exist, you'll be the bot and play according to the set of instructions you invented at the start of the game

This set of instructions is the code.
Ehem, Tuto.
And no, I don't how the other map wars on the forum work. Mind you, I don't participate in any of the forum's activities/games.

Darvince

  • *****
  • Posts: 1842
  • 差不多
Re: Map War Bot
« Reply #51 on: December 24, 2012, 08:49:28 PM »
you should participate in map war c

tuto99

  • *****
  • Posts: 533
  • Baba Booey
Re: Map War Bot
« Reply #52 on: December 24, 2012, 10:59:28 PM »
A'ight.

vh

  • formerly mudkipz
  • *****
  • Posts: 1140
  • "giving heat meaning"
Re: Map War Bot
« Reply #53 on: May 10, 2013, 07:28:49 PM »
bump



updated op

the game starts today and there will be one week for everyone to join.

you don't have to reveal your bot instructions for the first three turns if you're afraid that someone will steal it. after that you should make the code public.

blotz

  • Formerly 'bong'
  • *****
  • Posts: 813
  • op pls
Re: Map War Bot
« Reply #54 on: May 10, 2013, 07:30:53 PM »
expand west
if something in the way
expand north
if something in the way
expand south
if something in the way
expand east

if attacked
attack

vh

  • formerly mudkipz
  • *****
  • Posts: 1140
  • "giving heat meaning"
Re: Map War Bot
« Reply #55 on: May 10, 2013, 07:32:13 PM »
map is here edit on your own

http://universesandbox.com/forum/index.php?action=dlattach;topic=8412.0;attach=19778;image


also bong that code is invalid because 'something in the way' and 'expand' is not clearly defined. also undefined is the definition of 'attacked' and who you 'attack'

blotz

  • Formerly 'bong'
  • *****
  • Posts: 813
  • op pls
Re: Map War Bot
« Reply #56 on: May 11, 2013, 03:52:13 AM »
def expand
conqure square

def attack
attack square that was attacked
expand west
if something in the way
expand north
if something in the way
expand south
if something in the way
expand east

if attacked
attack

Hellpotatoe

  • *****
  • Posts: 230
  • JooJ
Re: Map War Bot
« Reply #57 on: May 11, 2013, 04:56:52 AM »
bump



updated op

the game starts today and there will be one week for everyone to join.

you don't have to reveal your bot instructions for the first three turns if you're afraid that someone will steal it. after that you should make the code public.

Oshi-
I was with a very good 'script' and stuff, but I deleted it cause this died :(

vh

  • formerly mudkipz
  • *****
  • Posts: 1140
  • "giving heat meaning"
Re: Map War Bot
« Reply #58 on: May 11, 2013, 08:53:21 PM »
hehe sorry about that

blotz

  • Formerly 'bong'
  • *****
  • Posts: 813
  • op pls
Re: Map War Bot
« Reply #59 on: May 12, 2013, 08:41:04 AM »
inb4 hellpotatoe makes a good script again and then this dies again