Good one, IanM!
Quote: "Please don't play these silly games."
Unless of course, they have a split personality. It's certainly possible.
Quote: "he wants to make an enemy that you just walk to and challange him."
First you need to test the proximity between yourself and your enemy. Then use a conditional statement like this:
If proximity# < 100.0 and returnkey()=1 then gosub challenge
Quote: "then the enemy must be able to use is cards wisely like i would"
You need to create a routine that analyses the situation and decides on a good move to make. This routine could be based on past experience (ie. a learning program), algorithmic tree-searching (admittedly it's slow and memory-heavy), or based on a few priorities.
You should first consider making an unbeatable Noughts & Crosses game, as this will give you experience with making AI.
@Trigen48 and/or trigoths:
If you are (both) trying to make the same game, why don't you have a competition with yourself/yourselves?
The optomist's right, The pessimist's right.