I have a couple of questions about game developing, the first being the best way to design a simple AI. To give it some context, this is a card game in which the AI must decide whether playing their cards at a given time would be a good idea. Secondly, I'd like to know how to design a multiplayer online system. I know how I could make a very slow, very insecure one, sending post data to a server, which then adds it to a database. But surely packet watchers could see this, and it would also be pretty slow.
The code would be in Java (I welcome flame), if that helps.
Thanks