2016/05/15

Langton's Ant


Langton's Antを作りました。R、Lが偶数個ずつ並ぶようにルールを選ぶと線対称な模様が現れるそうです。以下は画像で使われたルールです。


RRLLRRLLLLRRLLRRLLRRRRRRLLLLLLRRLLLLLLLLLLRRLLRRLLRRRRLLRRRRRRRRLLLLLLRRLLRRRRRRLLRRRRRRRRLLRRRRRRRRRRRRRRRRLLLLRRRRRRLLLLLLRRRRLLRRLLRRRRLLLLRRLLRRLLRRLLLLRRRRRRRRRRRRLLLLRRRRRRLLRRRRLLRRRRRRLLRRRRRRLLRRRRRRLLLLLLRRLLRRRRRRRRLLLLRRRRRRLLLLLLLLRRRRRRRRLLLLLLLLRRRRLLRRRRLLRRLLLLRRLLLLLLRRLLLLLLLLLLLLLLRRLLLLLLLLLLRRRRLLRRRRLLRRRRRRRRLLLLRRRRLLLLLLLLRRLLLLLLLLLLRRRRRRLLRRLLRRRRRRLLRRRRRRLLLLRRLLLLRRLLLLRRLLLLLLLLLLLLLLLLLLRRLLRRRRRRLLRRLLRRRRRRLLRRLLLLLLLLRRLLLLLLRRLLLLRRLLRRLLLLRRRRLLLLRRLLLLRRLLRRLLLLLLRRLLLLRRRRRRRRLLRRLLRRLLRRRRLLLLRRLLLLLLLLRRRRLLLLLLLLLLRRRRRRRRRRRRRRLLRRRRLLLLRRRRLLLLLLLLRRRRLLRRRRLLRRLLLLLLLLRRLLRR