Write a program that randomly fills in 0s and 1s into an 8 x 8 checkerboard, prints
Fantastic news! We've Found the answer you've been seeking!
Question:
Write a program that randomly fills in 0s and 1s into an 8 x 8 checkerboard, prints the board, and finds the rows, columns, or diagonals with all 0s or 1s. Use a two dimensional array to represent a checkerboard. Here is a sample run of the program:
10101000
10100001
11100011
10100001
11100111
10000001
10100111
00100001
All 0's on the minor diagonal.
Related Book For
Introduction to Algorithms
ISBN: 978-0262033848
3rd edition
Authors: Thomas H. Cormen, Charles E. Leiserson, Ronald L. Rivest
Posted Date: