develop an AI program like connect 4 or something? where you play the computer and it makes correct logical moves to win.
look online for ideas about AI logic programming. That might be above your level though, seeing as how you didn't think of it...
-------
Life is pleasant. Death is peaceful.It's the transition
that's troublesome. --Isaac Asimov