Optymalizacja/item.py
2024-04-04 14:17:13 +02:00

21 lines
378 B
Python

import random
class Item:
def __init__(self):
self._waga = random.randint(1, 6)
self._wartosc = random.randint(5, 10)
self._ratio = self._wartosc/self._waga
@property
def waga(self):
return self._waga
@property
def wartosc(self):
return self._wartosc
@property
def ratio(self):
return self._ratio