So I have the economy running and graphs are up and showing me that I have a bunch of bugs in my economy code. Some goods are being bought but others are not. Why? I don't know, but the goods that are being bought are definitely working.
But I'm stuck at something stupid. Player orders. It's…
So the time has come...I need to polish the UI and user experience. I finished up the economy and I'm pretty happy with it. It seems stable. I haven't run it through 10,000 turns or anything, but its workable.
So, we have 3 times of companies, we have licenses that easily determine what cate…
Huzzah! Not much to really show since everything happens in Debug.Logs and code, but markets are done.
So what can retail agents do? Right now they can choose between restaurants or super markets...both of them have a different lists of goods. The restaurants will have the more complex good …
This weekend I probably put in around 20 hours with my economy code. I ripped up everything and slowly rebuilt it in a new class, transferring over logic. My controller code is now just a flow controller, and all the logic is contained in the actual companies and contract logic.
So what can …
The refactoring of the market code is trucking along. I've learned so much about C# and programming since I first wrote it, and my design has changed since then, so I'm using the old pseudocode as my template while rewriting the class itself. It's not really hard. My new code looks like this:
…The data model merge took place. I broke the code and then rebuilt it. This is actually more fun than I imagined.
So, now I'm working on refactoring the market code to allow it to be extensible as I add in company behavior. All the market decisions were being handled inside the market contro…
So, I think I've designed a possible solution to my tree problem.
First off, I really like C#. My background when I was young was C++, and learning data structures and pointers was interesting. I did really well with assembly language, and enjoyed those kind of recursive things. But I never …