Robot Court

After watching this history video about animals being tried by secular and church courts I really, really want to see a robot on trial. If programmers and not a.i. are legally liable then can artificial intelligence ever really be equal to a human?