Simple Robot AI System
By Zithium – Custom level – uploaded 24 Jun 2014 from iOS
Play
Edit
6 players liked this.
A fairly simple concept, here is the code I used:
if this:first_run() then
x = 1
end
if this:read(0) == 1 then
x = .8
elseif this:read(1) == 1 then
x = .9
elseif this:read(2) == 1 then
x = .7
elseif this:read(3) == 1 then
x = .6
else
x = 1
end
this:write_frequency(1,x)
Downloads: 108 - Level ID: 7913