melker / colorplanet

0 stars 0 forks source link

Partially fulfull trades #233

Closed melker closed 9 years ago

melker commented 9 years ago

https://plus.google.com/+ErikMelkersson/posts/jV1VyokybCF

melker commented 9 years ago

acceptTradeOffer method has been prepared and tested for partial trades. Todo: server: parameter and call to it, tradeAccept-file client: select how much to fullfill. Calc gcd (costcount, sellcount) and use as divisor for the steps of the slider.

melker commented 9 years ago

public int GCD(int a, int b) { return b==0 ? a : GCD(b, a%b); }

melker commented 9 years ago

0.5.23