I coded this game today, and I want to code in an AI which would play against the player, but have no idea how to go about it. I did a quick search and came across
this, trouble is I don't know how to code it.
Here is my game without the AI. Thanks for any assistance.