Skip to content

OH NO, the system crashed! You open the logs, sit on your hacker's chair and now... IT'S TIME TO BEATBUGGING!

License

Notifications You must be signed in to change notification settings

sandra-aliaga/beatbugging

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

71 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŽต BeatBugging

Transform System Logs into Rhythmic Debugging Adventures

โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ•—   โ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—  โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ•—โ–ˆโ–ˆโ–ˆโ•—   โ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— 
โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•”โ•โ•โ•โ•โ•โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•—โ•šโ•โ•โ–ˆโ–ˆโ•”โ•โ•โ•โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•‘   โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•”โ•โ•โ•โ•โ• โ–ˆโ–ˆโ•”โ•โ•โ•โ•โ• โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ–ˆโ–ˆโ•—  โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•”โ•โ•โ•โ•โ• 
โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•”โ•โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—  โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•‘   โ–ˆโ–ˆโ•‘   โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•”โ•โ–ˆโ–ˆโ•‘   โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘  โ–ˆโ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•‘  โ–ˆโ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•”โ–ˆโ–ˆโ•— โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘  โ–ˆโ–ˆโ–ˆโ•—
โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•”โ•โ•โ•  โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•‘   โ–ˆโ–ˆโ•‘   โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•‘   โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘   โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘   โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘โ•šโ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘   โ–ˆโ–ˆโ•‘
โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•”โ•โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•‘  โ–ˆโ–ˆโ•‘   โ–ˆโ–ˆโ•‘   โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•”โ•โ•šโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•”โ•โ•šโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•”โ•โ•šโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•”โ•โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘ โ•šโ–ˆโ–ˆโ–ˆโ–ˆโ•‘โ•šโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•”โ•
โ•šโ•โ•โ•โ•โ•โ• โ•šโ•โ•โ•โ•โ•โ•โ•โ•šโ•โ•  โ•šโ•โ•   โ•šโ•โ•   โ•šโ•โ•โ•โ•โ•โ•  โ•šโ•โ•โ•โ•โ•โ•  โ•šโ•โ•โ•โ•โ•โ•  โ•šโ•โ•โ•โ•โ•โ• โ•šโ•โ•โ•šโ•โ•  โ•šโ•โ•โ•โ• โ•šโ•โ•โ•โ•โ•โ• 

OH NO, the system crashed! You open the logs, sit on your hacker's chair and now... IT'S TIME TO BEATBUGGING!

License Python ForTheLoveOfCode

BeatBugging revolutionizes debugging by turning system logs into playable music. Built for the GitHub "For the Love of Code" Hackathon - Category 4: Game on ๐ŸŽฎ

Code is your controller. Transform the mundane task of debugging into an epic rhythm game adventure!

๐ŸŽฌ Demo

BeatBugging Gameplay

๐Ÿ“ธ Screenshots

Main Menu

Main Menu

Data Selection

Data Selection Screen

Loading Screen

Loading

Gameplay

Gameplay Screenshot

Victory Screen

Victory

Win Screen

Win

Game Over

Game Over

Skull Icon

Skull

๐ŸŽฏ What Makes This Special?

BeatBugging takes two completely unrelated things - system debugging and rhythm games - and mashes them together into something surprisingly addictive. Every bug becomes a beat, every error becomes a note, and every successful fix becomes a perfect combo!

๐ŸŽต Musical Log Analysis

Your boring system logs become actual music:

# This log line...
2025-09-23 12:16:24.503  ERROR  pdv.test.app  Invalid ID 0x00000000.

# Becomes this musical note at coordinate "AJ" with sawtooth wave!

๐ŸŽฎ Rhythm Game Mechanics

  • 5ร—5 Grid Gameplay - Hit coordinate combinations like a pro debugger
  • Musical Timing - Each log entry appears exactly when its "note" plays
  • Perfect/Good/Okay/Miss - Debug with precision or watch your system crash!
  • Combo System - Chain successful fixes for massive score multipliers
  • Health System - Too many missed bugs = system failure!

๐Ÿ› ๏ธ Built for Developers, By Developers

  • Real Log Files - Scan your actual system logs (/var/log, user logs, etc.)
  • Smart File Detection - Automatically finds and previews log files
  • Multiple Formats - JSON logs, Logcat, timestamped entries, raw text
  • Difficulty Modes - User (Normal) and Root (Hard) for different skill levels

๐ŸŽจ Customizable Color Themes

Choose your debugging style with multiple color themes for the main menu:

Blue Theme Blue Theme
  • Default Theme - Classic green matrix style for that hacker feel
  • Blue - Electric blue and cyan for futuristic debugging
  • Custom Themes - Easy theme switching with JSON configuration

๐Ÿš€ Quick Start

Prerequisites

  • Python 3.8+
  • Audio device
  • Log files to debug! (the game will find them for you)

Installation & Play

# Clone this epic debugging adventure
git clone https://github.com/sandra-aliaga/beatbugging.git
cd beatbugging

# Set up your debugging environment
python -m venv venv
source venv/bin/activate  # Windows: venv\Scripts\activate

# Install the rhythm debugging engine
pip install -r requirements.txt

# START BEATBUGGING! ๐ŸŽต
python main.py

That's it! The game will auto-scan for log files and get you debugging to the beat!

๐ŸŽฎ How to Play Like a Pro

1. Choose Your Debugging Challenge

  • Browse auto-discovered log files with fuzzy search
  • See file previews, line counts, and content samples
  • Pick your poison: User (Normal) or Root (Hard)

2. Master the Debug Controls

Columns: A S D E F  (left hand)
Rows:    J K L M N  (right hand)

Hit combinations: A+J, S+K, D+L, E+M, F+N

๐Ÿ› ๏ธ Technical Innovation

The Log-to-Music Algorithm

def create_musical_note(log_line):
    # SHA-256 hash ensures same logs = same music
    hash_value = hashlib.sha256(log_line.encode()).hexdigest()
    
    # Map to musical coordinates
    column = COLUMNS[int(hash_value[:2], 16) % 5]  # A-F
    row = ROWS[int(hash_value[2:4], 16) % 5]       # J-N
    coordinate = f"{column}{row}"
    
    # Severity determines waveform
    if "ERROR" in log_line: return sawtooth_wave(frequency)
    if "WARN" in log_line:  return square_wave(frequency)
    if "INFO" in log_line:  return triangle_wave(frequency)
    return sine_wave(frequency)  # DEBUG

๐Ÿ“ฆ Dependencies & Tools

{
  "core_engine": {
    "numpy": "High-performance audio array processing",
    "pygame": "Real-time audio playback and mixing"
  },
  "game_interface": {
    "rich": "Beautiful terminal rendering and layouts", 
    "textual": "Modern CLI application framework"
  },
  "no_paid_services": "100% free and open source!",
  "setup_time": "< 2 minutes from clone to play"
}

Zero paid services required - just Python and the love of turning bugs into beats! ๐ŸŽต

๐Ÿ† For the Love of Code - Category 4: Game on

Why BeatBugging fits perfectly:

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ "Code is your controller"                               โ”‚
โ”‚ โ†’ Your actual log files become the game content         โ”‚
โ”‚                                                         โ”‚
โ”‚ "Fun first, functional close behind"                    โ”‚
โ”‚ โ†’ Turns boring debugging into addictive gameplay        โ”‚
โ”‚                                                         โ”‚
โ”‚ "Interactive experience"                                โ”‚
โ”‚ โ†’ Real-time rhythm game with immediate feedback         โ”‚
โ”‚                                                         โ”‚
โ”‚ "Completely original"                                   โ”‚
โ”‚ โ†’ Nobody has ever made debugging this fun before!       โ”‚
โ”‚                                                         โ”‚
โ”‚ "Mashing up genres"                                     โ”‚
โ”‚ โ†’ DevOps tools + Rhythm games = Pure innovation         โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

Built with pure joy for the art of coding and the love of making developers smile while they debug!

#ForTheLoveOfCode ๐Ÿงก

Category 4: Game on ๐ŸŽฎ

"Every bug deserves a beat, every error needs a rhythm, and every crash calls for a crescendo!"

Making the world's most boring task into the most epic musical adventure - because debugging should be this fun!


๐Ÿ†˜ Need Help Debugging the Debugger?

  • ๐Ÿ› Found a bug? Open an issue
  • ๐Ÿ’ก Epic idea? Start a discussion
  • โ“ How does this magic work? The code is well-documented - dive in!
  • ๐ŸŽต Want to jam? Tag your gameplay with #ForTheLoveOfCode

๐Ÿ“„ License

MIT License - hack away and spread the debugging joy!


Built with โค๏ธ for the GitHub "For the Love of Code" Hackathon

P.S. - Yes, this actually works. Yes, it's surprisingly addictive. Yes, you'll never look at log files the same way again. ๐ŸŽต๐Ÿ›๐ŸŽฎ

About

OH NO, the system crashed! You open the logs, sit on your hacker's chair and now... IT'S TIME TO BEATBUGGING!

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages