JoyAdmin;24738 wrote:It would be a long way to implement JSON api, since A.I. speed in HS is crucial, deck rule is the fastest 'API' compare to any other script based interface.
I don't follow. It shouldn't take more than 1 millisecond to process 2 JSON requests per turn which happens every 2-30 seconds.
If I can write the AI in C++ it would save much more than a few milliseconds per turn. If you have any rules or scripts, they would of course have to be implemented in the external process.
It would be like UAI external process mode except you would use a real protocol like HTTP JSON instead of a random plaintext format.
HearthRanger -> JSON board state -> external process -> JSON best moves -> HearthRanger