Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
344 changes: 172 additions & 172 deletions open_spiel/colabs/OpenSpielTutorial.ipynb

Large diffs are not rendered by default.

60 changes: 30 additions & 30 deletions open_spiel/colabs/install_open_spiel.ipynb
Original file line number Diff line number Diff line change
@@ -1,29 +1,12 @@
{
"nbformat": 4,
"nbformat_minor": 0,
"metadata": {
"accelerator": "GPU",
"colab": {
"name": "install_open_spiel.ipynb",
"provenance": [
{
"file_id": "install_open_spiel.ipynb",
"timestamp": 1629100659918
}
],
"collapsed_sections": []
},
"kernelspec": {
"display_name": "Python 3",
"name": "python3"
}
},
"cells": [
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "odj1Coq5H080"
},
"outputs": [],
"source": [
"#@title ##### License { display-mode: \"form\" }\n",
"# Copyright 2019 DeepMind Technologies Ltd. All rights reserved.\n",
Expand All @@ -39,9 +22,7 @@
"# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n",
"# See the License for the specific language governing permissions and\n",
"# limitations under the License."
],
"execution_count": null,
"outputs": []
]
},
{
"cell_type": "markdown",
Expand Down Expand Up @@ -76,14 +57,14 @@
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "lQc12Xrn4CXU"
},
"outputs": [],
"source": [
"!pip install --upgrade open_spiel"
],
"execution_count": null,
"outputs": []
"%pip install --upgrade open_spiel"
]
},
{
"cell_type": "markdown",
Expand All @@ -96,9 +77,11 @@
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "ewMXCaUw8d9Q"
},
"outputs": [],
"source": [
"import numpy as np\n",
"import pyspiel\n",
Expand All @@ -109,9 +92,26 @@
"while not state.is_terminal():\n",
" state.apply_action(np.random.choice(state.legal_actions()))\n",
" print(str(state) + '\\n')"
],
"execution_count": null,
"outputs": []
]
}
]
],
"metadata": {
"accelerator": "GPU",
"colab": {
"collapsed_sections": [],
"name": "install_open_spiel.ipynb",
"provenance": [
{
"file_id": "install_open_spiel.ipynb",
"timestamp": 1629100659918
}
]
},
"kernelspec": {
"display_name": "Python 3",
"name": "python3"
}
},
"nbformat": 4,
"nbformat_minor": 0
}
Loading
Loading