title: Can I create an AI in JavaScript?
body: <p>I want to create a game like <a href="http://en.wikipedia.org/wiki/Pong" rel="nofollow">Pong</a>, and I want to know that if it is possible to create an AI (computer opponent) in JavaScript to control the right side. Pretend I have functions <code>moveUp()</code> and <code>moveDown()</code> for controlling the right paddles. So it is possible? Or will I have to use some kind of library?</p>