Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/lengthproblem.py
diff options
context:
space:
mode:
authorpmoxhay <pmoxhay@earthlink.net>2009-05-26 13:55:11 (GMT)
committer pmoxhay <pmoxhay@earthlink.net>2009-05-26 13:55:11 (GMT)
commitc997369b54a9d0d5e4865e99b17e930bca8a1528 (patch)
tree9f19782a129ed1d8128548b058cd78f70c25b335 /lengthproblem.py
parent9f52a7ce71a89ffab1762348741699a34a0c16d2 (diff)
Fixed behavior of lengths when clicked inside answer box.
Diffstat (limited to 'lengthproblem.py')
-rw-r--r--lengthproblem.py17
1 files changed, 1 insertions, 16 deletions
diff --git a/lengthproblem.py b/lengthproblem.py
index f80f831..ebe37b7 100644
--- a/lengthproblem.py
+++ b/lengthproblem.py
@@ -85,7 +85,7 @@ class LengthProblem(Problem):
(0, math.pi/4), (math.pi/4, 0), (0, math.pi/4), (math.pi/4, 0), (0, 0), (math.pi/2, 0), (0, math.pi/2) ])
# The total number of problems.
- n_problems = 36
+ n_problems = 18
# Choose a random problem.
problem_number = random.randrange(0,n_problems)
@@ -256,21 +256,6 @@ class LengthProblem(Problem):
return True
elif (self.answer == 'less' or self.answer == 'greater') and n_equal == 1:
return True
-
- # Test if one object is completely inside the other (areas are not equal)
- #area0 = self.shape1.area
- #area1 = self.shape2.area
- #
- #if area0 > area1:
- # object_larger = self.shape1
- # p_smaller = p1
- #else:
- # object_larger = self.shape2
- # p_smaller = p0
- #
- #for i in range(0,len(self.shape1.points)):
- # if not object_larger.contains_point(p_smaller[i]):
- # return False
return False