Fix maximum buy price

The maximum possible buy price is 110, not 109.
master
Peter Shih 5 years ago committed by GitHub
parent bd4cf7fff7
commit 0ea7fa5837
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -551,7 +551,7 @@ function* generate_possibilities(sell_prices) {
yield* generate_pattern_2(sell_prices); yield* generate_pattern_2(sell_prices);
yield* generate_pattern_3(sell_prices); yield* generate_pattern_3(sell_prices);
} else { } else {
for (var buy_price = 90; buy_price < 110; buy_price++) { for (var buy_price = 90; buy_price <= 110; buy_price++) {
sell_prices[0] = sell_prices[1] = buy_price; sell_prices[0] = sell_prices[1] = buy_price;
yield* generate_pattern_0(sell_prices); yield* generate_pattern_0(sell_prices);
yield* generate_pattern_1(sell_prices); yield* generate_pattern_1(sell_prices);

Loading…
Cancel
Save