We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 061e1cc commit f2fac81Copy full SHA for f2fac81
examples/blocks-world/BlocksEnv/WorldModel.java
@@ -155,16 +155,16 @@ static WorldModel world4() throws Exception {
155
void modelToGrid() {
156
for (int i=0; i<GWidth; i++) {
157
for (int j=0; j<GHeight-1; j++) {
158
- model.data[i][j] = 0;
+ model.set(0, i, j);
159
model.names[i][j] = "";
160
}
161
- model.data[i][GHeight-1] = TABLE;
+ model.set(TABLE, i, GHeight-1);
162
model.names[i][GHeight-1] = "table";
163
164
int i=0;
165
for (Stack<String> s : stackList) {
166
for (int j=1; j<s.size(); j++) {
167
- model.data[i*2+1][GHeight-j-1] = BLOCK;
+ model.set(BLOCK, i*2+1, GHeight-j-1);
168
model.names[i*2+1][GHeight-j-1] = s.get(j);
169
170
i++;
0 commit comments