Menu

#13 Separate Artificial-Intelligence code from user-interface

open
nobody
None
3
2009-08-15
2009-08-15
BenRayfield
No

Reorganize the code.

The core AI code is only around 30 kilobytes but is extremely effective.
Thats not including the JCodeTree class because thats only a way to modify Java code. Its not intelligent.

It should allow any number of devices to be added. Right now, its hard-coded as mouse and speakers.

The window is connected to the SoundCard class too much.

Javassist is in its own folder and is mostly separated from Audivolv, but the only way Audivolv uses it is through the window object.

There are window event problems on Macintosh, but if you do not go into the options, evolving music with the mouse works.

There are X and XHome classes, for various values of X. Those are ok.

The anyfiles folder contains everything thats not code. It should be separated from the AI code and the window.
It contains the small example Java codes in the hypercube folder in .txt files, and thats mostly what AI uses in that folder.

Combine the Log interface with the Mount interface which already has an append function. The reason its not already combined is it has a flushLog function and append throws Exception while log does not. Not enough reason for different interface.

Discussion