Question: Please use ONLY 2D arrays in java to solve the problem. Don't Use CLASS &OBJECT, don't also use constructors. use ONLY arrays in java 1)
Please use ONLY 2D arrays in java to solve the problem. Don't Use CLASS &OBJECT, don't also use constructors. use ONLY arrays in java
1) Create a game board using a 10 x 10 array of char.
2) Place a glider in the array. You may choose the location of the glider (choose wisely !)
3) Assume the glider spans a 3 x 3 area. Count and display the number of neighbors in the area around the glider. Don't forget the rows on the top and bottom and the columns to the left and right. Hint: draw a picture.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
