I am coding the game and I am a bit stuck on how to handle collisions. Here is how it works:
You have three buttons for example A, B, C. A = 1, B = 2, C = 3. If I press ABC, the sum would be 1 + 2 + 3 = 6. After the total calculation I will use total value as a key and fetch the data from the map. Here is were I am a bit stuck. When I do BBB = 6 and ABC = 6 I get a conflict or AAC = 5 and BBA = 5. How do I avoid these collisions. I dont mind rewriting the entire thing but I am pretty sure there are some kind of techniques on handling these kind of problems.
Thanks.