+ 5

CHALLENGE: let's play Block Finder with computer

Has any of you ever played Sea Battle? Try to write a similar program. The essence of the program is to arrange on the matrix (n, n) n pieces of blocks. The computer in n moves should guess where you hid them in the matrix. You win if the number of found blocks is less than the number of remaining ones. An example of the program is given in the answers P.S. The computer does not have to re-name the already named cells of the matrix. P.P.S Have a good game!

3rd Nov 2017, 4:07 PM
Мағжан Берік
Мағжан Берік - avatar
1 ответ
3rd Nov 2017, 4:05 PM
Мағжан Берік
Мағжан Берік - avatar