chaitu236 / TakWeb

Javascript based Tak client
https://www.playtak.com
GNU General Public License v2.0
39 stars 18 forks source link

Request: Bot Meta data in PTNs #56

Open nqeron opened 8 years ago

nqeron commented 8 years ago

It would be nice to be able to pass meta-data into PTNs for bot play. For example, if I were to play against friendlybot, I'd like to be able to have a record of the level at which I was playing.

Maybe something like this:

[Site "PlayTak.com"] [Event "Online Play"] [Date "2016.06.24"] [Player1 "X"] [Player2 "FriendlyBot - level 6"] [Result "R-0"] [Size "6"]

chaitu236 commented 8 years ago

Thanks for the suggestion. Right now there is no way for server to know FriendlyBot's level. I'll think about whether I should add an API for that.

TreffnonX commented 8 years ago

It could go with the bot interface modifications. Maybe the interface could include a meta-info block which stores key values that can be added (sorted alphabetically) to the PTN. So any bot could just add any arbitrary key value pair like: level:6; version:1.4.1; plies:8.... and so forth. The key value pairs themselves don't even need to match any semantics on server side, the server would just paste them into the PTN (or show them on info request - right click on the bot->info). This way, users could quickly find botrelated information. The realization is simple too: just add a treemap with string-string generical content and use the .values() function to find all entries.