Hey, welcome to the ranch! As you've seen, we don't do work from scratch for you. The ranch works wonderfully well if you post code that almost works. So take a shot at it, show us where you get stuck. One bit of advice is to take small bites. Solve the smallest part of the problem you can think of. Maybe set up the playing board, put your kniggit out there and see if you can plot one move.
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
For a humorous but truthful comment on folks posting homework assignments in here without doing any of the work and expecting others to do the work for them, take a peak at what jmcilhinney wrote in a codeguru thread here. [ March 14, 2007: Message edited by: pete stein ]