Assessment Arrays Hard

From Progzoo
Revision as of 00:18, 1 March 2009 by Andr3w (Talk | contribs) (New page: {{Assessment Arrays}} ==Suduko== Read nine lines of nine numbers. Print "true" if these represent a valid Suduko puzzle; print "false" otherwise. ==Word Search== Read in a rectangular gr...)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Suduko

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.

Chess

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.]