Complete.Org: Mailing Lists: Archives: freeciv: October 2003:
[Freeciv] test of new formula
Home

[Freeciv] test of new formula

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv@xxxxxxxxxxx
Subject: [Freeciv] test of new formula
From: Horn Gábor <Horn.Gabor@xxxxxxxxxxx>
Date: Thu, 09 Oct 2003 19:56:47 +0200

Hi!
I've implemented the new formula for the doranking. (maybe u remember,
this one:

v(i)=p(i) + T*(w(ally1)*s(ally1) + w(ally2)*s(ally2) +...)

). I tested it on the 232329 game, which i described in one of the
previous letters. Here are the results (a bit redundant but it's easier
to see it this way):

1, Points before the game:

Zed: 1416
Mindaugas: 1000
Red Cloud: 1370
Brons: 960
Pango: 856
Ozzy: 966
David: 915
Hirisov: 1658

2, Alliances:

Mindaugas and Zed formed an alliance.
Ozzy and Mindaugas formed an alliance.
Pango and Mindaugas formed an alliance.
(+1 undetectable citygiving, when David gave all his cities to
Mindaugas). 

3, results w/ original script  (no check for alliances):

Zed: 1466 (+50)
Hirisov: 1633 (-25)
Mindaugas: 997 (-3)
Red Cloud: 1356 (-14)
Brons: 957 (-3)
Pango: 855 (-1)
Ozzy: 963 (-3)
David: 914 (-1)

4, results w/ the new script (C1=0.4, C2=0.05, N=20)

Zed: 1468 (+52)
Hirisov: 1644 (-13)
Mindaugas: 969 (-30)
Red Cloud: 1366 (-4)
Brons: 959 (0)
Pango: 855 (-1)
Ozzy: 964 (-2)
David: 915 (0)

Notes:

1, it can be seen that the players w/o alliances lose less points now.
2, i don't examine chain allies yet!!! So in this result Zed and Pango
doesn't count be allied, althought both of them was allied to Mindaguas.
3, because of 2, Mindaguas loose a lot, as he couldn't win even after
forming 5 allies.

Well it's an extreme example, i'd make tests too w/ other games which
contains (less obvious) gangbangs/alliances.

I'll test teamgames too. i attach the new doranking.log.

bye, hirisov



-- Attached file included as plaintext by Ecartis --
-- File: doranking.log

run 1065720220
/home/freeciv/.freeciv/games/232329/gamelog
got 95.000000 turns
Found status information in gamelog.
Nation-Player relations calculated:
Pango plays as Germans
Ozzy plays as Indians
Zed plays as Czechs
Hirisov plays as Hungarians
David plays as Israelis
Red Cloud plays as Sioux
M3ss14H plays as Kenyans
Brons plays as Dutch
Mindaugas plays as Lithuanians
Current maximum points, needed for calculation. T=1764.2366410319
Zed: human: 95 ai: 0
winning player = Zed,316
Hirisov: human: 91 ai: 4
losing player = Hirisov,275
Mindaugas: human: 95 ai: 0
losing player = Mindaugas,235
Red Cloud: human: 56 ai: 39
losing player = Red Cloud,145
Brons: human: 57 ai: 38
losing player = Brons,125
M3ss14H: human: 0 ai: 95
losing player = _AI_,122
Pango: human: 73 ai: 22
losing player = Pango,121
Ozzy: human: 79 ai: 16
losing player = Ozzy,106
David: human: 67 ai: 28
losing player = David,34
tv: human: 89 ai: 3
losing player = tv,0
tv1: human: 24 ai: 7
losing player = tv1,0
Alliances (those who did tech exchange) are calculated:
Mindaugas and Zed formed an alliance.
Ozzy and Mindaugas formed an alliance.
Pango and Mindaugas formed an alliance.
Calculating weight and strength factor of players. 
Format: player name, current ranking points, weight[0-1], strength[0.05-0.6]
Pango, 855.842791190707, 0.8, 0.05
Ozzy, 965.703454174496, 1, 0.05
Zed, 1416.39031602122, 1, 0.59512987012987
Hirisov, 1658.13506008711, 1, 0.598579545454545
David, 915.369339074197, 1, 0.05
Red Cloud, 1369.56996849169, 1, 0.593100649350649
Brons, 959.781639680099, 0.3, 0.05
Mindaugas, 999.869916481381, 1, 0.16737012987013
Calculating 'virtual' ranking points used in the current game. 
Format: player name, current ranking points, calculated ranking points due to 
alliances
Pango: 855.842791190707 , 1151.12330692186
Ozzy: 965.703454174496 , 1260.98396990565
Zed: 1416.39031602122 , 1711.67083175237
Hirisov: 1658.13506008711 , 1658.13506008711
David: 915.369339074197 , 915.369339074197
Red Cloud: 1369.56996849169 , 1369.56996849169
Brons: 959.781639680099 , 959.781639680099
Mindaugas: 999.869916481381 , 2208.60113722992
Finally here comes the modifications for the current rankings: 
Zed 1416.39031602122 + 0
tv1 610.461379573265 - 0
Zed 1416.39031602122 + 0
tv 431.581637782297 - 0
Zed 1416.39031602122 + 0.323580509127059
David 915.369339074197 - 0.323580509127059
Zed 1416.71389653035 + 2.22406870461412
Ozzy 965.703454174496 - 2.22406870461412
Zed 1418.93796523496 + 1.22145987412493
Pango 855.842791190707 - 1.22145987412493
Zed 1420.15942510909 + 0
_AI_ 900.876385216614 - 0
Zed 1420.15942510909 + 0.416615749641804
Brons 959.781639680099 - 0.416615749641804
Zed 1420.57604085873 + 3.91888239213184
Red Cloud 1369.56996849169 - 3.91888239213184
Zed 1424.49492325086 + 30.2675847297328
Mindaugas 999.869916481381 - 30.2675847297328
Zed 1454.76250798059 + 13.5539153353294
Hirisov 1658.13506008711 - 13.5539153353294
tv1 610.461379573265
tv 431.581637782297
David 915.04575856507
Ozzy 963.479385469882
Pango 854.621331316582
_AI_ 900.876385216614
Brons 959.365023930457
Red Cloud 1365.65108609956
Mindaugas 969.602331751648
Hirisov 1644.58114475178
Zed 1468.31642331592




[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv] test of new formula, Horn Gábor <=