-
Notifications
You must be signed in to change notification settings - Fork 48
Add market object for resource trading #4359
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: daveey-remote-aoe
Are you sure you want to change the base?
Conversation
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
f91cb6d to
87aebf4
Compare
b35df07 to
f7b7e27
Compare
d47a43e to
fc76f37
Compare
f7b7e27 to
978275d
Compare
This comment has been minimized.
This comment has been minimized.
978275d to
d717356
Compare
fc76f37 to
c693bb8
Compare
d717356 to
5c3c4f9
Compare
c693bb8 to
63fdcce
Compare
5c3c4f9 to
b88fb5b
Compare
3329320 to
4c0fb69
Compare
54dd7af to
24f95b0
Compare
4c0fb69 to
581fbe5
Compare
24f95b0 to
b9a5560
Compare
581fbe5 to
5126a10
Compare
b9a5560 to
9cc4075
Compare
5126a10 to
7f571eb
Compare
9cc4075 to
f262323
Compare
7f571eb to
105644a
Compare
f262323 to
905a876
Compare
105644a to
3820898
Compare
905a876 to
9deb42d
Compare
3820898 to
fb20e64
Compare
|
Looks like there are a few issues preventing this PR from being merged!
If you'd like me to help, just leave a comment, like Feel free to include any additional details that might help me get this PR into a better state. You can manage your notification settings |

TL;DR
Added a new Market object that allows agents to buy and sell resources using hearts as currency.
What changed?
MarketandMarketConfigclasses to implement a trading systemopposite_direction()to determine which terminal an agent is usingHow to test?
Run the new test file
test_market.pywhich covers:You can also create a map with a market object and configure terminals on different sides to test buying and selling with different vibes.
Why make this change?
This adds an economic system to the game, allowing agents to trade resources and establish a currency-based economy. The market provides a way for agents to convert between different resource types at dynamically calculated prices, creating interesting economic dynamics and giving value to resource collection.