
Completed the first iteration of my AI Tool
Oct 29, 2024
2 min read
0
13
0
So today marks the day I am going to start with the second Iteration. Why am I making such a clear distinction? Well I have found some challenges along the way that I wasn't expecting. So I will be changing the way the data is structured. So to know where we are going we need to have an understanding of how the data is currently situated. Currently I am using a class called a StatisticBank to which is a storehouse for any data that I want to hold onto. So this class just manages the incoming data and stores it in whatever format that is required and just manages the amount of data that I am currently storing. Example would be that I am only storing 10 decision events per patron. Next we have the consumer of the data which is my tool that I have created to show the data for the pawns decisions. Currently I am just storing all the data as a Dictionary where <PatronID, List<PatronHistoryStruct>> When the tool is refreshed it just makes a local copy to the tool so that the StatisticBank can continue to store data without impeding the tool from looking nor will it change the data till Refresh is hit again.

Now the problem I am running into is that I want to start storing target considerations but the current data struct will make it hard for flexible coding in the sense that not every Action has target considerations and I want an easy way to compare why Store1 vs Store2 was chosen. So my current Idea now is that I will create GraphNodes that will encapsulate data at each level that I require. The basic idea will be that Root(holds the all the patrons)-> Patron->TimeEntrys->Decisions-> Here Is where I was having a problem with the flexibility. What if I want to look at why a choice wasn't chosen? My current code would have to have a huge if else. But what if I took the base GraphNode and just had everyone "DisplayData()" then I could pass in any node and it would be displayed based on it's own type. This is my current idea in working with the Unity Editor. So feel free to keep checking in or if you have suggestions or ideas I would love to hear from you. Remember Take care of yourself and each other.
Till Next time Stay safe.
-BrokePixel


