Skip to content

A console application that determines whether the black king is in check mate or not by giving a chess board situation

Notifications You must be signed in to change notification settings

xu007/Gen_Checkmate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Gen_Checkmate

A console application that determines whether the black king is in check mate or not by giving a chess board situation.

Given an 8x8 chess board situation where:

“..” means no piece

“bK” means black king

“bO” means black other piece. The type of the piece does not matter for this puzzle.

“wR” means white rook

“wN” means white knight

“wK” means the white king

There will be no pawns, queens or bishops on the board.

The board situation can be hardcoded in the program or retrieved via file input mechanisms.

With normal rules of chess, assuming only the black king can move, determine whether the black king is in check mate or not.

For example:

................

..bK............

................

................

................

wRwRwR..........

................

................

The black king is in checkmate.

................

..bK............

................

................

................

wRwR............

................

................

The black king is NOT in checkmate.

About

A console application that determines whether the black king is in check mate or not by giving a chess board situation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages