if you would have bothered searching the forum you would had found some useful notes from user, like this for instance. Also, keep in mind that if you post mIRC code and hope someone will bother *translating* it to TCL language, then you are in for a big surprise.
Just check out that post, try your best to understand it, and if you will get stuck then reply back.
Once the game is over, the king and the pawn go back in the same box.