remove path.print because of error

This commit is contained in:
Safak
2025-05-12 13:08:46 +02:00
parent c7a507c96f
commit 9acb871d9a

View File

@@ -31,7 +31,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": null, "execution_count": 1,
"id": "55fa613b", "id": "55fa613b",
"metadata": { "metadata": {
"ExecuteTime": { "ExecuteTime": {
@@ -39,7 +39,19 @@
"start_time": "2025-05-07T21:40:22.973705Z" "start_time": "2025-05-07T21:40:22.973705Z"
} }
}, },
"outputs": [], "outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Requirement already satisfied: pygame in /home/safak/Dokumente/KI/KI/.env/lib64/python3.13/site-packages (2.6.1)\n",
"\n",
"\u001b[1m[\u001b[0m\u001b[34;49mnotice\u001b[0m\u001b[1;39;49m]\u001b[0m\u001b[39;49m A new release of pip is available: \u001b[0m\u001b[31;49m24.2\u001b[0m\u001b[39;49m -> \u001b[0m\u001b[32;49m25.1.1\u001b[0m\n",
"\u001b[1m[\u001b[0m\u001b[34;49mnotice\u001b[0m\u001b[1;39;49m]\u001b[0m\u001b[39;49m To update, run: \u001b[0m\u001b[32;49mpip install --upgrade pip\u001b[0m\n",
"Note: you may need to restart the kernel to use updated packages.\n"
]
}
],
"source": [ "source": [
"%pip install pygame" "%pip install pygame"
] ]
@@ -67,7 +79,7 @@
"name": "stdout", "name": "stdout",
"output_type": "stream", "output_type": "stream",
"text": [ "text": [
"pygame 2.6.1 (SDL 2.28.4, Python 3.13.3)\n", "pygame 2.6.1 (SDL 2.28.4, Python 3.13.0)\n",
"Hello from the pygame community. https://www.pygame.org/contribute.html\n" "Hello from the pygame community. https://www.pygame.org/contribute.html\n"
] ]
} }
@@ -414,7 +426,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": null, "execution_count": 10,
"id": "a8c78a46", "id": "a8c78a46",
"metadata": { "metadata": {
"ExecuteTime": { "ExecuteTime": {
@@ -446,7 +458,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": null, "execution_count": 11,
"id": "4c138642", "id": "4c138642",
"metadata": { "metadata": {
"ExecuteTime": { "ExecuteTime": {
@@ -454,7 +466,15 @@
"start_time": "2025-05-07T21:40:25.146989Z" "start_time": "2025-05-07T21:40:25.146989Z"
} }
}, },
"outputs": [], "outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Gefunden\n"
]
}
],
"source": [ "source": [
"while not done:\n", "while not done:\n",
" for event in pygame.event.get():\n", " for event in pygame.event.get():\n",
@@ -514,7 +534,7 @@
"if len(path) == 0:\n", "if len(path) == 0:\n",
" print(\"No path between\")\n", " print(\"No path between\")\n",
"else:\n", "else:\n",
" path.print()\n", " print(\"Gefunden\")\n",
"\n", "\n",
"pygame.quit()" "pygame.quit()"
] ]
@@ -536,7 +556,7 @@
"name": "python", "name": "python",
"nbconvert_exporter": "python", "nbconvert_exporter": "python",
"pygments_lexer": "ipython3", "pygments_lexer": "ipython3",
"version": "3.13.3" "version": "3.13.0"
} }
}, },
"nbformat": 4, "nbformat": 4,