[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/functions.php on line 4586: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3765)
[phpBB Debug] PHP Warning: in file /includes/functions.php on line 4588: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3765)
[phpBB Debug] PHP Warning: in file /includes/functions.php on line 4589: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3765)
[phpBB Debug] PHP Warning: in file /includes/functions.php on line 4590: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3765)
AI Challenge Forums • View topic - Game mechanics question: Fight of 3 fleets(neutral+2enemies)

It is currently Fri Jan 19, 2018 5:15 pm Advanced search

Game mechanics question: Fight of 3 fleets(neutral+2enemies)

Share and discuss ideas for your entries here.

Game mechanics question: Fight of 3 fleets(neutral+2enemies)

Postby ERaider » Fri Sep 10, 2010 10:11 am

on neutral planet fly 2 fleets from other peoples.
What order of fights?
ERaider
Cadet
 
Posts: 4
Joined: Thu Sep 09, 2010 8:52 pm

Re: Game mechanics question: Fight of 3 fleets(neutral+2enem

Postby BasicWolf » Fri Sep 10, 2010 11:52 am

If I'm correct, first, the Player1 vs. Player2. fleets fight, then the remains fight against the planet.
BasicWolf
Cadet
 
Posts: 7
Joined: Wed Sep 08, 2010 7:25 am

Re: Game mechanics question: Fight of 3 fleets(neutral+2enem

Postby DanielVonFange » Fri Sep 10, 2010 12:16 pm

This is now officially like this:

The side with the most ships wins. They take losses equal to the number of ships of the next smaller size.

I don't know if all the clients and the server have been updated with this yet.
DanielVonFange
Brigadier-General
 
Posts: 149
Joined: Wed Sep 08, 2010 1:15 pm

Re: Game mechanics question: Fight of 3 fleets(neutral+2enem

Postby antimatroid » Fri Sep 10, 2010 12:45 pm

Here's my best way of explaining how the decided method works, there was quite a bit (read as lot) of discussion about this over the last week, as it's not really easy to pick an option that gives seemingly desirable results for all possible cases. Anyway, a sort of pseudo explanation is as follows (it should be pretty obvious what happens when a planet is owned by another player or only one player has ships arrive in a fleet at a particular planet):

Aggregate up all fleets from each player arriving at that turn, so (f1, f2), and let f = max(f1, f2).

if(noNeutralShips >= f) then neutral maintains ownership with noNeutralShips - f ships
else if(f1 == f2) then neutral maintains ownership with 0 ships
else owner = argmax(f1,f2) and number of ships is f - max(min(f1,f2), noNeutralShips)

I'm not positive that is the most efficient way of calculating it, but I think it covers the rule that has been decided upon. Basically, while the weakest bot still exists, three ships of opposing forces each eliminate each other. A nice description is provided here:

viewtopic.php?f=18&t=419#p2416

An important case you might want to note with this rule is say you have less ships arrive at a neutral planet at the same time as the enemy has more ships arrive, then your ships are lost without actually changing anything, so this is a case you want to try and avoid.

Just to clarify what the other two possible options were, one was to have both players fleets battle each other before the remaining ships battle the neutral ships, or secondly, both players fleets fight neutrals ships first before moving onto each other (should there be any left), none of these options, like I said before, seemed to be perfectly ideal, but some level of agreement does seem to have been reached.
antimatroid
Brigadier-General
 
Posts: 126
Joined: Tue Feb 16, 2010 7:41 am

Re: Game mechanics question: Fight of 3 fleets(neutral+2enem

Postby xmarkd400x » Sat Sep 11, 2010 3:57 am

So, let's say a neutral planet has 20 ships.

Your enemy sends a fleet of 50 ships.

From a closer planet (and at the right time) you send a fleet of 51 ships.

You overtake the planet of 20 and destroy 50 of your enemies ships while only losing 20.

This sounds like the kind of game mechanic that could be abused a little bit =)

-Mark
xmarkd400x
Cadet
 
Posts: 7
Joined: Sat Sep 11, 2010 3:54 am

Re: Game mechanics question: Fight of 3 fleets(neutral+2enem

Postby Mathnerd314 » Sat Sep 11, 2010 4:44 am

No; you take 51, 20, and 50, sort them (51, 50, 20), and subtract the first from the second (51-50=1). So there is 1 ship on the planet, and since 51 was from your planet, you own the planet.
Mathnerd314
Lieutenant
 
Posts: 13
Joined: Mon Feb 08, 2010 6:52 am

Re: Game mechanics question: Fight of 3 fleets(neutral+2enem

Postby xmarkd400x » Sat Sep 11, 2010 12:24 pm

xmarkd400x
Cadet
 
Posts: 7
Joined: Sat Sep 11, 2010 3:54 am

Re: Game mechanics question: Fight of 3 fleets(neutral+2enem

Postby antimatroid » Sat Sep 11, 2010 2:45 pm

Just to clarify what I meant by argmax(f1, f2), if f1>f2 the answer is 1, if f2>f1 then the answer is 2, I already eliminated any case of f1==f2 before getting to that part of the logic.
antimatroid
Brigadier-General
 
Posts: 126
Joined: Tue Feb 16, 2010 7:41 am

Re: Game mechanics question: Fight of 3 fleets(neutral+2enem

Postby gaolyan » Sun Sep 12, 2010 2:43 pm

Hey, I've checked the jars.
It was a simualtan fight, so that
1. Kill all defenders.
2. Fight each other.

50 P1 vs 49 P2 vs 20 neutrals => 40 P1 vs 39 P2 => 1 P1.
50 P1 vs 49 P2 vs 120 neutrals => 21 N

Now its really a max-ships wins.

So 50 P1 vs 49 P2 vs 20 neutrals => 1 P1
So 50 P1 vs 49 P2 vs 120 neutrals => 70 N

IMHO, it was more complicated for > 2 players, but "reallystically".
gaolyan
Cadet
 
Posts: 6
Joined: Sun Sep 12, 2010 2:27 pm


Return to Strategy

Who is online

Users browsing this forum: No registered users and 2 guests

cron