Water Circle part 1

Wenn du dir nicht sicher bist, in welchem der anderen Foren du die Frage stellen sollst, dann bist du hier im Forum für allgemeine Fragen sicher richtig.
Gesperrt
-Matthias-

Antworten bitte bei Water Circle part 3

Code: Alles auswählen

# Water Circle Beta-Version 1.7.1

from winsound import PlaySound
from random import choice
from Tkinter import *
from time import clock, sleep

class Feld:
    def __init__(self,x,y,fill="Ebene"):
        self.x=x
        self.y=y
        self.fill=fill
        self.far=None
        self.update()
    def fa(self,color):
        self.far=color
        for a in range(0,29,2):
            for b in range(0,29,2):
                window.put(color,(self.x*30+a,self.y*30+b))
        for a in range(1,28,2):
            for b in range(1,28,2):
                window.put(color,(self.x*30+a,self.y*30+b))
    def update(self):
        if self.fill=="Ebene":
            for a in range(29):
                for b in range(29):
                    window.put(choice(("green","green2","green3")),(self.x*30+a,self.y*30+b))
        if self.fill=="Berg":
            for a in range(29):
                for b in range(29):
                    window.put(choice(("green","green2","green3")),(self.x*30+a,self.y*30+b))
            for (a,b) in [(7,12),(8,13),(8,14),(9,15),(9,16),(10,17),(10,18),(10,19)]:
                window.put("black",(self.x*30+a,self.y*30+b))
            window.put("white",(self.x*30+13,self.y*30+2))
            window.put("white",(self.x*30+13,self.y*30+3))
            window.put("white",(self.x*30+13,self.y*30+4))
            for (a,b) in [(6,12),(6,13),(6,14),(6,15),(7,13),(7,14),(7,15),(7,16),(7,17),
                          (7,18),(14,3),(14,4),(14,5),(14,6),(15,5),(15,6),(15,7),(16,6),
                          (16,7),(17,7),(20,9),(20,10),(20,11),(20,12),(20,13),(21,10),
                          (21,11),(21,12),(21,13),(22,11),(22,12),(22,13),(23,12),(23,13),
                          (24,13),(26,15),(26,16),(27,16),(26,22),(17,23),(18,23),(19,23),
                          (20,23),(21,23),(22,23),(23,23),(24,23),(18,24),(19,24),(20,24),
                          (21,24),(22,24),(20,25),(21,25),(8,15),(8,16),(8,17),(8,18),
                          (8,19),(9,17),(9,18),(9,19)]:
                window.put("gray30",(self.x*30+a,self.y*30+b))
            for a in range(15,20):
                for b in range(8,14):
                    window.put("gray30",(self.x*30+a,self.y*30+b))
            for a in range(16,26):
                for b in range(14,23):
                    window.put("gray30",(self.x*30+a,self.y*30+b))
            for a in range(26,29):
                for b in range(17,22):
                    window.put("gray30",(self.x*30+a,self.y*30+b))
            for (a,b) in [(12,4),(11,5),(12,5),(13,5),(10,6),(11,6),(12,6),(13,6),(8,9),(8,10),
                          (8,11),(8,12),(7,11),(9,14),(10,14),(10,15),(10,16),(16,23),(16,24),
                          (17,24),(20,26),(20,27),(21,26),(6,26),(7,26),(2,24),(3,24),(2,15),
                          (5,11),(5,12),(4,12)]:
                window.put(choice(("gray80","gray70","gray65")),(self.x*30+a,self.y*30+b))
            for a in range(9,15):
                for b in range(7,14):
                    window.put(choice(("gray80","gray70","gray65")),(self.x*30+a,self.y*30+b))
            for a in range(11,16):
                for b in range(14,20):
                    window.put(choice(("gray80","gray70","gray65")),(self.x*30+a,self.y*30+b))
            for a in range(16,20):
                for b in range(25,29):
                    window.put(choice(("gray80","gray70","gray65")),(self.x*30+a,self.y*30+b))
            for a in range(8,16):
                for b in range(20,28):
                    window.put(choice(("gray80","gray70","gray65")),(self.x*30+a,self.y*30+b))
            for a in range(1,7):
                for b in range(16,24):
                    window.put(choice(("gray80","gray70","gray65")),(self.x*30+a,self.y*30+b))
            for a in range(3,6):
                for b in range(13,16):
                    window.put(choice(("gray80","gray70","gray65")),(self.x*30+a,self.y*30+b))
            for a in range(4,8):
                for b in range(24,26):
                    window.put(choice(("gray80","gray70","gray65")),(self.x*30+a,self.y*30+b))
            for b in range(18,22):
                window.put(choice(("gray80","gray70","gray65")),(self.x*30,self.y*30+b))
            for b in range(19,24):
                window.put(choice(("gray80","gray70","gray65")),(self.x*30+7,self.y*30+b))
            for a in range(10,16):
                window.put(choice(("gray80","gray70","gray65")),(self.x*30+a,self.y*30+28))
        if self.fill=="Klippe":
            for a in range(29):
                for b in range(29):
                    window.put(choice(("green","green2","green3")),(self.x*30+a,self.y*30+b))
            for a in range(8):
                for b in range(10,18):
                    window.put(choice(("gray60","gray75")),(self.x*30+a,self.y*30+b))
            for a in range(8,11):
                for b in range(11,20):
                    window.put(choice(("gray60","gray75")),(self.x*30+a,self.y*30+b))
            for a in range(11,15):
                for b in range(15,24):
                    window.put(choice(("gray60","gray75")),(self.x*30+a,self.y*30+b))
            for a in range(16,18):
                for b in range(7,23):
                    window.put(choice(("gray60","gray75")),(self.x*30+a,self.y*30+b))
            for a in range(18,23):
                for b in range(7,16):
                    window.put(choice(("gray60","gray75")),(self.x*30+a,self.y*30+b))
            for a in range(23,29):
                for b in range(9,17):
                    window.put(choice(("gray60","gray75")),(self.x*30+a,self.y*30+b))
            window.put(choice(("gray60","gray75")),(self.x*30+10,self.y*30+20))
            window.put(choice(("gray60","gray75")),(self.x*30+10,self.y*30+21))
            for (a,b) in [(0,11),(1,11),(1,10),(2,10),(2,9),(3,9),
                          (4,9),(5,9),(6,9),(7,9),(8,10),(8,9),(9,11),
                          (10,13),(10,11),(11,14),(11,13),(12,15),
                          (12,14),(13,16),(13,15),(14,17),(14,15),
                          (14,13),(14,11),(15,17),(15,15),(15,13),
                          (15,11),(15,9),(15,7),(15,6),(16,10),(16,8),
                          (16,6),(17,6),(18,6),(19,7),(19,6),(20,7),
                          (21,7),(22,7),(23,8),(23,7),(24,8),(25,8),
                          (26,9),(26,8),(27,10),(27,9),(28,10)]:
                window.put("gray25",(self.x*30+a,self.y*30+b))
                window.put("gray25",(self.x*30+a,self.y*30+b-1))
            for (a,b) in [(2,16),(6,12),(9,16),(12,19),(18,12),(20,9),(22,12),(26,11),(27,15),
                          (0,17),(1,17),(2,18),(3,18),(4,18),(5,18),(6,18),(7,18),(8,19),(9,20),
                          (9,21),(10,22),(11,23),(12,23),(13,24),(14,24),(15,24),(16,24),(16,23),
                          (17,22),(17,21),(17,20),(18,19),(18,18),(18,17),(18,16),(18,15),(19,15),
                          (20,16),(21,16),(22,16),(23,17),(24,17),(25,17),(26,17),(27,17),(28,16),
                          (15,23),(15,22),(15,21),(15,20),(15,19),(15,18)]:
                window.put("gray25",(self.x*30+a,self.y*30+b))
        if self.fill=="Wald":
            for a in range(29):
                for b in range(29):
                    window.put(choice(("DarkOliveGreen","DarkGreen")),(self.x*30+a,self.y*30+b))
        if self.far!=None:
            self.fa(self.far)

class Spielfeld:
    def __init__(self,br,lg):
        self.gitter={}
        for a in range(br):
            for b in range(lg):
                f=Feld(a,b)
                self.gitter[(a,b)]=f
    def set(self,feld,fill):
        self.gitter[feld].fill=fill
        self.update(feld)
    def update(self,feld):
        self.gitter[feld].update()

class Einheit:
    def __init__(self,x,y,klass,name,kraftpunkte,max_kraftpunkte):
        self.x=x
        self.y=y
        self.klass=klass
        self.act=1
        self.name=name
        self.kp=kraftpunkte
        self.m_kp=max_kraftpunkte
        self.update()
        self.inventar=[]
        einheiten.append((self.x,self.y))
        einheiten2.append(self)
        ges_einheiten.append((x,y))
        ges_einheiten2.append(self)
    def go_step(self,(a,b)):
        einheiten.pop(einheiten.index((self.x,self.y)))
        ges_einheiten.pop(ges_einheiten.index((self.x,self.y)))
        sp.update((self.x,self.y))
        (self.x,self.y)=(a,b)
        einheiten.append((self.x,self.y))
        ges_einheiten.append((self.x,self.y))
        self.update()
        sleep(0.5)
    def go(self,to):
        position=to.pop(0)
        while position not in einheiten and position in sp.gitter and sp.gitter[position].fill!="Klippe" and position not in gegner:
            for feld in sp.gitter.values():
                if (feld.x,feld.y)==(self.x,self.y):
                    feld.far=None
            self.go_step(position)
            try:
                position=to.pop(0)
            except:
                position=None
    def update(self):
        if self.klass=="Schuetze":
            for (a,b) in [(1,15),(2,14),(2,15),(2,16),(3,13),(3,14),(3,15),(3,16),(3,17),
                          (4,15),(5,15),(6,15),(7,13),(7,14),(7,15),(7,16),(7,17),
                          (8,10),(8,11),(8,12),(8,15),(8,18),(8,19),(8,20),(9,8),(9,9),
                          (9,15),(9,21),(9,22),(10,7),(10,8),(10,9),(10,10),(10,11),(10,12),
                          (10,13),(10,14),(10,15),(10,16),(10,17),(10,18),(10,19),(10,20),
                          (10,21),(10,22),(10,23),(11,15),(12,14),(12,15),(12,16),(13,13),
                          (13,14,),(13,16),(14,12),(14,14),(14,16),(14,22),(15,11),(15,14),
                          (15,16),(15,17),(15,18),(15,19),(15,20),(15,21),(15,22),(16,10),
                          (16,13),(16,14),(16,16),(16,22),(17,5),(17,6),(17,7),(17,8),(17,10),
                          (17,12),(17,13),(17,16),(17,20),(17,21),(17,22),(18,4),(18,9),
                          (18,10),(18,13),(18,16),(18,20),(19,4),(19,6),(19,10),(19,12),
                          (19,15),(19,21),(19,24),(19,25),(20,4),(20,10),(20,14),(20,22),
                          (20,23),(20,24),(20,25),(21,5),(21,9),(21,10),(21,25),(22,6),
                          (22,7),(22,8),(22,10),(22,11),(22,12),(22,13),(22,14),(22,15),
                          (22,16),(22,17),(22,18),(22,19),(22,20),(22,25),(23,21),(23,22),
                          (23,23),(23,24),(23,25)]:
                window.put("black",(self.x*30+a,self.y*30+b))
            for (a,b) in [(14,15),(16,21),(21,24),(22,24)]:
                window.put("brown3",(self.x*30+a,self.y*30+b))
            for (a,b) in [(14,13),(15,15),(16,17),(17,17),(16,18),(17,18),(18,18),(19,18),
                          (16,19),(17,19),(18,19),(19,19),(20,19),(21,19),(16,20),(19,20),
                          (20,20),(21,20),(20,21),(21,21),(22,21),(21,22),(22,22),(21,23),(22,23)]:
                if self.act==1:
                    window.put("cyan2",(self.x*30+a,self.y*30+b))
                elif self.act==0:
                    window.put("gray85",(self.x*30+a,self.y*30+b))
            for (a,b) in [(15,13),(15,12),(16,12),(16,11),(17,11),(18,11),(19,11),(20,11),(21,11),
                          (18,12),(20,12),(21,12),(19,13),(20,13),(21,13),(17,14),(18,14),(19,14),
                          (16,15),(17,15),(18,15),(21,14),(20,15),(21,15),(19,16),(20,16),(21,16),
                          (18,17),(19,17),(20,17),(21,17),(20,18),(21,18)]:
                if self.act==1:
                    window.put("cyan4",(self.x*30+a,self.y*30+b))
                elif self.act==0:
                    window.put("gray75",(self.x*30+a,self.y*30+b))
            for (a,b) in [(18,5),(19,5),(20,5),(18,6),(20,6),(21,6),(18,7),(19,7),(20,7),(21,7),
                          (19,8),(20,8),(21,8),(19,9),(20,9),(13,15)]:
                if self.act==1:
                    window.put("khaki2",(self.x*30+a,self.y*30+b))
                elif self.act==0:
                    window.put("gray90",(self.x*30+a,self.y*30+b))
            if self.act==1:
                window.put("red",(self.x*30+18,self.y*30+8))
            elif self.act==0:
                window.put("gray65",(self.x*30+18,self.y*30+8))
        elif self.klass=="Speertraeger":
            for (a,b) in [(13,3),(12,4),(13,4),(14,4),(11,5),(12,5),(13,5),(14,5),(15,5)]:
                window.put("gray35",(self.x*30+a,self.y*30+b))
            for (a,b) in [(13,6),(13,7),(13,8),(13,9),(13,10),(13,11),(13,12),(13,17),(13,18),
                          (13,19),(13,20),(13,21),(13,22),(13,23)]:
                window.put("brown4",(self.x*30+a,self.y*30+b))
            for (a,b) in [(12,14),(12,15),(12,16),(13,13),(13,14,),(13,16),(14,12),(14,14),
                          (14,16),(14,22),(15,11),(15,14),(15,16),(15,17),(15,18),(15,19),
                          (15,20),(15,21),(15,22),(16,10),(16,13),(16,14),(16,16),(16,22),
                          (17,5),(17,6),(17,7),(17,8),(17,10),(17,12),(17,13),(17,16),
                          (17,20),(17,21),(17,22),(18,4),(18,9),(18,10),(18,13),(18,16),
                          (18,20),(19,4),(19,6),(19,10),(19,12),(19,15),(19,21),(19,24),
                          (19,25),(20,4),(20,10),(20,14),(20,22),(20,23),(20,24),(20,25),
                          (21,5),(21,9),(21,10),(21,25),(22,6),(22,7),(22,8),(22,10),
                          (22,11),(22,12),(22,13),(22,14),(22,15),(22,16),(22,17),(22,18),
                          (22,19),(22,20),(22,25),(23,21),(23,22),(23,23),(23,24),(23,25),]:
                window.put("black",(self.x*30+a,self.y*30+b))
            for (a,b) in [(14,15),(16,21),(21,24),(22,24)]:
                window.put("brown3",(self.x*30+a,self.y*30+b))
            for (a,b) in [(14,13),(15,15),(16,17),(17,17),(16,18),(17,18),(18,18),(19,18),
                          (16,19),(17,19),(18,19),(19,19),(20,19),(21,19),(16,20),(19,20),
                          (20,20),(21,20),(20,21),(21,21),(22,21),(21,22),(22,22),(21,23),(22,23)]:
                if self.act==1:
                    window.put("cyan2",(self.x*30+a,self.y*30+b))
                elif self.act==0:
                    window.put("gray85",(self.x*30+a,self.y*30+b))
            for (a,b) in [(15,13),(15,12),(16,12),(16,11),(17,11),(18,11),(19,11),(20,11),(21,11),
                          (18,12),(20,12),(21,12),(19,13),(20,13),(21,13),(17,14),(18,14),(19,14),
                          (16,15),(17,15),(18,15),(21,14),(20,15),(21,15),(19,16),(20,16),(21,16),
                          (18,17),(19,17),(20,17),(21,17),(20,18),(21,18)]:
                if self.act==1:
                    window.put("cyan4",(self.x*30+a,self.y*30+b))
                elif self.act==0:
                    window.put("gray75",(self.x*30+a,self.y*30+b))
            for (a,b) in [(18,5),(19,5),(20,5),(18,6),(20,6),(21,6),(18,7),(19,7),(20,7),(21,7),
                          (19,8),(20,8),(21,8),(19,9),(20,9),(13,15)]:
                if self.act==1:
                    window.put("khaki2",(self.x*30+a,self.y*30+b))
                elif self.act==0:
                    window.put("gray90",(self.x*30+a,self.y*30+b))
            if self.act==1:
                window.put("red",(self.x*30+18,self.y*30+8))
            elif self.act==0:
                window.put("gray65",(self.x*30+18,self.y*30+8))
        elif self.klass=="Kaempfer":
            for (a,b) in [(7,17),(8,7),(8,8),(8,9),(8,10),(8,11),(8,12),(8,16),(8,18),(9,5),(9,6),
                          (9,12),(9,15,),(9,19),(10,4),(10,11),(10,14),(10,18),(10,25),(10,26),
                          (11,3),(11,10),(11,13),(11,17),(11,24),(11,26),(12,3),(12,10),(12,12),
                          (12,14),(12,16),(12,23),(12,26),(13,2),(13,10),(13,11),(13,15),(13,22),
                          (13,26),(14,2),(14,10),(14,12),(14,16),(14,17),(14,21),(14,26),(15,2),
                          (15,10),(15,13),(15,18),(15,19),(15,20),(15,25),(16,2),(16,8),(16,9),
                          (16,10),(16,12),(16,14),(16,18),(16,24),(17,2),(17,4),(17,5),(17,6),(17,7),
                          (17,11),(17,13),(17,15),(17,19),(17,23),(18,2),(18,3),(18,6),(18,9),(18,12),
                          (18,15),(18,19),(18,24),(19,5),(19,12),(19,15),(19,18),(19,25),(20,5),
                          (20,12),(20,14),(20,17),(20,18),(20,19),(20,20),(20,21),(20,26),(21,5),
                          (21,12),(21,13),(21,17),(21,22),(21,27),(22,6),(22,9),(22,12),(22,13),
                          (22,17),(22,23),(22,27),(23,7),(23,11),(23,12),(23,16),(23,24),(23,27),
                          (24,8),(24,9),(24,10),(24,12),(24,16),(24,25),(24,27),(25,13),(25,14),
                          (25,15),(25,26),(25,27)]:
                window.put("black",(self.x*30+a,self.y*30+b))
            for (a,b) in [(9,7),(9,8),(9,9),(9,10),(9,11),(10,5),(10,6),(10,7),(10,8),(10,9),(10,10),
                          (11,4),(11,5),(11,6),(11,7),(11,8),(11,9),(12,4),(12,5),(12,6),(12,7),
                          (12,8),(12,9),(13,3),(13,4),(13,5),(13,6),(13,7),(13,8),(13,9),(14,3),
                          (14,4),(14,5),(14,6),(14,7),(14,8),(14,9),(15,3),(15,4),(15,5),(15,6),
                          (15,7),(15,8),(15,9),(16,3),(16,4),(16,5),(16,6),(16,7),(17,3)]:
                window.put("gray45",(self.x*30+a,self.y*30+b))
            for (a,b) in [(8,17),(9,16),(9,17),(9,18),(10,15),(10,16),(10,17),(11,14),(11,15),(11,16),
                          (12,15),(14,11),(15,11),(15,12),(16,11)]:
                window.put("brown2",(self.x*30+a,self.y*30+b))
            for (a,b) in [(19,16),(16,20),(17,20),(18,20),(19,20)]:
                window.put("gold3",(self.x*30+a,self.y*30+b))
            for (a,b) in [(12,13),(13,12),(13,13),(13,14),(14,13),(14,14),(14,15),(15,14),(15,15),
                          (15,16),(15,17),(16,15),(16,16),(16,17),(17,16),(17,17),(17,18),(18,17),
                          (18,18),(17,8),(17,9),(17,10),(18,8),(18,10),(18,11),(19,9),(19,10),(19,11),
                          (20,9),(20,10),(20,11),(21,9),(21,10),(21,11),(22,8),(22,10),(22,11),(23,8),
                          (23,9),(23,10)]:
                if self.act==1:
                    window.put("khaki2",(self.x*30+a,self.y*30+b))
                elif self.act==0:
                    window.put("gray90",(self.x*30+a,self.y*30+b))
            for (a,b) in [(18,7),(19,6),(19,8),(20,6),(20,8),(21,6),(21,8),(22,7),(16,19),(19,19),
                          (17,14),(18,13),(18,14),(18,16),(19,13),(19,14),(19,17),(20,13),(20,15),
                          (20,16),(21,14),(21,15),(21,16),(22,14),(22,15),(22,16),(23,13),(23,14),
                          (23,15),(24,13),(24,14),(24,15)]:
                if self.act==1:
                    window.put("cyan2",(self.x*30+a,self.y*30+b))
                elif self.act==0:
                    window.put("gray85",(self.x*30+a,self.y*30+b))
            for (a,b) in [(19,7),(20,7),(21,7),(11,25),(12,24),(12,25),(13,23),(13,24),(13,25),
                          (14,22),(14,23),(14,24),(14,25),(15,21),(15,22),(15,23),(15,24),(16,21),
                          (16,22),(16,23),(17,21),(17,22),(18,21),(18,22),(18,23),(19,21),(19,22),
                          (19,23),(19,24),(20,22),(20,23),(20,24),(20,25),(21,23),(21,24),(21,25),
                          (21,26),(22,24),(22,25),(22,26),(23,25),(23,26),(24,26)]:
                if self.act==1:
                    window.put("cyan3",(self.x*30+a,self.y*30+b))
                elif self.act==0:
                    window.put("gray75",(self.x*30+a,self.y*30+b))
        elif self.klass=="Magier":
            for (a,b) in [(17,3),(18,3),(16,4),(18,4),(15,5),(17,5),(14,6),(17,6),(14,7),(17,7),
                          (13,8),(18,8),(13,9),(18,9),(13,10),(14,10),(15,10),(16,10),(17,10),
                          (18,10),(14,11),(16,11),(18,11),(14,12),(17,12),(19,12),(15,13),
                          (17,13),(19,13),(13,14),(16,14),(19,14),(12,15),(16,15),(20,15),
                          (11,16),(15,16),(20,16),(10,17),(15,17),(21,17),(9,18),(14,18),(21,18),
                          (8,19),(13,19),(22,19),(7,20),(13,20),(23,20),(6,21),(12,21),(24,21),
                          (5,22),(12,22),(25,22),(6,23),(7,23),(11,23),(24,23),(8,24),(9,24),
                          (11,24),(20,24),(21,24),(22,24),(23,24),(10,25),(16,25),(17,25),(18,25),
                          (19,25),(10,26),(11,26),(12,26),(13,26),(14,26),(15,26)]:
                window.put("black",(self.x*30+a,self.y*30+b))
            for (a,b) in [(15,11),(17,11),(15,12),(16,12),(16,13)]:
                window.put("khaki2",(self.x*30+a,self.y*30+b))
            for (a,b) in [(14,14),(15,14),(13,15),(14,15),(15,15),(12,16),(13,16),(14,16),(11,17),
                          (12,17),(13,17),(14,17),(10,18),(11,18),(12,18),(13,18),(9,19),(10,19),
                          (11,19),(12,19),(8,20),(9,20),(10,20),(11,20),(12,20),(7,21),(8,21),
                          (9,21),(10,21),(11,21),(6,22),(7,22),(8,22),(9,22),(10,22),(11,22),(8,23),
                          (9,23),(10,23),(10,24),(18,12),(18,13),(17,14),(18,14),(17,15),(18,15),
                          (19,15),(17,16),(18,16),(19,16),(18,17),(19,17),(20,17),(18,18),(19,18),
                          (20,18),(18,19),(19,19),(20,19),(21,19),(19,20),(20,20),(21,20),(22,20),
                          (19,21),(20,21),(21,21),(22,21),(23,21),(19,22),(20,22),(21,22),(22,22),
                          (23,22),(24,22),(19,23),(20,23),(21,23),(22,23),(23,23),(19,24)]:
                if self.act==1:
                    window.put("blue",(self.x*30+a,self.y*30+b))
                elif self.act==0:
                    window.put("gray65",(self.x*30+a,self.y*30+b))
            for (a,b) in [(16,16),(16,17),(17,17),(15,18),(16,18),(17,18),(15,19),(16,19),(17,19),
                          (15,20),(16,20),(17,20),(18,20),(15,21),(16,21),(17,21),(18,21),(15,22),
                          (16,22),(17,22),(18,22),(16,23),(17,23),(18,23),(16,24),(17,24),(18,24)]:
                if self.act==1:
                    window.put("cyan4",(self.x*30+a,self.y*30+b))
                elif self.act==0:
                    window.put("gray75",(self.x*30+a,self.y*30+b))
            for (a,b) in [(17,4),(16,5),(15,6),(16,6),(15,7),(16,7),(14,8),(15,8),(16,8),(17,8),
                          (14,9),(15,9),(16,9),(17,9),(14,19),(14,20),(13,21),(14,21),(13,22),
                          (14,22),(12,23),(13,23),(14,23),(15,23),(12,24),(13,24),(14,24),(15,24),
                          (11,25),(12,25),(13,25),(14,25),(15,25)]:
                if self.act==1:
                    window.put("cyan3",(self.x*30+a,self.y*30+b))
                elif self.act==0:
                    window.put("gray85",(self.x*30+a,self.y*30+b))
        elif self.klass=="Waiser":
            for (a,b) in [(14,4),(15,4),(16,4),(13,5),(17,5),(12,6),(14,6),(16,6),(18,6),(12,7),
                          (18,7),(12,8),(18,8),(13,9),(18,9),(11,10),(12,10),(14,10),(15,10),
                          (16,10),(17,10),(10,11),(12,11),(14,11),(16,11),(18,11),(10,12),(11,12),
                          (14,12),(16,12),(19,12),(9,13),(14,13),(16,13),(17,13),(19,13),(8,14),
                          (15,14),(18,14),(19,14),(20,14),(7,15),(14,15),(21,15),(6,16),(13,16),
                          (21,16),(5,17),(12,17),(22,17),(4,18),(11,18),(22,18),(3,19),(10,19),
                          (23,19),(2,20),(9,20),(23,20),(3,21),(8,21),(24,21),(4,22),(5,22),(7,22),
                          (24,22),(6,23),(25,23),(5,24),(25,24),(4,25),(26,25),(3,26),(26,26),
                          (4,27),(5,27),(6,27),(7,27),(8,27),(9,27),(20,27),(21,27),(22,27),(23,27),
                          (24,27),(25,27),(10,28),(11,28),(12,28),(13,28),(14,28),(15,28),(16,28),
                          (17,28),(18,28),(19,28)]:
                window.put("black",(self.x*30+a,self.y*30+b))
            for (a,b) in [(14,5),(15,5),(16,5),(13,6),(15,6),(17,6),(13,7),(14,7),(15,7),(16,7),
                          (17,7),(13,8),(14,8),(15,8),(16,8),(17,8),(14,9),(15,9),(16,9),(17,9),
                          (15,11),(15,12),(15,13)]:
                window.put("khaki2",(self.x*30+a,self.y*30+b))
            for (a,b) in [(11,11),(17,11),(17,12),(18,12),(18,13)]:
                window.put("gold3",(self.x*30+a,self.y*30+b))
            for (a,b) in [(13,10),(13,11),(13,12),(13,13),(13,14),(14,14),(13,15),(12,12),(12,13),
                          (12,14),(12,15),(12,16),(11,13),(11,14),(11,15),(11,16),(11,17),(10,13),
                          (10,14),(10,15),(10,16),(10,17),(10,18),(9,14),(9,15),(9,16),(9,17),(9,18),
                          (9,19),(8,15),(8,16),(8,17),(8,18),(8,19),(8,20),(7,16),(7,17),(7,18),(7,19),
                          (7,20),(7,21),(6,17),(6,18),(6,19),(6,20),(6,21),(6,22),(5,18),(5,19),
                          (5,20),(5,21),(4,19),(4,20),(4,21),(3,20),
                          (16,14),(17,14),(15,15),(16,15),(17,15),(18,15),(19,15),(20,15),(16,16),
                          (17,16),(18,16),(19,16),(20,16),(16,17),(17,17),(18,17),(19,17),(20,17),
                          (21,17),(17,18),(18,18),(19,18),(20,18),(21,18),(17,19),(18,19),(19,19),
                          (20,19),(21,19),(22,19),(18,20),(19,20),(20,20),(21,20),(22,20),(18,21),
                          (19,21),(20,21),(21,21),(22,21),(23,21),(19,22),(20,22),(21,22),(22,22),
                          (23,22),(19,23),(20,23),(21,23),(22,23),(23,23),(24,23),(20,24),(21,24),
                          (22,24),(23,24),(24,24),(20,25),(21,25),(22,25),(23,25),(24,25),(25,25),
                          (21,26),(22,26),(23,26),(24,26),(25,26)]:
                if self.act==1:
                    window.put("blue",(self.x*30+a,self.y*30+b))
                elif self.act==0:
                    window.put("gray65",(self.x*30+a,self.y*30+b))
            for (a,b) in [(14,16),(15,16),(13,17),(14,17),(15,17),(12,18),(13,18),(14,18),(15,18),
                          (16,18),(12,19),(13,19),(14,19),(15,19),(16,19),(12,20),(13,20),(14,20),
                          (15,20),(16,20),(17,20),(13,21),(14,21),(15,21),(16,21),(17,21),(13,22),
                          (14,22),(15,22),(16,22),(17,22),(18,22),(14,23),(15,23),(16,23),(17,23),
                          (18,23),(14,24),(15,24),(16,24),(17,24),(18,24),(19,24),(15,25),(16,25),
                          (17,25),(18,25),(19,25),(15,26),(16,26),(17,26),(18,26),(19,26),(20,26),
                          (16,27),(17,27),(18,27),(19,27)]:
                if self.act==1:
                    window.put("cyan4",(self.x*30+a,self.y*30+b))
                elif self.act==0:
                    window.put("gray75",(self.x*30+a,self.y*30+b))
            for (a,b) in [(11,19),(10,20),(11,20),(9,21),(10,21),(11,21),(12,21),(8,22),(9,22),(10,22),
                          (11,22),(12,22),(7,23),(8,23),(9,23),(10,23),(11,23),(12,23),(13,23),(6,24),
                          (7,24),(8,24),(9,24),(10,24),(11,24),(12,24),(13,24),(5,25),(6,25),(7,25),
                          (8,25),(9,25),(10,25),(11,25),(12,25),(13,25),(14,25),(4,26),(5,26),(6,26),
                          (7,26),(8,26),(9,26),(10,26),(11,26),(12,26),(13,26),(14,26),(10,27),(11,27),
                          (12,27),(13,27),(14,27),(15,27)]:
                if self.act==1:
                    window.put("cyan3",(self.x*30+a,self.y*30+b))
                elif self.act==0:
                    window.put("gray85",(self.x*30+a,self.y*30+b))
        elif self.klass=="Drachenreiter":
            for (a,b) in [(21,1),(22,1),(23,1),(24,1),(25,1),(4,2),(5,2),(18,2),(19,2),(20,2),(26,2),
                          (3,3),(6,3),(17,3),(27,3),(2,4),(7,4),(11,4),(12,4),(16,4),(25,4),(26,4),
                          (2,5),(4,5),(7,5),(10,5),(13,5),(15,5),(24,5),(26,5),(27,5),(28,5),(1,6),
                          (8,6),(10,6),(13,6),(14,6),(23,6),(27,6),(28,6),(0,7),(3,7),(4,7),(9,7),
                          (11,7),(12,7),(21,7),(22,7),(26,7),(28,7),(1,8),(2,8),(5,8),(10,8),(11,8),
                          (13,8),(20,8),(25,8),(6,9),(11,9),(14,9),(19,9),(24,9),(7,10),(11,10),
                          (14,10),(18,10),(23,10),(8,11),(12,11),(13,11),(17,11),(22,11),(9,12),
                          (13,12),(16,12),(21,12),(10,13),(13,13),(15,13),(16,13),(17,13),(18,13),
                          (19,13),(20,13),(21,13),(22,13),(23,13),(11,14),(12,14),(13,14),(14,14),
                          (24,14),(25,14),(10,15),(26,15),(10,16),(20,16),(21,16),(22,16),(23,16),
                          (24,16),(27,16),(9,17),(22,17),(25,17),(28,17),(9,18),(22,18),(26,18),
                          (28,18),(9,19),(12,19),(22,19),(26,19),(28,19),(9,20),(11,20),(12,20),
                          (22,20),(23,20),(26,20),(27,20),(8,21),(9,21),(11,21),(12,21),(15,21),
                          (16,21),(17,21),(18,21),(19,21),(20,21),(23,21),(25,21),(26,21),(8,22),
                          (11,22),(12,22),(14,22),(18,22),(21,22),(23,22),(24,22),(25,22),(9,23),
                          (10,23),(12,23),(14,23),(18,23),(21,23),(23,23),(11,24),(14,24),(18,24),
                          (21,24),(23,24),(10,25),(14,25),(17,25),(20,25),(23,25),(10,26),(13,26),
                          (17,26),(20,26),(23,26),(11,27),(12,27),(18,27),(19,27),(21,27),(22,27)]:
                window.put("black",(self.x*30+a,self.y*30+b))
        elif self.klass=="Schwertkaempfer":
            for (a,b) in [(12,4),(13,4),(14,4),(20,4),(21,4),(22,4),(11,5),(15,5),(19,5),(22,5),
                          (10,6),(12,6),(14,6),(16,6),(18,6),(22,6),(10,7),(16,7),(17,7),(21,7),
                          (10,8),(16,8),(20,8),(11,9),(15,9),(19,9),(12,10),(13,10),(14,10),(18,10),
                          (12,11),(13,11),(17,11),(18,11),(10,12),(11,12),(12,12),(16,12),(19,12),
                          (10,13),(15,13),(16,13),(19,13),(10,14),(14,14),(16,14),(19,14),(9,15),
                          (11,15),(14,15),(16,15),(19,15),(8,16),(12,16),(13,16),(14,16),(16,16),
                          (19,16),(7,17),(9,17),(11,17),(13,17),(14,17),(15,17),(19,17),(6,18),
                          (10,18),(18,18),(7,19),(9,19),(11,19),(17,19),(8,20),(11,20),(12,20),
                          (13,20),(14,20),(15,20),(16,20),(10,21),(16,21),(10,22),(12,22),(13,22),
                          (14,22),(16,22),(9,23),(12,23),(14,23),(17,23),(8,24),(11,24),(15,24),
                          (18,24),(8,25),(11,25),(15,25),(18,25),(7,26),(10,26),(16,26),(19,26),
                          (7,27),(8,27),(9,27),(10,27),(16,27),(17,27),(18,27),(19,27)]:
                window.put("black",(self.x*30+a,self.y*30+b))
            for (a,b) in [(12,5),(13,5),(14,5),(11,6),(13,6),(15,6),(11,7),(12,7),(13,7),(14,7),
                          (15,7),(11,8),(12,8),(13,8),(14,8),(15,8),(12,9),(13,9),(14,9),(10,15),
                          (9,16),(10,16),(11,16),(10,17)]:
                window.put("khaki2",(self.x*30+a,self.y*30+b))
            for (a,b) in [(12,17),(11,18)]:
                window.put("gold3",(self.x*30+a,self.y*30+b))
            for (a,b) in [(20,5),(21,5),(19,6),(20,6),(21,6),(18,7),(19,7),(20,7),(17,8),(18,8),
                          (19,8),(16,9),(17,9),(18,9),(15,10),(16,10),(17,10),(14,11),(15,11),
                          (16,11),(13,12),(14,12),(15,12),(11,13),(12,13),(13,13),(14,13),(11,14),
                          (12,14),(13,14),(12,15),(13,15),(8,17),(7,18),(8,18),(9,18),(8,19)]:
                window.put("gray45",(self.x*30+a,self.y*30+b))
            for (a,b) in [(16,17),(12,18),(13,18),(14,18),(15,18),(16,18),(17,18),(12,19),(13,19),
                          (14,19),(15,19),(16,19)]:
                window.put("cyan2",(self.x*30+a,self.y*30+b))
            for (a,b) in [(17,12,),(18,12),(17,13),(18,13),(15,14),(17,14),(18,14),(15,15),(17,15),
                          (18,15),(15,16),(17,16),(18,16),(17,17),(18,17),(11,21),(12,21),(13,21),
                          (14,21),(15,21),(11,22),(15,22),(10,23),(11,23),(15,23),(16,23),(9,24),
                          (10,24),(16,24),(17,24),(9,25),(10,25),(16,25),(17,25),(8,26),(9,26),
                          (17,26),(18,26)]:
                window.put("cyan4",(self.x*30+a,self.y*30+b))
        lbl.update()
[/code]
Zuletzt geändert von Damaskus am Samstag 20. Juli 2013, 13:30, insgesamt 1-mal geändert.
Grund: Benutzernamen entfernt
Gesperrt