Teletraan

A clojure library collecting various AI

View project onGitHub

teletraan

Teletraan 1 was the main computer in the Transformers (G1) series.

This is a playground for any AI I want to try out in clojure. Right now I'm only doing a simple GA to evolve the alphabet but I want to add min/max trees as well as alpha/beta trees.

Usage

Right now there isn't much here. Just a simple GA to evolve a toy problem. The next step is to create a working Coup game. I'll probably look into representing this as a FSM. The AI will be simple agents coded up with a seq of probabilities of what they will do. That seq will be the basis for evolving better AI.

Examples

You can prove that the GA works by starting a repl with lein repl and doing the following:

teletraan.core=> (use 'ga.core)
nil
teletraan.core=> (ga.core/evolve)
{:chromosome (\a \b \c \d \e \f \g \h \i \j \k \l \m \n \o \p \q \r \s \t \u \v \w \x \y \z), :fitness 26}

This shows that the GA is working. More logging needs to be added for better stats tracking and debugging.

Copyright © 2014 Jonathan Hicks

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.