void main() { int x = 0, y = 0, r = 1, c = 4, i = 0, a = 0; reset(10, 10); while (i != 2) { cercle(x, y, r, c, i); i ++; reset(10, 10); } for (r = 1; r <= 10; r ++) { addCircle(x - 10, y - 10, r, c); addCircle(x - 10, y + 10, r, c); addCircle(x + 10, y + 10, r, c); addCircle(x + 10, y - 10, r, c); sleep(200); } reset(10, 10); while (i != 8) { x = 0; y = 0; c = 4; cercle(x, y, r, c, i); i ++; } for(i=0; i<=40; i++){ reset(10, 10); addCircle(0, 0, 10, 7); addCircle(0, 0, 1, 7); addCircle(5, 5, 2, 7); addLine( - 5, - 5, 5, - 5, 7); if(a==0){ addCircle(-5, 5, 2, 7); a = 1; } else { addLine( - 7, 4, -3, 4, 7); a = 0; } sleep(350); } } void cercle(int x, int y, int r, int c, int i) { for (r = 1; r <= 10; r ++) { switch(i) { case 1 : reset(10, 10); break; case 2 : x = - 10; break; case 3 : y = - 10; break; case 4 : break; case 5 : c = 5; break; case 6 : y = 10; break; case 7 : x = 10; break; default : x = 0; y = 0; c = 4; } addCircle(x, y, r, c); sleep(200); } } // Programme réalisé par Gaspard LACROIX LE FLEM