The 64-Square Madhouse, by Fritz Leiber (epub/Kindle/pdf)
$0.99
The machine was not perfect. It could be tricked. It could make mistakes. And—it could learn!