Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

3 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿฝ๏ธ Cyber Kitchen โ€” Stack & Queue Visualizer

An interactive, cyberpunk-themed web app that brings Stack and Queue data structures to life using a kitchen analogy.


๐Ÿš€ Live Demo

Open index.html directly in any modern browser โ€” no server or build step needed.


๐Ÿง  Concept

Data Structure Real-Life Analogy Behaviour
Queue Conveyor Belt (Incoming Orders) FIFO โ€” First In, First Out
Stack Wash Basin (Sink) LIFO โ€” Last In, First Out

Plates (orders) enter the conveyor belt via the queue, get transferred to the sink one by one, and are washed (popped) from the top of the stack.


๐ŸŽฎ How to Use

  1. ENQUEUE ORDER โ€” Adds a new plate to the conveyor belt (queue).
  2. TRANSFER TO SINK โ€” Removes the front plate from the belt (dequeue) and drops it into the wash basin (push onto stack).
  3. WASH TOP โ€” Removes and washes the top plate from the sink (pop from stack).

Both the queue and stack hold a maximum of 5 plates. Error modals appear if you try to exceed the limit or operate on an empty structure.


๐Ÿ—‚๏ธ Project Structure

โ”œโ”€โ”€ index.html   # App layout and UI markup
โ”œโ”€โ”€ style.css    # Neon/cyberpunk theme, animations, 3D transforms
โ””โ”€โ”€ script.js    # Queue & stack logic, DOM manipulation, animations

โœจ Features

  • ๐ŸŽจ Neon cyberpunk UI with 3D CSS transforms and glow effects
  • ๐ŸŽฌ Smooth animations โ€” plates slide in, fly across, and spin out
  • ๐Ÿ“Š Live stat bars that turn red when a structure is full
  • ๐Ÿšจ Error modal for overflow and empty-structure operations
  • ๐Ÿ”’ Operation lock (isBusy flag) prevents animation conflicts

๐Ÿ› ๏ธ Tech Stack

  • HTML5 โ€” semantic structure
  • CSS3 โ€” custom properties, keyframe animations, 3D perspective
  • Vanilla JavaScript โ€” no frameworks or dependencies
  • Google Fonts โ€” Orbitron & Roboto

๐Ÿ“š Learning Outcomes

  • Understand FIFO (Queue) vs LIFO (Stack) behaviour visually
  • See how Array.push() / Array.shift() / Array.pop() map to real data structure operations
  • Observe how animations can make abstract CS concepts tangible

About

understading stack and queue concepts in real life

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages