URL:
<http://gna.org/patch/?1170>
Summary: Partial fix for nondeterministic Formula AI methods
Project: Battle for Wesnoth
Submitted by: benetnash
Submitted on: Sunday 04/26/2009 at 18:48
Priority: 6
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
I attached patch for partial solution of
https://gna.org/bugs/?13431
It adds two methods do_compare, one for move_callable and one for
attack_callable.
They allow to run tomap(my_moves.moves) and tomap(my_attacks.attacks) in
deterministic way.
Moves are compared by src locations and then by dst.
Attacks are compared by move_from first, then by attacker location and then
by defender location.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Sunday 04/26/2009 at 18:48 Name: do_compare.patch Size: 3kB By:
benetnash
<http://gna.org/patch/download.php?file_id=5710>
_______________________________________________________
Reply to this item at:
<http://gna.org/patch/?1170>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs