# Definition of an exercise ruler & compass.
# syntax of the file.
# points:  each line defines a point.  x,y
# lines:   each line defines two points on a line.   x1,y1,x2,y2,type
#          type: 1 (segment), 2 (line), 3 (semiline direct), 4 (semiline inverse)
#	   type is facultative, defaulting to 1.
# circles: each line defines a circle. x,y,r,n
#	   where (x,y) is the center, r=radius,
#          n is the number of point for the center (if n>0).
# goal: each line defines an object. First item is the type of the object
# (point,line or circle), the rest are parameters (same as above).
# goal_text: text explaining the goal. (language-dependent)

title=Carr avec un ct donn

r=0.6

points=-$r,$r\
$r,$r
lines=-$r,$r,$r,$r,1

goal=point,-$r,-$r\
point,$r,-$r\
line,$r,$r,$r,-$r,1\
line,-$r,$r,-$r,-$r,1\
line,$r,-$r,-$r,-$r,1
goal_text=construire le carr  ayant le  segment 1-2 comme ct
solution=midper,1,2\
point,line,1,line,2\
circle,3,1\
point,line,2,circle,1#Point 5 est le centre du carr.\
hide,point,4\
hide,circle,1\
hide,line,2\
hide,point,3#Maintenant on trace les diagonales.\
semiline_direct,1,5\
semiline_direct,2,5\
circle,1,2\
point,line,4,circle,2\
hide,circle,2\
circle,2,1\
point,line,3,circle,3\
hide,circle,3\
segment,1,6\
segment,6,7\
segment,7,2

