There's almost never any science or systematic approach to evaluation.
How can you possibly evaluate a test without predefined criteria for evaluating that makes the result good and what makes it bad?
Whether or not the code is "good" is simply a matter of opinion in almost all cases.
Another down side to coding tests is that if the assessor knows less than you about some area of coding and sees something they don't recognise or understand, then they might well negatively view what in fact is a much better way of doing things.
And, much worse than anything else, you have a very tangible chance of spending 12 hours doing it and hearing nothing back at all.
And as for "Tic Tac Toe" as ANY sort of effective test topic, well, that's where you should pull out and find a different job to apply for, where they can at least formulate a relevant test topic and come up with tangible and defined criteria for measurement as well as a commitment from their end as to who will assess it, against what criteria and within what time frame and what feedback they will give you, if any. Ditch the Tic Tac Toe companies.
I did two coding tests in recent years ... in one, their feedback was "they didn't like it", and the other one I worked on for 12 hours because I believe in doing a good job and meeting the requirements, and I heard nothing at all back - not a single word.
Coding tests are, for the most part, bullshit.