egmzcrz / Robby-the-robot

A genetic algorithm to evolve a soda can cleaning robot.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Robby-the-robot

A genetic algorithm to evolve a soda can cleaning robot.

Compiling

In terminal:

gcc robby_ga.c functions.c -o ROBBY
./ROBBY

The main program, ROBBY, generates two files: report.dat and strategy.dat. Report.dat just shows some stats used in the program while strategy.dat encodes how Robby must move.

##Visualizing In terminal:

gcc plot_strategy.c functions.c -o PLOT_STRATEGY
./PLOT_STRATEGY strategy.dat

Robby's cleaning session after a 20,000 generation evolution

alt tag

About

A genetic algorithm to evolve a soda can cleaning robot.


Languages

Language:C 100.0%