Complete.Org: Mailing Lists: Archives: freeciv-dev: March 2005:
[Freeciv-Dev] Re: (PR#4387) The Return of the Rand() Moves
Home

[Freeciv-Dev] Re: (PR#4387) The Return of the Rand() Moves

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: per@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#4387) The Return of the Rand() Moves
From: "Christian Knoke" <chrisk@xxxxxxxxx>
Date: Mon, 7 Mar 2005 04:11:42 -0800
Reply-to: bugs@xxxxxxxxxxx

<URL: http://bugs.freeciv.org/Ticket/Display.html?id=4387 >

On Sun, Mar 06, 2005 at 10:44:23AM -0800, Jason Short wrote:
> 
> <URL: http://bugs.freeciv.org/Ticket/Display.html?id=4387 >
> 
> > [per - Wed Mar 02 12:07:42 2005]:
> > 
> > This patch removes random movement in favour of not allowing movement if
> > you 1) do not have full movement points and 2) do not have enough movement
> > points to move into the target tile. I did some playtesting, and I must
> > say find the impact of this change very small. However, as you might
> > remember from previous discussions, its impact on the simplicity of other
> > code is great (not shown in this patch).
> 
> A more balanced way to choose might change (1) to "if you do not have at
> least 1 move point".

I add another suggestion for an alternative rule:

    "reach target if you have more than half of the movepoints required to
    enter terrain type"

Now we have 4 possible rules:

Subject: When does a unit reach a tile if act. MP < terrain request?


Rule A (current rule): reach target tile with random chance (act.MP/tile
        request) percent OR act. MP = full MP

Rule B: reach target only if act. MP >= tile request OR act.MP = full MP

Rule C: reach target only if act. MP >= tile request OR act. MP >= 1 MP

Rule D: reach target if act. MP > (tile request / 2) OR act. MP = full MP


I filled out a OO spreadsheet to see what it means.
        
Attached are movement.sxc, movement.html, and movement.txt
with similar content, for your convinience.

Design board once suggested to have the 50% threshold in Rule D as an
option.

Christian

-- 
Christian Knoke            * * *            http://cknoke.de
* * * * * * * * *  Ceterum censeo Microsoft esse dividendum.

Attachment: movement.sxc
Description: OpenOffice Calc spreadsheet

Freeciv Movement Rules

Rule A (current rule): reach target tile with random chance (act.MP/tile request) percent OR act. MP = full MP

Rule B: reach target only if act. MP >= tile request OR act.MP = full MP

Rule C: reach target only if act. MP >= tile request OR act. MP >= 1 MP

Rule D: reach target if act. MP > (tile request / 2) OR act. MP = full MP







Chance (%) to reach terrain (Rules A B C D)






Road Plains Hills Mountains






0,3 0,3 0,3 0,3 1,0 1,0 1,0 1,0 2,0 2,0 2,0 2,0 3,0 3,0 3,0 3,0
Unit MP act. MP full MP? MP>=1? Remarks A B C D A B C D A B C D A B C D






















Tank 3 3 yes yes
100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100

3 2,33 no yes
100 100 100 100 100 100 100 100 100 100 100 100 78 0 100 100

3 1,67 no yes
100 100 100 100 100 100 100 100 84 0 100 100 56 0 100 100

3 1 no yes
100 100 100 100 100 100 100 100 50 0 100 0 33 0 100 0

3 0,67 no no
100 100 100 100 67 0 0 100 34 0 0 0 22 0 0 0
Dragoons 2 2 yes yes
100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100

2 1,33 no yes
100 100 100 100 100 100 100 100 67 0 100 100 44 0 100 0

2 0,67 no no
100 100 100 100 67 0 0 100 34 0 0 0 22 0 0 0
Musketeer 1 1 yes yes
100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100

1 0,67 no no
100 100 100 100 67 0 0 100 34 0 0 0 22 0 0 0

1 0,33 no no
100 100 100 100 33 0 0 0 17 0 0 0 11 0 0 0
Alpine Troops 1 1 yes yes IGNTER 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100

1 0,67 no no
100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100

1 0,33 no no
100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100
   Freeciv Movement Rules

   Rule A (current rule): reach target tile with random chance (act.MP/tile
   request) percent OR act. MP = full MP

   Rule B: reach target only if act. MP >= tile request OR act.MP = full MP

   Rule C: reach target only if act. MP >= tile request OR act. MP >= 1 MP

   Rule D: reach target if act. MP > (tile request / 2) OR act. MP = full MP

         |  |    |    |      |       |Chance (%) to reach terrain (Rules A B C 
D)
         |  |    |    |      |       |     Road      |    Plains     |     
Hills     |   Mountains
         |  |    |    |      |       
|0,3|0,3|0,3|0,3|1,0|1,0|1,0|1,0|2,0|2,0|2,0|2,0|3,0|3,0|3,0|3,0 
Unit     |MP|act.|full|MP>=1?|Remarks|A  |B  |C  |D  |A  |B  |C  |D  |A  |B  |C 
 |D  |A  |B  |C  |D   
         |  | MP |MP? |      |       |   |   |   |   |   |   |   |   |   |   |  
 |   |   |   |   |
---------+--+----+----+------+-------+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---
Tank     |3 | 3  |yes | yes  |       
|100|100|100|100|100|100|100|100|100|100|100|100|100|100|100|100 
         |3 |2,33| no | yes  |       
|100|100|100|100|100|100|100|100|100|100|100|100| 78|  0|100|100 
         |3 |1,67| no | yes  |       |100|100|100|100|100|100|100|100| 84|  
0|100|100| 56|  0|100|100 
         |3 | 1  | no | yes  |       |100|100|100|100|100|100|100|100| 50|  
0|100|  0| 33|  0|100|  0 
         |3 |0,67| no |  no  |       |100|100|100|100| 67|  0|  0|100| 34|  0|  
0|  0| 22|  0|  0|  0 
Dragoons |2 | 2  |yes | yes  |       
|100|100|100|100|100|100|100|100|100|100|100|100|100|100|100|100 
         |2 |1,33| no | yes  |       |100|100|100|100|100|100|100|100| 67|  
0|100|100| 44|  0|100|  0 
         |2 |0,67| no |  no  |       |100|100|100|100| 67|  0|  0|100| 34|  0|  
0|  0| 22|  0|  0|  0 
Musketeer|1 | 1  |yes | yes  |       
|100|100|100|100|100|100|100|100|100|100|100|100|100|100|100|100 
         |1 |0,67| no |  no  |       |100|100|100|100| 67|  0|  0|100| 34|  0|  
0|  0| 22|  0|  0|  0 
         |1 |0,33| no |  no  |       |100|100|100|100| 33|  0|  0|  0| 17|  0|  
0|  0| 11|  0|  0|  0 
Alpine   |1 | 1  |yes | yes  |IGNTER 
|100|100|100|100|100|100|100|100|100|100|100|100|100|100|100|100 
Troops   |  |    |    |      |       |   |   |   |   |   |   |   |   |   |   |  
 |   |   |   |   |
         |1 |0,67| no |  no  |       
|100|100|100|100|100|100|100|100|100|100|100|100|100|100|100|100 
         |1 |0,33| no |  no  |       
|100|100|100|100|100|100|100|100|100|100|100|100|100|100|100|100 

[Prev in Thread] Current Thread [Next in Thread]