Spaces:
Running
Running
Update index.html
Browse files- index.html +2 -2
index.html
CHANGED
|
@@ -74,7 +74,7 @@
|
|
| 74 |
value.print();
|
| 75 |
const action = await tf.argMax(action_logits).array();
|
| 76 |
return {
|
| 77 |
-
"terminated":
|
| 78 |
"action": action,
|
| 79 |
};
|
| 80 |
};
|
|
@@ -95,7 +95,7 @@
|
|
| 95 |
this_.who_play = -this_.who_play;
|
| 96 |
this_.render();
|
| 97 |
}
|
| 98 |
-
if (
|
| 99 |
this_.end_game();
|
| 100 |
}
|
| 101 |
}
|
|
|
|
| 74 |
value.print();
|
| 75 |
const action = await tf.argMax(action_logits).array();
|
| 76 |
return {
|
| 77 |
+
"terminated": false,
|
| 78 |
"action": action,
|
| 79 |
};
|
| 80 |
};
|
|
|
|
| 95 |
this_.who_play = -this_.who_play;
|
| 96 |
this_.render();
|
| 97 |
}
|
| 98 |
+
if (this_.is_terminated() == true) {
|
| 99 |
this_.end_game();
|
| 100 |
}
|
| 101 |
}
|