W.I.P. use left and right arrow keys only. press q at any point to turn off the line eraser, making the lines infinite. doing this actually makes the game easier because it's really easy to circle the com.
there's a bit of lag. The com algorithm is designed only to avoid being hit, so it will never make an offensive move on purpose. There are many ways you can exploit the algorithm but I think it works fine. thanks to @aselley for being my coding teacher The com rarely bugs, but there are a few cases where it turns the wrong direction. if you find any solution please post in the comments.