lsa-pucrs / mas-pc-pucrs-2016

Repository for the 2016 MAS programming contest: https://multiagentcontest.org/
2 stars 1 forks source link

Bug - Buying bases even when there is no stock #47

Closed tbasegio closed 9 years ago

tbasegio commented 9 years ago

Buying bases even when there is no stock

Only one shop available: shop1 shop1 updated to have only 5x base1 and restock=0 It was posted a priced job: job2 - 1x material2 material2 needs 10x base1

Result: Vehicles bought 8x base1 to assemble tool3 and also bought 10x base1 to material2. It seems bases were bought without stock.

Looking at the shoplist in the vehicles believes: shopsList([shop(shop1,[item(base3,0,0,0),item(tool2,0,0,0),item(base1,0,0,0),item(base2,0,0,0),item(tool1,0,0,0),item(tool3,0,0,0)])])[source(self)].

(TS#20)

rafaelcaue commented 9 years ago

Reabrindo pois a nova maneira que estamos tratando artefatos individuais deu problema com a minha solução.

Desativei ela e vou ter que revisar futuramente.