Open Extra-1 opened 3 years ago
Oh nice. I got hexagons to where they seem to mostly work in here: https://awesome-e.github.io/hs-tools/play-project?id=11utio7nt0
With this level it seems to work fine for me: 36003H000000000326000326000001000327000001a36025H000003000001000013000001000003000001000003000001000003000001000003000001000004000001000003000001000003000001000003000001000003000001000011000001000015000003000004000001000012000001000003000001000003000001000004000001000003000001000003000001000003000001000003000001000003000001000004000001000014000001C100011021032345300,55
h=abs m=range l=print o=" " a=o8 j=[list(s)for s in["RNBKQBNR","P"8,a,a,a,a,"p"8,"rnbkqbnr"]] u=False v=lambda c:(c.lower()==c)==u while 1: l("b"if u else"w") for b in j:l(b) q,r,s,t=[int(i)for i in input().split()];P=j[r][q]
h=abs m=range l=print o=" " a=o8 j=[list(s)for s in["RNBKQBNR","P"8,a,a,a,a,"p"8,"rnbkqbnr"]] u=False v=lambda c:(c.lower()==c)==u while 1: l("b"if u else"w") for b in j:l(b) q,r,s,t=[int(i)for i in input().split()];P=j[r][q];g=j[t][s];p=P.lower() def w(): if g==o or not v(g):j[t][s]=P;j[r][q]=o;global u;u=not u if not v(P):break if p=="r"or p=="q": for a,b,c,d in[(q,r,s,t),(r,q,t,s)]: if a==c: x=h(d-b)//(d-b) for n in m(b+x,d,x): if j[n if b else r][q if b else n]!=o:break else:w() if p=="b"or p=="q": if h(q-s)==h(r-t): for n in m(1, h(q-s)): if j[r+(n if t>r else-n)][q+(n if s>q else-n)]!=o:break else:w() if p=="k"and h(q-s)<2 and h(r-t)<2 or(p=="n"and(h(q-s)==2 and h(r-t)==1 or h(r-t)==2 and h(q-s)==1)):w() if p=="p": f=t-r==(-1 if u else 1) if(g!=o and not v(g)and h(q-s)==1 and f)or(g==o and q==s and f)or(g==o and q==s and t-r==(-2 if u else 2)and r==(6 if u else 1)): w() if t==(0 if u else 7):j[t][s]="q"if u else"Q"
h=abs
m=range
l=print
o=" "
a=o*8
j=[list(s)for s in["RNBKQBNR","P"*8,a,a,a,a,"p"*8,"rnbkqbnr"]]
u=False
v=lambda c:(c.lower()==c)==u
while 1:
l("b"if u else"w")
for b in j:l(*b)
q,r,s,t=[int(i)for i in input().split()];P=j[r][q];g=j[t][s];p=P.lower()
def w():
if g==o or not v(g):j[t][s]=P;j[r][q]=o;global u;u=not u
if not v(P):break
if p=="r"or p=="q":
for a,b,c,d in[(q,r,s,t),(r,q,t,s)]:
if a==c:
x=h(d-b)//(d-b)
for n in m(b+x,d,x):
if j[n if b else r][q if b else n]!=o:break
else:w()
if p=="b"or p=="q":
if h(q-s)==h(r-t):
for n in m(1, h(q-s)):
if j[r+(n if t>r else-n)][q+(n if s>q else-n)]!=o:break
else:w()
if p=="k"and h(q-s)<2 and h(r-t)<2 or(p=="n"and(h(q-s)==2 and h(r-t)==1 or h(r-t)==2 and h(q-s)==1)):w()
if p=="p":
f=t-r==(-1 if u else 1)
if(g!=o and not v(g)and h(q-s)==1 and f)or(g==o and q==s and f)or(g==o and q==s and t-r==(-2 if u else 2)and r==(6 if u else 1)):
w()
if t==(0 if u else 7):j[t][s]="q"if u else"Q"
I think I got squares that can become black dots working, same project with this level: 36003H000000000332000332000001000333000001a36025H000003000001000003000001000003000001000003000001000004000001000003000001000003000001000011000001000004000001000003000001000003000001000003000001000003000001000004000001000004000001000003000001000003000001000003000001000004000001000003000001000003000001000012000001000004000001000021000003000003000001C100011021032345103104104,55
. Going to work on hexagon type 2 now
Got first type working, going to add second one now. 36003H000000000623000623000001000624000001a36049H000003000001000003000001000011000001000003000001000003000001000003000001000003000001000024000003000003000001000018000003000003000001000003000001000003000001000003000001000003000001000004000001000003000001000003000001000003000001000003000001000003000001000003000001000004000001000003000001000003000001000003000001000003000001000003000001000003000001000012000001000004000001000003000001000018000003000003000001000003000001000003000001000003000001000021000003000003000001000004000001000004000001000012000001000003000001000003000001000003000001000004000001000004000001000003000001000003000001C100011021032345301301302400,77
Both hexagon types are working, both in that level. I couldn't figure out a good color for them so I just made every hexagon a different grey. I'm going to experiment with fun animations for the second type.
In this project I added a super dot. It turns into the color and makes all the thers of the color turn into black dot. Not sure how much I like the current animation, what do you think? 36003H000000000326000326000001000327000001a36025H000003000001000003000001000003000001000003000001000011000001000003000001000003000001000003000001000004000001000003000001000003000001000012000001000004000001000004000001000003000001000003000001000003000001000004000001000003000001000003000001000003000001000003000001000015000003000003000001000003000001C100011021032345500,55
https://awesome-e.github.io/hs-tools/play-project/?id=11tt3t012f