Un échiquier ( pyggb beta test)

Script :
i[code]mport time[br][br][br][br]def chess(n):[br] for j in range(8):[br] for i in range(8):[br] if i%2==0:[br] col=[j%2,j%2,j%2][br] A=Point(i,j,is_visible=False)[br] B=Point(i+1,j,is_visible=False)[br] Polygon(A,B,4,color=col,opacity=1,line_thickness=0)[br] else:[br] col=[(j+1)%2,(j+1)%2,(j+1)%2][br] A=Point(i,j,is_visible=False)[br] B=Point(i+1,j,is_visible=False)[br] Polygon(A,B,4,color=col,opacity=1,line_thickness=0)[br] time.sleep(0.1)[br] [br][br][br]# pour n=8[br][br]chess(8)[br][/code]
Pour tester et modifier le script :
Lien nº1 : [url=https://geogebra.org/python/index.html]https://geogebra.org/python/index.html[/url][br][br]Lien nº2: [url=https://geogebra.github.io/pyggb/]https://geogebra.github.io/pyggb[/url]/
Capture en gif de l'exécution du script:

Information: Un échiquier ( pyggb beta test)