Skip to content

Bug with big number of civil ships  #42

@koraykarakus

Description

@koraykarakus

There is problem with big number of small cargo, heavy cargo, and recycler,
attacker :
small cargo : 7,000,000
battlecruiser : 40,000

defender:
small cargo : 2,700,000
battlecruiser : 15,000

after battle

attacker :
small cargo : 6440792
battlecruiser : 39857

defender:
small cargo : 2,700,000
battlecruiser : 15,000

result :
The battle ended in a draw
The attacker has lost a total of 2 246 842 000 units.
The defender has lost a total of 0 units.

problem : attacker has bigger number of ships, more battlecruisers but he cannot drop even 1 ship of defender.

test code used :
<?php require ("../../RunnableTest.php"); class MyTest extends RunnableTest { public function getAttachers() { $fleet = new Fleet(1,array( $this->getShipType(202, 7000000), $this->getShipType(215, 40000))); $player = new Player(1, array($fleet)); return new PlayerGroup(array($player)); } public function getDefenders() { $fleet = new Fleet(2,array( $this->getShipType(202, 2700000), $this->getShipType(215, 15000))); $player = new Player(2, array($fleet)); return new PlayerGroup(array($player)); } } new MyTest(); ?>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions