i need help to make a board such as this:
-----------Col 0--Col 1--Col 2
Row 0------1------1--------0
Row 1------0------0--------1
Row 2------1------1--------1
(Please ignore the dashes, they were uses to space things out)
where the user enters a number between 3 to 6
and this number will be distinguished as variable 'dim'
The board will be a square matrix of size dim x dim. The contents of
each cell in that matrix will be a 0 or a 1. The computer will populate the matrix with 0’s and 1’s
randomly.
how do u do this??
-----------Col 0--Col 1--Col 2
Row 0------1------1--------0
Row 1------0------0--------1
Row 2------1------1--------1
(Please ignore the dashes, they were uses to space things out)
where the user enters a number between 3 to 6
and this number will be distinguished as variable 'dim'
The board will be a square matrix of size dim x dim. The contents of
each cell in that matrix will be a 0 or a 1. The computer will populate the matrix with 0’s and 1’s
randomly.
how do u do this??
Comment