2024-12-09 19:29:11 +01:00
|
|
|
from plansza import Plansza
|
|
|
|
from rycerz import Rycerz
|
|
|
|
from lucznik import Lucznik
|
|
|
|
from kusznik import Kusznik
|
|
|
|
from piechur import Piechur
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
plansza = Plansza()
|
|
|
|
|
2024-12-09 20:21:38 +01:00
|
|
|
r1 = Rycerz()
|
|
|
|
l1 = Lucznik()
|
|
|
|
k1 = Kusznik()
|
|
|
|
p1 = Piechur()
|
|
|
|
|
|
|
|
plansza.dodaj_jednostke(r1, 1, 1)
|
|
|
|
plansza.dodaj_jednostke(l1, 2, 1)
|
|
|
|
plansza.dodaj_jednostke(k1, 5, 5)
|
|
|
|
plansza.dodaj_jednostke(p1, 3, 5)
|
|
|
|
|
|
|
|
plansza.wykonaj_atak(r1, l1)
|
|
|
|
|
|
|
|
l1.wyswietl_stan()
|