Skip to content

An alarm that doesnt quit till you solve math pproblem

Notifications You must be signed in to change notification settings

dixon-codes/Math_Alarm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

6 Commits
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿง  Math Alarm โฐ

A Python-based alarm clock that forces you to solve math problems to stop the alarm. No cheating. No closing the window. No mercy.

This project combines GUI, sound, threading, and logic to create a smart alarm system that actually wakes you up.


๐Ÿš€ Features

  • โฐ Set alarm using 12-hour or 24-hour format
  • ๐Ÿงฎ Random math questions to stop the alarm
  • ๐Ÿ”Š Continuous alarm sound until correct answer
  • ๐Ÿ–ฅ๏ธ User-friendly GUI (Tkinter)
  • ๐Ÿ˜ˆ Anti-escape system (cannot close window without solving math)
  • ๐Ÿงต Background alarm monitoring (threading)

๐Ÿ–ผ๏ธ Preview

When the alarm rings, a math challenge pops up, for example:

Solve to stop alarm:
12 x 4 = ?

If you fail โ†’ alarm continues ๐Ÿ˜ˆ If you succeed โ†’ freedom ๐Ÿ˜Ž


๐Ÿ› ๏ธ Technologies Used

  • Python 3.14
  • Tkinter (GUI)
  • winsound (Windows audio)
  • threading
  • datetime
  • regex (time parsing)

๐Ÿ“ฆ Installation

1๏ธโƒฃ Clone the repository

git clone https://github.com/your-username/Math_Alarm.git

2๏ธโƒฃ Navigate into the project folder

cd Math_Alarm

3๏ธโƒฃ Run the program

python script.py

๐Ÿ”Š Alarm Sound Setup

Make sure you have an alarm sound file named:

Alarm.wav

Place it in the same folder as the Python file.

You can replace it with any .wav sound.


๐Ÿง‘โ€๐Ÿ’ป How to Use

  1. Enter alarm time:

    • Example: 7:30 AM or 19:30
  2. Click Set Alarm

  3. Wait for the alarm โณ

  4. Solve the math question to stop it ๐Ÿง 


๐Ÿงฉ Example Time Formats

Format Example
12-hour 6:45 AM
12-hour 9:10 PM
24-hour 06:45
24-hour 21:10

โš ๏ธ Notes

  • Works best on Windows (uses winsound)
  • Closing the window will not stop the alarm ๐Ÿ˜ˆ
  • Math difficulty is random (easy to medium)

๐ŸŒŸ Future Improvements

  • Difficulty levels (Easy / Hard / Insane)
  • Multiple alarms
  • Dark mode UI
  • Cross-platform sound support
  • Alarm history and statistics
  • Mobile version (Android)

๐Ÿค Contributing

Pull requests are welcome. If you have ideas to make the alarm more evil or more useful, feel free to contribute.


๐Ÿ“œ License

This project is licensed under the MIT License.


๐Ÿง  Author

Created by Dixon-Codes A developer who decided normal alarms are too easy.

About

An alarm that doesnt quit till you solve math pproblem

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages