How to access two dimensional array in prolog and how to loop each element in it
问题 How to access two dimensional array in prolog and how to loop each element in it For example if i have a matrix Question 1 how do i create a two-dimensional list like this in prolog: 1 2 3 4 5 6 7 8 9 Question 2: How do i loop each element and make every element +1 becomes 2 3 4 5 6 7 8 9 10 Question 3 public Cell(int row, int col, int cost, int units) { this.cost = cost; this.units = units; this.row = row; this.col = col; } In the matrix every thing is a object like cell My assignment is to