You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've had a quick look at the code, think this needs to be changed.
if(s.owner===p.index&&!s.mortgage){if(s.house===0){mortgage(i);console.log(s.name);}else{// logic to sell houses/hotels in each land consecutively as needed}}
I'd love to open a PR with necessary changes if you want me to. Thanks!
The text was updated successfully, but these errors were encountered:
AI is unable to sell houses/hotels on lands and as a result it declares in bankruptcy (while having more property to sell/mortgage)
https://github.com/intrepidcoder/monopoly/blob/master/ai.js#L177-192
I've had a quick look at the code, think this needs to be changed.
I'd love to open a PR with necessary changes if you want me to. Thanks!
The text was updated successfully, but these errors were encountered: