|
-
Feb 18th, 2003, 12:34 PM
#1
Thread Starter
New Member
newbie C question
i have a difficult question:
i want to build a program like chess
i would like to program a main program once. it should be able to prepare the game field and check if a move is correct or not and then call step by step two different functions written by anyone, which calculate the next move
my question: how can i organize my main program so that it is possible to add at any time any new ai function to calculate a good move without changing my main function. it would be fantastic if it would be possible that the program recognizes itself how many different ai functions are awailable and then let the user choose which to use
my english is not that good, so again in german
ich möchte ein programm bauen, dass ein schachspiel (für den anfang erstmal was einfacheres) darstellt. dabei soll das programm selbst nur das spielfeld zur verfügung stellen und nicht die berechnung für die einzelnen züge zur verfügung stellen. die einzelnen züge sollen später von anderen programmteilen berechnet werden. ich plane dabei mit ein paar leuten, das jeder seine eigene funktion bastelt und dann alle funktionen im hauptprogramm eingebunden werden so dass man die einzelnen computer gegeneinander antereten lassen kann
wie kann ich es programmieren das mein hauptprogramm merkt welche funktionen zur verfügung stehen und sie dann einbindet?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|