Although I am probably not going to continue with this project. I feel the need to defend the concept, because it will also be useful for other turn based / question and answer games, as well as chess.
I was watching a TV program on AI. It included a demonstration of a thought experiment called “the Chinese room”. https://en.wikipedia.org/wiki/Chinese_room
this is a good analogy of the little chess bot. Or any other chat bot.
Merlin correctly says that there are 20 opening moves. I say that working with in the limits of good moves by competent players who want to win, then the number drops to less than half that. He also points out that as early as the third move the number of mathematical possibilities would become very large. I would point out that at move ten that the number of chess openings is small enough that they have all been named, and can be looked up in any book of chess openings.
The idea of using a branching script made up of a large number of games is, that instead of trying to calculate every thing. for each position in the game a very small number of good moves have been picked by the players who’s games have contributed to that branch of the script. And that the script continues beyond that point.
The script that would be very large, being made up of thousands of games. But because of the way games are recorded, which is similar to a chatscript script would have made it doable. Sadly the problem of how to make the bots choices divide the script, in the same way players defeats me. [for now]. I called it the little chess bot because I intended for it to be less then complete and part of something else.