Welcome, Guest

Author Topic: Map War Bot  (Read 21074 times)

vh

  • formerly mudkipz
  • *****
  • Posts: 1140
  • "giving heat meaning"
Map War Bot
« on: November 27, 2012, 08:07:13 PM »
Map War Bot Rules:

Rules:
Like all the other map wars mostly. Blockade works the same way, with the adjustment that a sea blockade will block 70% of trade income, a land blockade will block 30% of trade income, and both combined will block 100%.

Income: 5 + seazones + 2*landzones + 2*sqrt(income of all nations you're trading with)

Take a zone: 5 resources
Take an occupied zone: 10 resources
Take a sea zone: 3 resources
Take an occupied sea zone: 5 resources

Distance multipliers are in the form 2^(n) where n in the amount of zones between the one you want to conquer and the closest one you have no diagonals

Instructions:
The bot instructions must be exact and return the same result no matter who computes the turn. In addition, they should be clear and everyone should be able to understand them. You can have communication between bots as long as it's clear.

the map wraps sideways but not vertical
« Last Edit: May 10, 2013, 07:48:22 PM by vh »

FiahOwl

  • *****
  • Posts: 1234
  • This is, to give a dog and in recompense desire my dog again.
Re: who would interested in a
« Reply #1 on: November 27, 2012, 08:15:58 PM »

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

« Last Edit: March 22, 2021, 02:25:21 AM by FiahOwl »

atomic7732

  • Global Moderator
  • *****
  • Posts: 3849
  • caught in the river turning blue
    • Paladin of Storms
Re: who would interested in a
« Reply #2 on: November 27, 2012, 08:41:39 PM »
sure

blotz

  • Formerly 'bong'
  • *****
  • Posts: 813
  • op pls
Re: who would interested in a
« Reply #3 on: November 28, 2012, 05:06:40 AM »
another game?
-_-

Hellpotatoe

  • *****
  • Posts: 230
  • JooJ
Re: who would interested in a
« Reply #4 on: November 28, 2012, 06:29:05 AM »

atomic7732

  • Global Moderator
  • *****
  • Posts: 3849
  • caught in the river turning blue
    • Paladin of Storms
Re: who would interested in a
« Reply #5 on: November 28, 2012, 06:31:33 AM »
another game?
-_-
And you don't have to play any of them.

vh

  • formerly mudkipz
  • *****
  • Posts: 1140
  • "giving heat meaning"
Re: who would interested in a
« Reply #6 on: November 28, 2012, 03:55:48 PM »
i thought we'd do a grid-like map which makes stuff a bit easier and simpler. *giggles at darvince because this took me 10 minutes to make*

atomic7732

  • Global Moderator
  • *****
  • Posts: 3849
  • caught in the river turning blue
    • Paladin of Storms
Re: Map War Bot
« Reply #7 on: November 28, 2012, 04:19:09 PM »
Sovk.

nationK = spawn continent[grid.random()]
nationL = spawn continent[grid.random()]
nationM = spawn continent[grid.random()]

for all:
if peace: claim max land along coast

for nationL:
if bordering any:
if zones(nationL) > (zones(any) + 15):
attack with (all resources - 10)
develop existing land or claim more land

for nationM:
trade all
attack if attacked()
« Last Edit: November 29, 2012, 04:42:42 PM by atomic7732 »

vh

  • formerly mudkipz
  • *****
  • Posts: 1140
  • "giving heat meaning"
Re: Map War Bot
« Reply #8 on: November 28, 2012, 04:37:10 PM »
i was thinking of how we would label each square.

maybe we could do it like this:
each large square is 2 units x 2 units
each small square is 1 units x 1units
then, the bottom left corner is position 0,0
the position of each zone is x,y, where x is the amount of units horizontally from the bottom left point to the bottom left corner of specified zone. y is the amount of vertically from the bottom left point to the bottom left corner of the specified zone. If a position does not fall on the bottom left corner of any zone, but lands in a zone, then it designates that zone anyways

vh

  • formerly mudkipz
  • *****
  • Posts: 1140
  • "giving heat meaning"
Re: Map War Bot
« Reply #9 on: November 28, 2012, 04:43:57 PM »
'things':

attacked(player) #returns a list of player's zones that have been attacked and conquered
borderzones(player) #returns a list of a player's border zones (corners do not count)
playerzones(player) #returns a list of a player's zones
income(player) #income of player
turn() #returns turn number
blockade() #returns bool value for blockade.
#(for all applicable functions), you can add a 'turn' argument to retrieve data from previous turns


yeah i should get started on the simplified mw instructions.

vh

  • formerly mudkipz
  • *****
  • Posts: 1140
  • "giving heat meaning"
Re: Map War Bot
« Reply #10 on: November 28, 2012, 04:45:19 PM »
any basic python modules or builtins are allowed i guess, and anything basic from other programming languages. so you can have random numbers, time modules, etc.

FiahOwl

  • *****
  • Posts: 1234
  • This is, to give a dog and in recompense desire my dog again.
Re: Map War Bot
« Reply #11 on: November 28, 2012, 04:47:14 PM »

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

« Last Edit: March 22, 2021, 02:25:16 AM by FiahOwl »

vh

  • formerly mudkipz
  • *****
  • Posts: 1140
  • "giving heat meaning"
Re: Map War Bot
« Reply #12 on: November 28, 2012, 05:08:18 PM »
added instructions

vh

  • formerly mudkipz
  • *****
  • Posts: 1140
  • "giving heat meaning"
Re: Map War Bot
« Reply #13 on: November 28, 2012, 05:08:42 PM »
so does anyone have some functions() to suggest if not i guess we can start soon.

vh

  • formerly mudkipz
  • *****
  • Posts: 1140
  • "giving heat meaning"
Re: Map War Bot
« Reply #14 on: November 28, 2012, 05:12:43 PM »
oh yeah
zonestatus(x,y) #returns [sea/land, occupationstatus]

also, how do people like the idea of only starting on a coast allowed, as if we'd arrived on boats and are now fighting over the small chain of islands

atomic7732

  • Global Moderator
  • *****
  • Posts: 3849
  • caught in the river turning blue
    • Paladin of Storms
Re: Map War Bot
« Reply #15 on: November 28, 2012, 06:06:59 PM »
small chain of islands
archipelago

eh, it doesn't matter.

vh

  • formerly mudkipz
  • *****
  • Posts: 1140
  • "giving heat meaning"
Re: Map War Bot
« Reply #16 on: November 29, 2012, 03:12:16 PM »
game will start in a week you can submit and edit your bots up until the game starts

blotz

  • Formerly 'bong'
  • *****
  • Posts: 813
  • op pls
Re: Map War Bot
« Reply #17 on: November 29, 2012, 07:24:12 PM »
uhh,

loop(
if nothing adjacent
pass

if something adjacent
ATTACK WITH ALL YOU MIGHT, He, The Master of Bongatar, the greatest to Rise, defeater of All but the Creator of the Universe, Dan Dixion.
)
oh btw can we attack diagonals?

FiahOwl

  • *****
  • Posts: 1234
  • This is, to give a dog and in recompense desire my dog again.
Re: Map War Bot
« Reply #18 on: November 29, 2012, 07:28:00 PM »

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

« Last Edit: March 22, 2021, 02:25:00 AM by FiahOwl »

vh

  • formerly mudkipz
  • *****
  • Posts: 1140
  • "giving heat meaning"
Re: Map War Bot
« Reply #19 on: November 29, 2012, 07:33:54 PM »
edit: i've changed my mind:
no randoms allowed because those are hard. if you want a random function, do something like sum(all incomes) mod (the number of zones you have)

the only rule for the bot directions now is that anyone following your code will come up with exactly the same result. in addition, it shouldn't take more than 20 minutes to execute your code
the coordinate system mentioned above is helpful but not required.

blotz

  • Formerly 'bong'
  • *****
  • Posts: 813
  • op pls
Re: Map War Bot
« Reply #20 on: November 29, 2012, 07:37:29 PM »
Kip so will my thingy work?

vh

  • formerly mudkipz
  • *****
  • Posts: 1140
  • "giving heat meaning"
Re: Map War Bot
« Reply #21 on: November 29, 2012, 07:37:43 PM »
wait so you set west to *W and north to *N what i don't get this completely@ darvince

blotz

  • Formerly 'bong'
  • *****
  • Posts: 813
  • op pls
Re: Map War Bot
« Reply #22 on: November 29, 2012, 07:38:17 PM »

Darvince

  • *****
  • Posts: 1842
  • 差不多
Re: Map War Bot
« Reply #23 on: November 29, 2012, 07:47:05 PM »
wait so you set west to *W and north to *N what i don't get this completely@ darvince
yes i set these:
*S to south
*N to north
*W to west
*E to east

vh

  • formerly mudkipz
  • *****
  • Posts: 1140
  • "giving heat meaning"
Re: Map War Bot
« Reply #24 on: November 29, 2012, 07:48:00 PM »
wait yu deleted your code wtf

vh

  • formerly mudkipz
  • *****
  • Posts: 1140
  • "giving heat meaning"
Re: Map War Bot
« Reply #25 on: November 29, 2012, 07:48:13 PM »
oh for secrets i c, ic

vh

  • formerly mudkipz
  • *****
  • Posts: 1140
  • "giving heat meaning"
Re: Map War Bot
« Reply #26 on: December 16, 2012, 03:36:18 PM »
s
« Last Edit: May 10, 2013, 07:27:19 PM by vh »

Hellpotatoe

  • *****
  • Posts: 230
  • JooJ
Re: Map War Bot
« Reply #27 on: December 17, 2012, 03:36:18 AM »
you mean 21/12/12

atomic7732

  • Global Moderator
  • *****
  • Posts: 3849
  • caught in the river turning blue
    • Paladin of Storms
Re: Map War Bot
« Reply #28 on: December 17, 2012, 06:21:11 AM »
20121221

Hellpotatoe

  • *****
  • Posts: 230
  • JooJ
Re: Map War Bot
« Reply #29 on: December 17, 2012, 11:01:26 AM »
ok since everyone has probably forgotten this:

you have one week to instruct your bots and begin the game. The only restrictions on the instructions are:
-that they must take a resonable time to simulate
-anyone simulating will get the same result/turn
-you may have one two digit random number per day, determined by the decimal digits of the dji at noon, est
-the instructions must be understandable.
then, the order in which people take their first turns will be the order of the game.
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.

game will start on 12/21/12, the end of the world. how fitting.
hey, can you give me a example?