It's for an AI experiment, I decided that since tic tac toe is essentially solved, I can just store all possible boards inside of the program. However, it would be easiest to store all board combinations inside of a text file, so would the best way to do it would be to create a C script to create the text file with all possible board combinations?
The format would look something like this (blank board):
"board000000: | | \n--------\n | | \n--------\n | | "
The first board would probably look like this:
"board000001: X| | \n--------\n | | \n--------\n | | "
And so on.