http://ai.neocities.org/AiSteps.html#MainLoop
Code the MainLoop in your chosen programming language. Use either an actual loop with subroutine calls, or make a ringlet of perhaps object-oriented module stubs, each calling the next stub. Provide the ESCAPE key or other mechanisms for the user to stop the AI. Spread your code around the Web and invite AI coders to expand on it. Watch for a proliferation of unique AI Mind entities evolving rapidly on the Web and competing genetically for the survival of the fittest.
http://www.scn.org/~mentifex/AiMind.html in English;
http://www.scn.org/~mentifex/DeKi.txt in German;
http://www.scn.org/~mentifex/Dushka.html in Russian;
http://www.scn.org/~mentifex/mindforth.txt English.