diff options
author | pmoxhay <pmoxhay@earthlink.net> | 2009-02-11 01:15:02 (GMT) |
---|---|---|
committer | pmoxhay <pmoxhay@earthlink.net> | 2009-02-11 01:15:02 (GMT) |
commit | c7a85dd8b37262624852fb61cab8cb7e672764a5 (patch) | |
tree | b4f3a273ce468bb83a3d7fa94e4fad5374a19dca /areaproblem.py | |
parent | f1ef525a057dd1224366aa11e511086cbfce9b40 (diff) |
Add problems in comparing lengths.
Diffstat (limited to 'areaproblem.py')
-rw-r--r-- | areaproblem.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/areaproblem.py b/areaproblem.py index 8a19b23..24d73aa 100644 --- a/areaproblem.py +++ b/areaproblem.py @@ -31,12 +31,12 @@ class AreaProblem(Problem): def __init__(self, container): self.container = container - self.generate_area_problem() + self.generate_problem() self.show_problem() self.answer = self.find_answer() - def generate_area_problem(self): + def generate_problem(self): # Choose two random colors. (color1, color2) = random.choice([(Color.RED, Color.BLUE), (Color.BLUE, Color.RED), \ (Color.RED, Color.GREEN), (Color.GREEN, Color.RED), \ |