Need expert help for a maybe a very simple question

0

Hi! I am building for free a tool children to learn and play board games. For this board game there is an AI engine that works on command line. I installed this engine (including its books (=internal database with moves)) on an EC2 linux instance. I can run it and it works. Wow. Anyway, for a non-expert this is a win already.

Anyway, I want to be able to somehow call this AI engine and send some simple (as per AI protocol) commands and wait for the info back. Basically what would happen when I run the executable on and type the commands. I presume this requires some kind of API that I then can call? I have no clue. I am just a simple man trying to do something good and if someone can help me he/she will be honored on the website forever! Please!

I am available to supply all info!

  • The best option is if the AIengine has a published API. Failing thatm can the command-line AI engine be called with commands passed as parameters or is it only interactive? If the former then you can front-end the commands to make an API. Otherwise you may need to write a screen scraper - see https://en.wikipedia.org/wiki/Data_scraping

  • I am not totally familiar with all you say. The AI engine can be started on a linux instance like e.g. './AI hub' the hub parameter then allows me to communicate with the engine by typing simple commands and then it spits out a lot of data and ends with a move. So I want to basically run this AI engine on AWS and then from a distance (from my App) send the commands there and get the info back.

MBVL
gefragt vor einem Jahr93 Aufrufe
Keine Antworten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen