Question: I have to do cycle checking in a game I am making in C#. That means I have to check if I have ALREADY been
I have to do cycle checking in a game I am making in C#. That means I have to check if I have ALREADY been to some previous state.
A state in my code is just a list on ints. For example:
List
Basically I need to keep track of all states I have previously been to by adding them to some sort of hash table and then checking if it is already in the hash table.
Unfortunatly, I have no idea how to do this. Can you please tell me how I can create, add states to and check if a state has already been added to a hash table.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
