2024-03-11 15:34:11 +01:00
|
|
|
# 🚜 Inteligentny Traktor
|
2024-02-26 23:38:13 +01:00
|
|
|
|
2024-03-11 09:03:59 +01:00
|
|
|
## 🛠️ Konfiguracja
|
|
|
|
|
|
|
|
Wymagane biblioteki do pobrania:
|
|
|
|
|
|
|
|
```
|
|
|
|
pip install pygame
|
|
|
|
pip install python-dotenv
|
2024-03-25 00:01:46 +01:00
|
|
|
pip install pytholog
|
2024-03-11 09:03:59 +01:00
|
|
|
```
|
|
|
|
|
|
|
|
Stwórz plik `.env` w głównym folderze projektu o poniższej treści:
|
|
|
|
|
|
|
|
```
|
2024-04-27 20:37:12 +02:00
|
|
|
# window size
|
2024-04-29 15:32:52 +02:00
|
|
|
TILE_SIZE = 32
|
2024-04-27 20:37:12 +02:00
|
|
|
|
|
|
|
# game speed
|
2024-04-29 15:32:52 +02:00
|
|
|
TICK_RATE = 10
|
|
|
|
|
|
|
|
STARTING_DIRECTION = north
|
|
|
|
|
|
|
|
# coordinates of initial tile
|
|
|
|
START_X = 0
|
|
|
|
START_Y = 0
|
2024-04-27 20:37:12 +02:00
|
|
|
|
|
|
|
# coordinates of destination tile
|
2024-04-29 15:32:52 +02:00
|
|
|
FINAL_X = 15
|
|
|
|
FINAL_Y = 15
|
2024-04-27 20:37:12 +02:00
|
|
|
|
|
|
|
# tiles without plants modifier
|
2024-04-29 15:32:52 +02:00
|
|
|
FREE_TILES = 2
|
2024-03-11 09:03:59 +01:00
|
|
|
```
|
|
|
|
|
2024-04-10 17:45:00 +02:00
|
|
|
Uruchom środowisko używając komend:
|
|
|
|
|
|
|
|
```
|
|
|
|
cd src
|
2024-06-09 16:31:11 +02:00
|
|
|
python generate_field.py
|
2024-04-10 17:45:00 +02:00
|
|
|
python main.py
|
|
|
|
```
|
|
|
|
|
2024-06-09 16:31:11 +02:00
|
|
|
Skrypt `generate_field.py` musi zostać przy pierwszym uruchomieniu, aby wygenerować pole. Kolejne wykonania skryptu nie są wymagane.
|
|
|
|
|
2024-03-11 15:34:11 +01:00
|
|
|
## 🧑🌾 Członkowie grupy
|
2024-02-26 23:38:13 +01:00
|
|
|
|
|
|
|
- Wojciech Kubicki (483780)
|
2024-02-27 11:09:10 +01:00
|
|
|
- Adam Mikołajczak (481890)
|
2024-02-27 15:02:37 +01:00
|
|
|
- Zofia Lorenc (481886)
|
2024-02-27 23:00:29 +01:00
|
|
|
- Hubert Westerlich (481860)
|