How do I fix this?

Find me the bug (I have tried for hours),

Tic Tac Toe AI system

Square pressed(1) → Make the main square claimed(2) → Check which square is claimed(CWISC/3) → Check every square claimed and send channels updating the appropriate RVs(Result Value) with appropriate amounts according to the situation(I am testing this so only 1 was made… 7 more to go!)(4) → Then check the RVs and check what square should be claimed according to the RV value and update IRs (Importance Rates (for each square unclaimed to be claimed))(5) → Then resetting all IRs that are already claimed (6) → Then running all IRs through a string a trigger to get the Highest Value and sending a channel to claim that square(7) → Reset all IRs (not done yet)(8)

1



Ignore the last error code but that would copied 3 times for B1, B2, B3, etc.

2



3

It was compressed and and combined with 2

4






The first three rows are the only ones that should be moving
image
image
8 more then… Also, I do trigger these with channels
image
image

5










6


7




and so on

I suspect the problem is with triggers updating IRs or even the result values because the outer triggers are moving a little.

Why are the IRs so inaccurate?

5 Likes

Ok, first we try to find the step that the problem occurs in. I assume the problem is somewhere between steps 4-8,because we are trying to find why the IR is inaccurate.

3 Likes

I think the triggers somehow end up sending wrong channels… That’s my best guess but yeah the problem has to be between 4-8 also if you wanted narrow it down even more I would say between 4-6 because the highest value checker is working fine (I checked it).

3 Likes

Wait, double check that the IRs match with the correct tile (i.e. A1 goes with IR1), because inaccuracy sometimes happens when there’s a mismatch. if its not the matching, then its most likely the calculation part. I haven’t read that section in detail yet, so i will add on when im done with that section.

Also i assume POIR is Possible Importance Rate? and what does PTIR stand for

5 Likes

I checked and no mismatching error
It might be calculation but I don’t think that it would be the problem

This is the amount trigger responsible for updating values for IRs


I will fix the last 3 but that shouldn’t be the problem

Sorry for not making that clear but POIR means Plus One (to) Importance Rate, Plus Ten Importance Rates, Plus Hundred Importance Rates.

I just started simplifying channels because I found out that there is no channel limit it is just character limit.

5 Likes

Why does X B1 and O B2 only broadcast on two rv channels

Same with X A2 & C2 and O A2 & C2

And X&O B3

5 Likes

Because it is involved in only 2 winning strategies.

6 Likes

So adding to RV is basically stating that “oh, use this strategy instead of that one” and then IR is the rate of which I should capture a certain square following that strat

In that case, it may be utilizing the wrong strat

2 Likes

Wonderfully put

I will check that

5 Likes

Any progress?

6 Likes

Sorry for the late response but when I checked it all seemed to be correct. I also think the problem may be in the system transitions from a part to another because when i had my gim just click the trigger manually it seemed to correctly.

3 Likes