1. gameoflife – one argument constructor this method builds your game board (grid) from the input file (initial game pattern). you have been provided some input files to test this method (input1.txt, input2.txt, input3.txt). the format is as follows: one line containing the number of rows in the board game one line containing the number of columns in the board game several lines (one for each row) containing the cell state (false for dead, true for alive) for each column in the board, space separated use the stdin library to read from a file: stdin.setfile(filename) opens a file to be read stdin.readint() reads the next integer value from the opened file (weather the value is in the current line or in the next line)



Answer :

Other Questions