Autor Beitrag
Lago
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 43



BeitragVerfasst: Di 29.11.05 09:21 
Hallöchen,

Ich möchte ein kleines Schach entwickeln und dabei eine bereits existierende KI verwenden. Zu diesem zweck benötige ich das UCI-Protokoll...
Nun alles klaro.. die hab ich. Jetzt stellt sich die Frage wie ich diese Engine des Schachprogramms ansteuern muss.. Wie kann ich ihr befehle senden?
Wie kann ich die Antwort verwenden?

Ich hab keine Ahnung und komme einfach nicht weiter... nun seit ihr gefragt. :-)

Besten Dank
Martin1966
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1068

Win 2000, Win XP
Delphi 7, Delphi 2005
BeitragVerfasst: Di 29.11.05 10:03 
Hallo! Willkommen in der Entwickler-Ecke.de! :wink2:

Mit etwas suchen bei Google hättest du unter anderem auch diesen Link gefunden: www.chessbase.de/dow....asp?cat=UCI-Engines

Wenn Du dir dann die Hilfedatei runterlädst und anschaust findest du u.a. auch diesen Hilfetext:
Zitat:
The specification is independend of the operationg system. For Windows, the engine is a normal exe file, either a console or "real" windows application.
· all communication is done via standard input and output with plain text commands,

· The engine should boot and wait for input from the GUI, the engine should wait for the "isready" or "setoption" command to set up its internal parameters as the boot process should be as quick as possible.

· the engine must always be able to process input from stdin, even while thinking.

· all command strings the engine receives will end with '\n', also all commands the GUI receives should end with '\n',

· The engine will always be in forced mode which means it should never start calculating or pondering without receiving a "go" command first.

· The engine should never execute a move on its internal chess board without being asked to do so by the GUI, e.g. the engine should not execute the best move after a search.

· Before the engine is asked to search on a position, there will always be a position command to tell the engine about the current position.

· all the opening book handling is done by the GUI, but there is an option for the engine to ues its own book ("OwnBook" option, see below)

Lg Martin

_________________
Ein Nutzer der Ecke ;-)
Lago Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 43



BeitragVerfasst: Di 29.11.05 10:09 
Die hab ich schon gefunden... und das Schachprogramm welches ich verwende hat auch eine .exe datei... über diese kann ich die befehle senden. klappt alles wunderbar....

ich möchte aber mit delphi diese engine ansteuern und resultate, resp berechnungen übernehmen. ich hab keine ahnung wie ich eine .exe datei ansteuern soll... und dann auch noch daten herauslesen?
Martin1966
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1068

Win 2000, Win XP
Delphi 7, Delphi 2005
BeitragVerfasst: Di 29.11.05 10:13 
Wäre schön wenn du immer alle Informationen gleich im ersten Posting angeben würdest dann hätte ich mir das suchen nach Informationen ersparen können. ;-)

Ist die EXE ein Konsolenprogramm? Wenn ja dann such mal nach Suche in der Entwickler-Ecke TDOSCOMMAND. Damit kannst du ein Konsolenprogramm starten und die Ein- und Ausgabe relativ einfach über Events und Methoden steuern.

Lg Martin

_________________
Ein Nutzer der Ecke ;-)
Lago Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 43



BeitragVerfasst: Di 29.11.05 10:17 
Hehe, alles klaro Martin.

ich werds gleich einmal ausprobieren... sonst weiss ich ja wo ich dich finden kann... :wink:

Danke.