games · MIT License
Overview
A 10-question mental math game with three levels, from adding and subtracting up to powers and fraction sums, with points and a streak bonus for answers in a row.
- Owner-tested on a TI calculator
- Version 1.0.0
- 2166 bytes
- Uses random
Tried it? Did this program work on your calculator?
Before you run it
- TI-84 Plus CE Python · No calculator OS or Python App version has been verified.
- TI Connect CE .py transfer to the Python App; the owner's transfer details were not recorded
- Questions are made up at random by the calculator for every round.
- An answer counts as correct when it is within 0.000001 of the exact answer.
- Answers may be typed as whole numbers, decimals, or a fraction such as 5/6; anything else asks again.
Play it here first
Play a full round right here before you download. The screen below runs the same steps as the calculator game: type your answer in the box under it and press Enter, just as you would on the calculator. Each round picks a new secret, and nothing you type is saved.
TI-84 Plus CE Python · screen preview
How to play
How to play Math Blitz
About the game
Math Blitz is a 10-question mental math race. Each round shows one question; type the answer and you earn points, with extra points for answers in a row.
Easy asks addition and subtraction with numbers up to 10, times tables up to 5 x 5, and division. Medium uses numbers up to 20 and adds powers such as 3 ^ 2. Hard uses numbers up to 50, times tables up to 12 x 12, and adds fraction sums such as 1/2 + 1/3.
Controls
1, 2, or 3- choose Easy, Medium, or Hard
4- quit from the level menu
number keys- type an answer; use the division key for a fraction such as 5/6
enter- submit an answer, or go on to the next question
Y- play another game; any other answer ends the game
How to play
- Press enter at the opening screen, then type 1, 2, or 3 to choose a level.
- Each round shows your score, your streak, and the question, such as 7 x 8 = ?.
- Type the answer and press enter. The calculator says CORRECT! with the points earned, or NOPE! with the right answer.
- Press enter for the next question. After 10 questions the game shows your points and your best streak.
- Score 100 or more to add to your count of 100+ point games.
Tips
- A correct answer is worth 10 points, plus 2 more for each answer before it in your current streak, up to 20 points a question. A wrong answer resets the streak.
- Ten in a row scores 170, the most a game can give. Three in a row shows ON FIRE!
- For fraction sums, type the answer as a fraction such as 5/6. A decimal rounded to six places, such as 0.833333, also counts.
- Accuracy beats speed: there is no timer, and keeping a streak going is worth more than any single answer.
Good to know
- The count of games played and 100+ point games starts over each time you run the program.
- A wrong answer shows the right one, so every miss is a quick lesson.
- To stop the game at any time, press the [on] key. The Python App returns to the shell.
Exact reviewed bytes
Source code
# DuckieDai(TM) Math Blitz# TI-84 Plus CE Pythonfrom random import randintdef clr():print('\n'*7)def num(p):while 1:try:s=input(p).strip()if '/' in s:a,b=s.split('/')return float(a)/float(b)return float(s)except:print('Use number or a/b')def question(level):op=randint(1,(4,5,6)[level-1])m=(10,20,50)[level-1]a=randint(1,m)b=randint(1,m)if op==1:return str(a)+' + '+str(b),a+bif op==2:if b>a:a,b=b,areturn str(a)+' - '+str(b),a-bif op==3:a=randint(2,(5,9,12)[level-1])b=randint(2,(5,9,12)[level-1])return str(a)+' x '+str(b),a*bif op==4:b=randint(2,(5,10,12)[level-1])a=randint(1,(10,12,15)[level-1])return str(a*b)+' / '+str(b),aif op==5:a=randint(2,5)b=randint(2,3 if level==2 else 4)return str(a)+' ^ '+str(b),a**ba=randint(1,5)b=randint(2,8)c=randint(1,5)d=randint(2,8)return str(a)+'/'+str(b)+' + '+str(c)+'/'+str(d),a/b+c/ddef play():wins=0played=0while 1:clr()print('MATH BLITZ')print('1 Easy 2 Medium')print('3 Hard 4 Quit')level=input('Level? ')if level=='4':breakif level not in ('1','2','3'):continuelevel=int(level)score=0streak=0best=0for i in range(1,11):q,ans=question(level)clr()print('ROUND',i,'OF 10')print('Score:',score)print('Streak:',streak)print()print(q,'= ?')guess=num('Answer? ')if abs(guess-ans)<0.000001:streak+=1if streak>best:best=streakgained=10+min(streak-1,5)*2score+=gainedprint('CORRECT! +',gained)if streak>=3:print('ON FIRE!')else:streak=0print('NOPE! Answer:',ans)input('Press Enter ')played+=1if score>=100:wins+=1clr()print('GAME OVER!')print('Points:',score)print('Best streak:',best)print('100+ point games:',wins)print('Games played:',played)if input('Again? Y/N ').upper()!='Y':breakclr()print('QUACK QUACK!')print('hiddenwordscanner.com')print('DUCKIEDAI(TM)')print('MATH BLITZ')print(' __')print(' ___(o )> quack!')print(' \\ <_. )')print(" `---'")print('by DuckieDai')print('hiddenwordscanner.com')input('Press Enter ')play()
- Filename
MATHBLZ.py- Size
- 2166 bytes
- SHA-256
c6502a7fb0b29356546f6358204162df0d11393afeb4b364f64a9f9806ef1587
Usage
Inputs
- A level: 1 Easy, 2 Medium, 3 Hard, or 4 Quit
- One answer per question
- Y to play again, anything else to stop
Outputs
- Each question with the round, score, and current streak
- CORRECT with the points earned, or NOPE with the right answer
- Final points, best streak, 100-point games, and games played
Units: Points; no units.
Assumptions and limitations
Assumptions
- Questions are made up at random by the calculator for every round.
- An answer counts as correct when it is within 0.000001 of the exact answer.
Constraints
- Answers may be typed as whole numbers, decimals, or a fraction such as 5/6; anything else asks again.
- Each game is 10 questions; the level choice must be 1, 2, 3, or 4 exactly.
Known failures
- A fraction-sum answer rounded to fewer than six decimal places may be marked wrong; type the fraction or six decimal places.
- The totals of games played and 100-point games reset when the program is started again.
Compatibility and review
- Review status
- Owner-tested on a TI calculator
- Tested on
- Owner reports personally playing this game on a TI-84 Plus CE Python calculator; the test date, OS version, and Python App version were not recorded
- What happened
- Owner reported pass on the calculator. The file is published exactly as provided; this exact file has not yet been rerun on a calculator.
- Dependencies
- random
- Suggested calculator name
MATHBLZ— you can give it another valid, unique name when you transfer it- Desktop test cases
- Not available for this interactive-only source
This exact source auto-launches an interactive calculator session, so compatibility evidence comes from the recorded physical-device review rather than an importable desktop fixture.
Transfer and launch
Download the .py file, send it to your calculator with TI Connect CE as MATHBLZ or another name, then open the Python App and start a game. Press [on] to stop at any time. This release has no verified calculator OS or Python App version; treat transfer and execution as unverified until independently tested.
Full installation and troubleshooting guide. Check your teacher's or exam's rules before using any program.
Version history
- 1.0.0 — current version, published . Download this reviewed version
Related learning
Enjoying a DuckieDai game? Every game and program here is free. If you would like to say thanks, you can leave a tip on Cash App ($duckiedai214) or read what tips pay for.
Independent compatibility resource: Hidden Word Scanner is independent and is not affiliated with or endorsed by Texas Instruments. TI product names describe compatibility only.
Action-count privacy: Successful downloads, preview starts, and preview completions increment same-origin aggregate counters, and so does a Yes or No answer about whether the program worked. Your browser notes that you answered; that note is never sent to the site. No entered values, source text, IP address, account, cookie, device identifier, or fingerprint is stored with these counts.