1. Click to edit Master title style
1
The Math Game
M e m b e r s :
C h e s l e e K a r a s e k
G a b r i e l A b u i d
J o s e p h S t a v i o n h a
2. Click to edit Master title style
2
Purpose
โ T h e m o t i v a t i o n b e h i n d c r e a t i n g a g a m e s t y l e s t u d y
p l a t f o r m o r i g i n a t e d t h r o u g h o u r t e a m โ s r e a l i z a t i o n t h a t i f
y o u n g e r k i d s d o n o t a s s o c i a t e l e a r n i n g w i t h f u n a t a y o u n g
a g e , t h e y w i l l g r o w r e s e n t m e n t t o w a r d s t h e e d u c a t i o n s y s t e m ,
a n d i t w i l l b e l e s s l i k e l y f o r t h e m t o e n j o y l e a r n i n g
t h r o u g h o u t t h e d u r a t i o n o f t h e i r l i f e .
โ O u r s o l u t i o n t o h e l p a v o i d t h i s m i s f o r t u n e i s t o c r e a t e
โ T h e M a t h G a m e โ , w h i c h w i l l p r o v i d e a s i m p l e p l a t f o r m f o r
s t u d e n t s o f d i f f e r e n t g r a d e l e v e l s t o m a s t e r m a t h s u b j e c t s
t h r o u g h a f u n a n d c o m p e t i t i v e a c t i v i t y.
2
3. Click to edit Master title style
3
Description
โ W h e n c r e a t i n g o u r P y t h o n g a m e , w e t o o k i n s p i r a t i o n f r o m
J e o p a r d y, t h e p o p u l a r T V g a m e s h o w, a n d t u r n e d i t i n t o a
s t u d y t o o l . U p o n l o g g i n g i n , t h e p r o g r a m w i l l a s s u m e t h e r e
a r e t w o t e a m s a n d a s k f o r t e a m n a m e s f o r b o t h t e a m s . T h e
s t u d e n t w i l l t h e n b e a s k e d t o c h o o s e o n e o f t h r e e l e v e l s o f
d i f f i c u l t y. A s t h e l e v e l i n c r e a s e s , s o d o e s t h e d i f f i c u l t y,
r e s p e c t i v e l y. D e p e n d i n g o n t h e l e v e l o f d i f f i c u l t y t h e
s t u d e n t c h o s e , a c o r r e s p o n d i n g l i s t o f t e n q u e s t i o n s w i l l b e
i m p o r t e d i n t o t h e p r o g r a m f r o m a p r e e x i s t i n g f i l e .
โ W h e n t h e g a m e b e g i n s , t h e f i r s t t e a m w i l l b e a s k e d a
q u e s t i o n a n d w i l l b e g i v e n a l i m i t e d a m o u n t o f t i m e t o
r e s p o n d . I f t h e f i r s t t e a m a n s w e r s t h e q u e s t i o n c o r r e c t l y,
t h e r o u n d i s o v e r , a n d t h e t e a m r e c e i v e s a n a d d i t i o n a l
p o i n t . I f t h e f i r s t t e a m f a i l s t o r e s p o n d c o r r e c t l y, t h e s e c o n d
t e a m w i l l b e g i v e n t h e o p p o r t u n i t y t o a n s w e r . I f t h e s e c o n d
t e a m c o r r e c t l y a n s w e r s t h e q u e s t i o n , t h e y w i l l r e c e i v e a n
a d d i t i o n a l p o i n t a n d t h e r o u n d w i l l e n d . I f e i t h e r t e a m g i v e s
a n i n c o r r e c t a n s w e r , t h e y w i l l r e c e i v e z e r o p o i n t s f o r t h a t
r o u n d .
3
4. Click to edit Master title style
4
Status of Program: FINISHED
โข NEW PROGRAM FEATURES NOT TAUGHT IN CLASS:
โข We used the sleep function that is included in the time module to delay when
questions were displayed in the console. We thought a time delay after
notifying the team it was their turn to answer and before revealing the question
would be beneficial to gather the whole team's attention.
โข We were able to create a 10 second timer to limit the amount of time a
team can take to input an answer. If the team takes longer than 10 seconds,
their answer will be automatically invalid.
4
5. Click to edit Master title style
5
Difficulties when developing the program:
5
1. We had trouble creating the timer. We resulted to taking note of when the question
started and ended and if that lasted over 10 seconds, we made the team's input invalid.
โข We are currently looking into how to use threading to run a timer and ask for an input
simultaneously. If this is possible, we would like to use the threading functions to stop the user's
ability to input rather than just deem the input invalid.
2. Alternating which team was asked the question first while also switching which team was
answering the question mid round if the first team was incorrect. This problem seemed
complex at first but resulted in a simple fix.
โข At first, we tried to create two separate functions, but later we decided to simplify the code by
simply calling for the Alternate() function 3 times on rounds where the first team was incorrect.
1. Once, at the beginning of the round to alternate who went first.
2. Second, if the first team got the question wrong.
3. Third, we switched it back to the original order right before the next round was executed.