[Freeciv-Dev] Re: (PR#7282) connect as orders
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<URL: http://rt.freeciv.org/Ticket/Display.html?id=7282 >
Gregory Berkolaiko wrote:
> Another solution is to add a large number to each move cost which will
> force the rest to act as a tie-breaker. This might not be a bad idea.
> The only worry is how large this number can be not to cause an overflow in
> total_CC = PF_TURN_FACTOR * total_MC + move_rate * total_EC
> where PF_TURN_FACTOR is 65536
Impossible. We only have 16 bits to work with and we need (I figure) at
least 21. We need 8 bits for the number of steps since this value may
be as high as 200.
jason
- [Freeciv-Dev] Re: (PR#7282) connect as orders, Jason Short, 2004/05/16
- [Freeciv-Dev] Re: (PR#7282) connect as orders, Gregory Berkolaiko, 2004/05/17
- [Freeciv-Dev] Re: (PR#7282) connect as orders,
Jason Short <=
- [Freeciv-Dev] Re: (PR#7282) connect as orders, Gregory Berkolaiko, 2004/05/17
- [Freeciv-Dev] Re: (PR#7282) connect as orders, Jason Short, 2004/05/17
- [Freeciv-Dev] Re: (PR#7282) connect as orders, Jason Short, 2004/05/17
- [Freeciv-Dev] Re: (PR#7282) connect as orders, Gregory Berkolaiko, 2004/05/18
- [Freeciv-Dev] (PR#7282) connect as orders and PF extension, Gregory Berkolaiko, 2004/05/18
|
|