need help for getting out put like check checkmate or no check for chess programme.

i had two players chess program,but i want to modify the code like
while compling it should ask
enter number of pieces-8
enter the position of the pieces-WKB1 WQD7 WRG3 WPA2 WPB2 BKF7 BQA5 BRF6
OUT PUT- CHECKMATE FOR BLACK KING

You've written a two player chess program, but don't know how to do simple input and output? Or am I missing something?
Topic archived. No new replies allowed.