Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

JSON api for AI
ralphy
#1 Posted : Saturday, March 28, 2015 2:12:39 AM(UTC)

Rank: Advanced Member

Groups: Registered
Posts: 38

Was thanked: 5 time(s) in 3 post(s)
It would be nice if there was a HTTP JSON api for AIs to interface with.

That way people could write AIs in faster languages and not worry about creating and updating the stub with HearthRanger.

It would also pave the way for AI vs AI simulations to improve playing strength.
JoyAdmin
#2 Posted : Saturday, March 28, 2015 1:05:16 PM(UTC)
Rank: Administration

Groups: Administrators
Posts: 4,847

Thanks: 805 times
Was thanked: 4539 time(s) in 1637 post(s)
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.

ralphy
#3 Posted : Saturday, March 28, 2015 3:40:57 PM(UTC)

Rank: Advanced Member

Groups: Registered
Posts: 38

Was thanked: 5 time(s) in 3 post(s)
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
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.043 seconds.