Translations:FP Homework 1/6/en
Jump to navigation
Jump to search
Implement the function chess
which has 2 arguments of the type [String]
. Each of these strings in both lists contain 3 characters:
- first stands for chess piece ('K' - king, 'Q' - queen, 'R' - rook, 'B' - bishop, 'N' - knight, 'P' - pawn)
- second stands for column ('a'-'h')
- third is row ('1'-'8')
First list contains actual positions of white pieces and second list positions of black pieces. Print actual state of a chessboard in the way where '.' stands for empty square, capital letters mean white pieces and small letters mean black pieces. Each row and column should be labeled by its number or letter.