Interactive Algorithmic Engine ~3 min read

An IQ Too High

an-iq-too-high-tricky-questions.streamlit.app/

Overview & Purpose

Think you're smarter than everyone? Put your brain to the test with hilarious trick questions where the most obvious answer is usually wrong!

Problem & Motivation

Built to explore stateful interactive puzzle mechanics in Python, testing cognitive agility with counter-intuitive trick questions, dynamic scoring, and immediate explanatory logic.

Architecture & Implementation

  • Reactive Python Interface: Leverages Streamlit's reactive execution pipeline to evaluate user inputs and render updated score states without full-page reloads.
  • Session State Management: Utilizes Streamlit's session state dictionary (st.session_state) to track question progression, user answers, and accumulated scores.
  • Question Randomization: Implements algorithmic shuffling to ensure varied question ordering across game sessions.

Key Technical Decisions

  • Pure-Python Reactive Stack: Selected Streamlit for rapid interactive state management and UI evaluation without frontend framework overhead.
  • Immediate State Evaluation: Answer correctness and feedback are evaluated directly upon selection within the active session state.

Engineering Challenges & Lessons

  • Managing State Across Script Reruns: Streamlit re-executes scripts on user events; structured state guards were implemented to prevent score resets.

Technologies & Specifications

Python Streamlit Git GitHub
Showcase Tier Portfolio Implementation