forked from UNN/2026-rff_mp
96 lines
1.7 KiB
Plaintext
96 lines
1.7 KiB
Plaintext
{
|
|
"cells": [
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 1,
|
|
"id": "4489fc7e",
|
|
"metadata": {},
|
|
"outputs": [
|
|
{
|
|
"name": "stdout",
|
|
"output_type": "stream",
|
|
"text": [
|
|
"S # ###\n",
|
|
"## # # E\n",
|
|
"# # #\n",
|
|
"### ## #\n",
|
|
"# #\n",
|
|
"########\n"
|
|
]
|
|
}
|
|
],
|
|
"source": [
|
|
"with open('test_lab.txt') as f:\n",
|
|
" data = f.readlines()\n",
|
|
" for el in data:\n",
|
|
" print(el.rstrip())"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 2,
|
|
"id": "fde1eddb",
|
|
"metadata": {},
|
|
"outputs": [
|
|
{
|
|
"name": "stdout",
|
|
"output_type": "stream",
|
|
"text": [
|
|
"S # ###\n",
|
|
"## # # E\n",
|
|
"# # #\n",
|
|
"### ## #\n",
|
|
"# #\n",
|
|
"########\n"
|
|
]
|
|
}
|
|
],
|
|
"source": [
|
|
"from source.classes.builder import TextFileMazeBuilder\n",
|
|
"\n",
|
|
"builder = TextFileMazeBuilder()\n",
|
|
"maze = builder.buildFromFile(filename='test_lab.txt')\n",
|
|
"\n",
|
|
"maze.printer()"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": null,
|
|
"id": "22325f68",
|
|
"metadata": {},
|
|
"outputs": [],
|
|
"source": []
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": null,
|
|
"id": "857c5c04",
|
|
"metadata": {},
|
|
"outputs": [],
|
|
"source": []
|
|
}
|
|
],
|
|
"metadata": {
|
|
"kernelspec": {
|
|
"display_name": "Python 3",
|
|
"language": "python",
|
|
"name": "python3"
|
|
},
|
|
"language_info": {
|
|
"codemirror_mode": {
|
|
"name": "ipython",
|
|
"version": 3
|
|
},
|
|
"file_extension": ".py",
|
|
"mimetype": "text/x-python",
|
|
"name": "python",
|
|
"nbconvert_exporter": "python",
|
|
"pygments_lexer": "ipython3",
|
|
"version": "3.10.6"
|
|
}
|
|
},
|
|
"nbformat": 4,
|
|
"nbformat_minor": 5
|
|
}
|