Assessment Arrays Hard

From Progzoo
Jump to navigation Jump to search


Read nine lines of nine numbers. Print "true" if these represent a valid Suduko puzzle; print "false" otherwise.

Word Search

Read in a rectangular grid of letters followed by a blank line followed by list of words. Print "true" if every word shows up in the word search grid. Words may read horizontally, vertically or diagonally. Words may read forwards or backwards.


Read in a chess board that only has a Black King, a White King and a White Rook. Print "true" if Black is currently checkmated by white; print "false" otherwise. [Note: The representation for the pieces and board that you read in will have Black’s pieces in lower-case (i.e. k) and white pieces in upper case letters (i.e. K, R). Blank squares will have – in them.]