Picture Puzzle

Complete User Guide

📖 Complete User Guide

Last Updated: January 2025

Welcome to Picture Puzzle! This comprehensive guide contains all 1,252 lines of content from the complete documentation.

🧩 What is Picture Puzzle?

Picture Puzzle is a jigsaw puzzle game where you rearrange scrambled pieces of an image to recreate the original picture. It's like a traditional jigsaw puzzle, but digital!

How it works:

  • The image is divided into a grid of pieces (like a checkerboard)
  • All pieces are shuffled (mixed up)
  • You swap pieces with each other to put them in the correct positions
  • Once all pieces are in their correct spots, you win!

Why you'll love it:

  • Three difficulty levels to match your skill
  • Beautiful built-in images
  • Upload your own photos
  • Track your best times
  • Works on desktop, tablet, and phone

🚀 Getting Started

Opening the Application

  1. Open the index.html file in your web browser (Chrome, Firefox, Safari, or Edge)
  2. The app will load and show you a welcome screen with a puzzle piece icon

Welcome Screen

Before you start your first game, you'll see a friendly welcome screen in the game area:

What you'll see:

  • A bouncing puzzle piece icon (🧩)
  • "Welcome to Picture Puzzle!" heading
  • Message: "Select your difficulty level and click 'New Game' to start solving beautiful jigsaw puzzles"

Default Settings:

  • Difficulty: Medium (4×4 grid) is pre-selected
  • Puzzle Image: Landscape 1 (blue gradient) is pre-selected

This welcome screen disappears as soon as you click "New Game" and is replaced by your puzzle!

First-Time Tutorial

When you open the app for the first time, you'll see a tutorial popup that explains:

  • How to start a game
  • How to swap pieces (drag & drop, tap, or keyboard)
  • How to use tools (Hint, Undo, Preview, Pause)
  • How to win

Tutorial Options:

  • Click "Got It!" to close the tutorial and start playing
  • Click "Don't Show Again" if you don't want to see it next time
  • Click the dark background (outside the tutorial box) to close it

Tip: You can always refer back to this guide if you forget anything!

Quick Close Tip: ALL popup windows (tutorial, victory, confirmations) can be closed by clicking the dark background overlay outside the popup box!

🖥️ Understanding the Interface

The app has four main sections:

1. Control Panel (Top Section)

This is where you set up your game:

  • Difficulty dropdown: Choose Easy, Medium, or Hard
  • Puzzle Image dropdown: Select which image to use
  • Game buttons: New Game, Resume, Pause, Hint, Undo, Preview, Upload Image

2. Statistics Panel (Below Controls)

Shows your current game stats:

  • Time: How long you've been playing
  • Moves: Number of swaps you've made
  • Progress: Percentage of pieces in correct positions
  • Hints Used: How many hints you've used (out of 3)

3. Game Area (Center)

This is where the puzzle appears. When you start a game, you'll see the scrambled puzzle pieces here.

4. High Scores Section (Bottom)

Displays your best completion times:

  • Filter by difficulty level
  • See your rank, difficulty, moves, and time
  • Your latest score is highlighted in green

🎯 Starting Your First Game

Follow these simple steps:

Step 1: Choose Your Difficulty

Click the "Difficulty" dropdown and select:

  • Easy (3×3): 9 pieces - Perfect for beginners!
  • Medium (4×4): 16 pieces - A good challenge
  • Hard (5×5): 25 pieces - For puzzle experts
Note: Start with Easy if you're new to puzzles!

Step 2: Choose an Image

Click the "Puzzle Image" dropdown and select:

  • Landscape 1: Blue gradient with circles
  • Landscape 2: Green gradient with waves
  • Abstract Art: Red gradient with diamond
  • Nature Scene: Purple gradient with square
  • Custom Image: Use your own photo (see Uploading Custom Images)

Step 3: Click "New Game"

Click the big "🎮 New Game" button. The puzzle will:

  1. Show a brief loading animation
  2. Create the puzzle pieces
  3. Shuffle them randomly
  4. Start the timer automatically

Now you're ready to solve the puzzle!

🎮 How to Play

The goal is simple: Put all puzzle pieces in their correct positions.

For Desktop Users (Mouse)

Method: Drag and Drop

  1. Click and hold on a puzzle piece
  2. Drag it over another piece
  3. Release to swap the two pieces
Tip: Pieces grow slightly when you hover over them, making them easy to see!

For Mobile/Tablet Users (Touch)

Method 1: Tap to Select and Swap

  1. Tap the first piece you want to move (it gets a pink outline)
  2. Tap the second piece to swap with
  3. The two pieces swap positions

Method 2: Drag and Hold

  1. Touch and hold on a piece (it becomes slightly transparent)
  2. Drag to another piece
  3. Release to swap

For Keyboard Users

Method: Keyboard Navigation

  1. Press Tab to select a piece (blue outline appears)
  2. Use Arrow Keys (↑ ↓ ← →) to move to different pieces
  3. Press Space or Enter to select first piece (pink outline)
  4. Use Arrow Keys to move to target piece
  5. Press Space or Enter again to swap
Tip: Press Escape to cancel a selection without swapping!

How Do You Know When a Piece is Correct?

When you place a piece in its correct position:

  • It gets a green glowing border
  • It plays a subtle animation (piece grows slightly then returns to normal)
  • Your Progress percentage increases
Note: Pieces can still be moved even after they're in the correct position, so be careful!

Visual Feedback Guide

Pieces change appearance to show their state. Here's what each color and effect means:

Visual Effect What It Means When You'll See It
Blue outline Focused via keyboard When using Tab or Arrow keys
Pink outline (3px) Selected for swapping After pressing Space/Enter or tapping on mobile
Green glowing border In correct position When piece is in its proper spot
Piece grows slightly Hovering with mouse When cursor is over a piece (desktop only)
Semi-transparent (50%) Being dragged While dragging with mouse (desktop)
Semi-transparent (70%) + larger Touch drag in progress While touch-dragging on mobile
Glow + pulse animation Correct placement achieved Immediately when piece lands in correct spot
Green flash (3 times) Hint given When Hint button shows this piece
Tip: Pay attention to the green borders—they tell you which pieces you've solved correctly!

🎛️ Game Controls

🎮 New Game Button

What it does: Starts a new puzzle with your current difficulty and image settings.

When to use it:

  • After completing a puzzle
  • When you want to try a different difficulty or image
  • When you want to abandon the current game and start fresh

Loading Animation:

  • When you click "New Game," the button shows a spinning circle animation
  • The button becomes slightly transparent (70% opacity)
  • This indicates the puzzle is being created and shuffled
  • Loading takes about 100 milliseconds (very fast!)
  • Once complete, the button returns to normal

Important: If you have a game in progress, it will ask for confirmation before starting a new game.

▶️ Resume Game Button

What it does: Continues a previously saved game from where you left off.

When you'll see it: This button only appears if you have a saved game. It shows up when you:

  • Paused a game and closed the browser
  • Closed the app in the middle of a game

How it works: Click it and your puzzle, timer, moves, and hints will all be restored exactly as you left them.

Tip: The app automatically saves your game when you pause or close the browser!

⏸️ Pause / ▶️ Resume Button

What it does: Pauses the timer and hides the puzzle.

When to use it:

  • Taking a break
  • Need to do something else
  • Don't want the timer running

What happens when paused:

  • Timer stops
  • Puzzle is covered with a "PAUSED" overlay
  • You can't move pieces
  • Button changes to "▶️ Resume"
  • Your game is automatically saved

To resume: Click the button again (it now says "Resume"). Timer continues from where it stopped.

Tip: Use this when you need to step away but want to continue later!

💡 Hint Button

What it does: Shows you up to 3 pieces that are in their correct positions by making them flash with a green glow.

How many hints: You get 3 hints per game.

When to use it:

  • When you're stuck
  • To verify if pieces you placed are correct
  • To get a starting point in a difficult puzzle

What you'll see:

  • Hinted pieces will glow green 3 times
  • A notification shows how many hints remain
  • The "Hints Used" counter increases

After using all hints: The Hint button becomes disabled (grayed out).

Strategy Tip: Save hints for when you're truly stuck. Try to solve as much as possible without them for a better challenge!

↶ Undo Button

What it does: Reverses your last piece swap.

How it works:

  • Click once to undo the most recent swap
  • The pieces swap back to their previous positions
  • Your move counter decreases by 1
  • Can undo up to your last 10 moves

When it's disabled:

  • At the start of a game (no moves to undo)
  • After you've undone all available moves

When to use it:

  • Made a swap by accident
  • Want to try a different approach
  • Realized a move was wrong
Note: Each undo removes one move from your counter, so it doesn't penalize you for mistakes!

👁️ Preview / 🚫 Hide Preview Button

What it does: Shows a small image of the completed puzzle in the bottom-right corner of your screen.

How to use it:

  1. Click "👁️ Preview" to show the reference image
  2. A small preview appears in the bottom-right
  3. Click "🚫 Hide Preview" to hide it

When to use it:

  • Need to see what the completed puzzle looks like
  • Comparing where pieces should go
  • Checking if your current progress looks correct
Tip: Use Preview frequently! It's not cheating—it's how real jigsaw puzzles work. You can always look at the box!

📁 Upload Image Button

What it does: Lets you use your own photos as puzzle images.

See the detailed guide below: Uploading Custom Images

📊 Statistics Panel

The stats panel shows four important numbers that update in real-time as you play:

⏱️ Time

Shows: How long you've been working on the current puzzle

Time Format:

  • Under 1 hour: Shows as MM:SS (e.g., 05:43 = 5 minutes, 43 seconds)
  • Over 1 hour: Shows as HH:MM:SS (e.g., 1:15:30 = 1 hour, 15 minutes, 30 seconds)
  • All numbers are zero-padded (01:05, not 1:5)

How it works:

  • Starts at 00:00 when you begin a new game
  • Counts up every second
  • Stops when you pause (preserves current time)
  • Resumes counting when you unpause
  • Stops when you complete the puzzle

Why it matters: Your final time is recorded in the High Scores. Faster times rank higher!

Marathon Sessions: The timer can track games longer than an hour, though most puzzles take under 20 minutes!

🔄 Moves

Shows: Total number of piece swaps you've made

How it counts:

  • Starts at 0
  • Increases by 1 every time you swap two pieces
  • Decreases by 1 when you use Undo
  • Doesn't increase when pieces are shuffled at the start

Why it matters: Fewer moves mean you're more efficient. Your move count is displayed with your high score.

📊 Progress

Shows: Percentage of pieces in their correct positions (0% to 100%)

How it calculates:

  • 0% = No pieces in correct positions
  • 50% = Half the pieces are correct
  • 100% = All pieces correct (Puzzle solved!)

Why it matters: Helps you see how close you are to finishing. Very motivating to watch it climb!

Tip: If your progress is stuck at a certain percentage, you might need to rethink your approach!

💡 Hints Used

Shows: Number of hints used out of the maximum available (X/3)

Examples:

  • 0/3 = You haven't used any hints yet
  • 1/3 = You've used 1 hint, 2 remain
  • 3/3 = All hints used (Hint button is now disabled)

Why it matters: Shows in your high score. Solving without hints is more impressive!

📁 Uploading Custom Images

Want to solve puzzles with your own photos? Here's how!

Step-by-Step Instructions

  1. Click the "📁 Upload Image" button in the Control Panel
  2. Choose an image file from your computer:
    • Supported formats: JPG, JPEG, PNG, GIF, BMP, WebP, SVG
    • Maximum file size: 5MB
    • Recommended: Clear images with distinct features work best
  3. Wait for processing:
    • The app automatically crops your image to a square
    • It resizes it to 800×800 pixels
    • It compresses it to save storage space
  4. Success notification:
    • You'll see a message: "[filename] loaded successfully!"
    • The image dropdown automatically switches to "Custom Image"
    • Your custom image is saved for future sessions
  5. Start playing:
    • Click "🎮 New Game" to use your custom image
    • Or select a different image from the dropdown first

What Happens to Your Image?

Cropping:

  • The app crops your image to a square shape
  • It uses the center portion of rectangular images
  • This ensures pieces are uniform and easy to recognize

Compression:

  • Images are compressed to 85% quality
  • This reduces file size for faster loading
  • Visual quality remains excellent

Storage:

  • Your custom image is saved in your browser's local storage
  • It stays available even after closing the browser
  • Only your most recent custom image is saved

Troubleshooting Custom Images

Problem: "Image too large. Please use an image under 5MB"

Solution: Resize or compress your image using an image editor before uploading

Problem: "Please select a valid image file"

Solution: Make sure you're selecting an actual image file (not a document or video)

Problem: "Storage full - image loaded for this session only"

What it means: Your browser's storage is full, so the image can't be saved permanently

What happens: The image will work for this session but won't be saved for next time

Solution: Clear your browser's storage or use a smaller image

Problem: "Error loading image. Please try another file."

Solution: The image file might be corrupted. Try a different image

Best Practices for Custom Images

✅ Good choices:

  • Photos with clear subjects (people, pets, landmarks)
  • Images with distinct colors
  • High-contrast images
  • Photos you know well

❌ Difficult choices:

  • Very dark images
  • Images with lots of similar colors (like a blue sky)
  • Abstract patterns that all look the same
  • Blurry photos
Pro Tip: Try using family photos, vacation pictures, or photos of your pets. Familiar images are easier to solve because you know what they should look like!

💾 Saving and Resuming Games

The app automatically saves your progress so you never lose your work!

When Games Are Automatically Saved

Your game is saved in these situations:

  1. When you pause the game
    • Click the "⏸️ Pause" button
    • Your entire game state is saved instantly
  2. When you close the browser
    • Close the tab or browser window while a game is active
    • The app saves everything before you leave
  3. When you navigate away
    • Switch to a different website
    • Your game is preserved

What Gets Saved

When your game is saved, these details are stored:

  • Current puzzle image (including custom images)
  • Difficulty level
  • Position of every puzzle piece
  • Timer value (exact seconds)
  • Number of moves
  • Number of hints used
  • Your move history (for Undo feature)

How to Resume a Saved Game

Option 1: Resume Button

  1. Open the app
  2. Look for the "▶️ Resume Game" button (green color)
  3. Click it
  4. Your game loads exactly where you left off
  5. Timer continues from where it stopped

Option 2: Automatic on Unpause

  • If you paused the game and didn't close the browser
  • Just click "▶️ Resume" on the Pause button
  • No need for the Resume Game button

When Saved Games Are Deleted

Your saved game is automatically deleted when:

  1. You complete the puzzle
    • Victory clears the saved game
    • Prevents old completed games from cluttering storage
  2. You start a new game
    • Starting a new game overwrites the saved game
    • The app will ask for confirmation first
  3. Your browser storage is cleared
    • If you manually clear browser data
    • Or if you use incognito/private browsing mode

Important Notes

Note: Saved games are stored in your browser's local storage. This means:

  • They're specific to each browser (Chrome save ≠ Firefox save)
  • They're specific to each device (Computer save ≠ Phone save)
  • They persist even after restarting your computer

Tip: If you need to keep a game for a long time, just leave the browser tab open or make sure you pause before closing!

🎉 Completing Puzzles

You did it! Here's what happens when you solve the puzzle.

How You Know You've Won

The moment you place the final piece in its correct position:

1. Confetti Celebration! 🎉

  • 50 colorful confetti pieces fall from the top of the screen
  • Five vibrant colors: Purple, Pink, Indigo, Green, and Amber
  • Pieces are randomly sized (5-15 pixels)
  • Mix of circles and squares for variety
  • Each piece rotates 360° as it falls
  • Animation lasts 3 seconds then pieces disappear
  • Pieces appear one-by-one with 30ms delay between each (cascade effect)

2. Timer Stops

  • Your final time is recorded
  • No more seconds ticking

3. Victory Modal Appears

A popup shows your completion statistics

Victory Modal Details

The victory screen shows:

Your Stats:

  • Time: How long it took to complete (MM:SS)
  • Moves: Total number of swaps made
  • Difficulty: Easy, Medium, or Hard
  • Hints Used: How many of your 3 hints you used

Three Buttons:

1. 🎮 Play Again

  • Immediately starts a new game
  • Uses the same difficulty and image
  • Great for beating your time!

2. 📤 Share Score

Shares your achievement with friends and family

Example text: "I completed a medium Picture Puzzle in 02:45 with 87 moves! Can you beat my score?"

How sharing works (3-level fallback system):

  1. First attempt - Web Share API (mobile devices):
    • If your device supports native sharing, opens your device's share menu
    • Share via text, email, WhatsApp, social media, etc.
    • You'll see notification: "Score shared!"
  2. Second attempt - Clipboard API (desktop browsers):
    • If Web Share API not available, copies score text to your clipboard
    • Paste (Ctrl+V) anywhere you want to share it
    • You'll see notification: "Score copied to clipboard!"
  3. Third attempt - Legacy Copy (older browsers):
    • If Clipboard API not available, uses older copy method
    • Same result: score text copied to clipboard
  4. If all fail:
    • Shows notification: "Could not copy score"
    • Rare—only happens in very old browsers or restrictive security settings

3. Close

  • Closes the victory modal
  • Returns to the main screen
  • You can view your high scores below
  • Alternative: Click the dark background outside the modal to close it

What Happens to Your Score

Your completion is automatically:

  • Added to the High Scores list (see next section)
  • Sorted by completion time (fastest first)
  • Highlighted in green as your latest achievement
  • Saved permanently in your browser

Celebrating Your Win

Congratulations! Every completed puzzle is an achievement. Whether it took 2 minutes or 20 minutes, you solved it!

Want to improve?

  • Try the same puzzle again for a faster time
  • Move up to the next difficulty level
  • Challenge yourself to use fewer hints
  • See if you can solve it in fewer moves

🏆 High Scores

Track your best performances and compete with yourself!

Understanding the High Scores Section

Located at the bottom of the page, this section shows your top 20 fastest completion times.

What you'll see:

  • Rank: Your position (1 = fastest, 20 = 20th fastest)
  • Difficulty: Easy, Medium, or Hard
  • Moves: Number of swaps + hints used (if any)
  • Time: Completion time in MM:SS format

Filtering by Difficulty

Use the filter buttons to view specific difficulties:

  • All: Shows all scores across all difficulties
  • Easy: Shows only 3×3 puzzle completions
  • Medium: Shows only 4×4 puzzle completions
  • Hard: Shows only 5×5 puzzle completions

How to filter:

  1. Click any of the four filter buttons
  2. The active filter is highlighted in purple
  3. The scores list updates immediately
Tip: This is useful for tracking improvement in a specific difficulty!

How Scores Are Ranked

Scores are sorted by time only (fastest to slowest).

Example ranking:

  1. Medium - 02:15 (1st place)
  2. Easy - 02:18 (2nd place)
  3. Hard - 02:30 (3rd place)

Tiebreaker:

If two scores have the same time, the more recent one appears first

Not considered for ranking:

  • Number of moves (recorded but doesn't affect rank)
  • Number of hints used (recorded but doesn't affect rank)

Your Latest Score

After completing a puzzle, your newest score:

  • Appears in the list with a green highlight
  • Has a special animation for emphasis
  • Stays highlighted until you complete another puzzle

Score Limits

The app keeps your top 20 fastest times across all difficulties.

What this means:

  • If you have fewer than 20 scores, every completion is saved
  • Once you have 20 scores, new ones only save if they're faster than your slowest score
  • Slower scores beyond 20 are automatically removed
Goal: Try to fill all 20 slots with impressive times!

Clearing All Scores

If you want to start fresh:

  1. Click the "Clear Scores" button (bottom-right of High Scores section)
  2. A confirmation dialog appears: "Clear All Scores? This will delete all high scores permanently."
  3. Click "Yes" to delete all scores
  4. Click "No" to cancel

What happens after clearing:

  • All 20 scores are permanently deleted
  • The list shows: "No scores yet. Complete a puzzle to set your first record!"
  • You can start building your scores from scratch

Warning: This action cannot be undone! Make sure you really want to clear everything.

💡 Tips and Tricks

Become a puzzle master with these helpful strategies!

General Strategy Tips

1. Start with Corner Pieces

  • Corner pieces have the most distinctive backgrounds
  • They're the easiest to identify
  • Get them right first to build a frame

2. Work on Edge Pieces Next

  • Edge pieces are easier to spot than middle pieces
  • They help establish the puzzle's structure
  • Creates a "border" to work within

3. Look for Distinctive Features

  • Unique colors that only appear in one spot
  • Clear shapes or patterns
  • High-contrast areas (light next to dark)

4. Use the Progress Indicator

  • Check your progress percentage frequently
  • If it's stuck, you might have pieces in wrong spots
  • Green-bordered pieces are definitely correct

5. Don't Be Afraid to Experiment

  • Try swaps even if you're not 100% sure
  • You can always use Undo if it's wrong
  • Sometimes you learn more from mistakes

6. Every Puzzle is Solvable (Guaranteed!)

The app uses a smart "solvable shuffle" algorithm:

  • It starts with the completed puzzle and performs random swaps
  • Easy (3×3): Performs 180 random swaps (9 pieces × 20)
  • Medium (4×4): Performs 320 random swaps (16 pieces × 20)
  • Hard (5×5): Performs 500 random swaps (25 pieces × 20)
  • What this means: Every puzzle can be solved—if you're stuck, keep trying!
  • There are NO impossible puzzles in this app
Myth Buster: Unlike some puzzle apps, this one mathematically guarantees solvability. If you can't solve it, it's because you haven't found the solution yet—not because it's impossible!

Using Tools Effectively

Preview Button Strategy:

  • Keep it visible most of the time
  • Compare piece positions to the preview
  • Hide it occasionally to challenge yourself

Hint Button Strategy:

  • Save for when truly stuck (not just frustrated)
  • Use one hint at a time, not all three at once
  • After a hint, try to solve more before using another
  • Goal: Complete with 0 hints used!

Undo Button Strategy:

  • Don't overthink—just undo bad moves immediately
  • Keeps your move count low
  • You can undo up to 10 moves, so experiment freely

Pause Button Strategy:

  • Pause if someone interrupts you
  • Take breaks on Hard difficulty
  • Come back with fresh eyes if stuck

Difficulty-Specific Tips

Easy (3×3) - 9 Pieces:

  • Should take 1-5 minutes
  • Great for learning the controls
  • Focus on speed rather than strategy

Medium (4×4) - 16 Pieces:

  • Should take 3-10 minutes
  • Start developing systematic approaches
  • Work section by section (top-left, then top-right, etc.)

Hard (5×5) - 25 Pieces:

  • Can take 5-20+ minutes
  • Take breaks if frustrated
  • Build the puzzle in quadrants
  • Use hints wisely

Improving Your Times

Want to beat your high scores? Try these:

  1. Memorize the image before starting
    • Study the preview image for 30 seconds
    • Note where distinctive colors/features are
    • Plan your approach
  2. Develop a system
    • Always start the same way (corners → edges → middle)
    • Work left-to-right, top-to-bottom
    • Consistency leads to faster times
  3. Practice the same puzzle
    • Play the same difficulty and image repeatedly
    • You'll recognize piece patterns faster
    • Each attempt should be quicker
  4. Use keyboard shortcuts
  5. Minimize hint usage
    • Hints add time while you wait for animations
    • Challenge yourself: 0 hints = Pro status!

Common Mistakes to Avoid

❌ Random swapping

Moving pieces without a plan wastes moves

✅ Targeted swaps

Always have a reason for each swap

❌ Ignoring correct pieces

Accidentally moving already-correct pieces

✅ Leave correct pieces alone

They have green borders for a reason

❌ Not using Preview

Trying to remember what the image looks like

✅ Keep Preview open

It's there to help!

❌ Rushing

Making careless mistakes

✅ Think before swapping

A few seconds of planning saves time

⌨️ Keyboard Shortcuts

Master the keyboard controls for expert-level play!

Basic Navigation

Key Action
Tab Select next puzzle piece (cycles through all pieces)
Arrow Keys (↑ ↓ ← →) Move selection to adjacent pieces (up, down, left, right)
Space or Enter Select current piece for swapping (pink outline appears)
Escape Cancel piece selection (removes pink outline) OR pause/unpause game (if no piece selected)

Complete Keyboard Workflow

To swap two pieces using only keyboard:

  1. Press Tab repeatedly until the piece you want is selected (blue outline)
  2. Press Space or Enter (pink outline appears)
  3. Use Arrow Keys to navigate to the target piece
  4. Press Space or Enter again to complete the swap

To cancel without swapping:

  • Press Escape at any time

Escape Key Special Feature:

  • If a piece is selected (pink outline): Escape cancels the selection
  • If no piece is selected: Escape pauses or unpauses the game
  • This gives you quick access to pause without clicking the button!

Advanced Keyboard Techniques

Quick Navigation:

  • Tab moves through pieces in reading order (left-to-right, top-to-bottom)
  • Hold Shift + Tab in some browsers to go backwards (browser-dependent)

Visual Indicators:

  • Blue outline = Currently selected piece (can move with arrows)
  • Pink outline = First piece selected for swap (waiting for second piece)
  • Green outline = Piece is in correct position (can still be moved)

Keyboard-Only Challenge

Try completing an entire puzzle without using the mouse!

Benefits:

  • Faster once you master it
  • More precise piece selection
  • Great for accessibility
  • Impressive skill to develop

Getting Started:

  1. Start with Easy difficulty
  2. Practice Tab navigation first
  3. Learn arrow key distances (how many presses to reach each piece)
  4. Graduate to Medium, then Hard
Pro Tip: Keyboard users often have faster times because there's no mouse movement delay!

🔧 Troubleshooting

Having issues? Here are solutions to common problems.

Custom Image Problems

Problem: "Image too large. Please use an image under 5MB"

Solution:

  • Your image file exceeds the 5MB size limit
  • Use an image editor to resize or compress the image
  • Online tools: TinyPNG, CompressJPEG, or your photo editor's "Export for Web" option

Problem: "Storage full - image loaded for this session only"

What it means:

  • Your browser's storage space is full
  • The image will work now but won't be saved

Solution:

  • Clear your browser's cache and cookies
  • Or: Use a smaller image
  • Or: Delete high scores to free space (Clear Scores button)

Problem: Custom image won't upload

Solution checklist:

  1. ✓ Is it an image file? (JPG, PNG, GIF, etc.)
  2. ✓ Is it under 5MB?
  3. ✓ Try a different image
  4. ✓ Try a different browser
  5. ✓ Check if JavaScript is enabled in your browser

Game Not Saving

Problem: Resume button doesn't appear after closing browser

Possible causes:

1. Incognito/Private browsing mode

• Private browsing doesn't save data

• Solution: Use regular browsing mode

2. Browser settings

• Your browser might block local storage

• Solution: Check browser settings → Privacy → Allow sites to save data

3. Completed the puzzle

• Saves are automatically deleted when you win

• This is normal behavior

4. Started a new game

• New games overwrite previous saves

• This is normal behavior

Performance Issues

Problem: App is slow or laggy

Solution:

  1. Close other browser tabs
  2. Try a different browser (Chrome is recommended)
  3. Restart your browser
  4. Make sure your device has enough RAM available
  5. Use a smaller custom image (if you uploaded a large one)

Problem: Pieces don't drag smoothly

Solution:

  1. On mobile: Try the tap-to-swap method instead of dragging
  2. On desktop: Update your graphics drivers
  3. Try keyboard navigation instead

Display Issues

Problem: Puzzle pieces are too small or too large

Solution:

  • The puzzle automatically resizes to fit your screen
  • Try refreshing the page (F5 or Ctrl+R)
  • Zoom your browser to 100% (Ctrl+0)

Automatic Resize Feature:

  • The app detects when you resize your browser window
  • It automatically adjusts the puzzle board size (with a 250ms delay to prevent lag)
  • All piece positions are preserved during resize
  • Pieces scale proportionally to fit the new window size
  • Maximum puzzle size: 600px (to ensure it fits most screens)

Problem: Can't see the whole puzzle

Solution:

  • Zoom out in your browser (Ctrl + Minus key)
  • Or use a larger screen/window
  • On mobile: Rotate to landscape orientation

Button or Control Issues

Problem: Buttons don't work when clicked

Solution:

  1. Make sure JavaScript is enabled in your browser
  2. Refresh the page
  3. Try a different browser
  4. Check browser console for errors (F12, then Console tab)

Problem: Hint/Undo buttons are grayed out

This is normal when:

  • Hint button disabled: You've used all 3 hints
  • Undo button disabled: No moves to undo
  • Pause button disabled: No active game
  • Preview button disabled: No active game

Notification Issues

Problem: Not seeing notifications (like "Game resumed!" or "Hint used!")

Solution:

  • Notifications appear in the top-right corner
  • They disappear after 3 seconds
  • Check if they're appearing behind other windows
  • This doesn't affect gameplay—it's just a visual indicator

Browser Compatibility

Problem: App doesn't work in my browser

Fully supported browsers:

  • ✅ Chrome (version 90+)
  • ✅ Firefox (version 88+)
  • ✅ Safari (version 14+)
  • ✅ Edge (version 90+)

If using an older browser:

  • Update to the latest version
  • Or try a modern browser listed above

Still Having Issues?

If none of these solutions work:

1. Try these steps:

  • Clear browser cache and cookies
  • Restart your browser completely
  • Try in incognito/private mode (to rule out extensions)
  • Try on a different device

2. Browser Console Check:

  • Press F12 to open Developer Tools
  • Click the "Console" tab
  • Look for red error messages
  • Screenshot them for further troubleshooting

ℹ️ Additional Information

Notification Messages Reference

The app shows brief notification messages in the top-right corner of your screen. These messages automatically disappear after 3 seconds.

Complete list of all notifications you might see:

Message When It Appears
"Game resumed!" When you resume a saved game
"Please select a valid image file" When you try to upload a non-image file
"Image too large. Please use an image under 5MB" When uploaded image exceeds size limit
"Storage full - image loaded for this session only" When browser storage is full (image works but won't be saved)
"[filename] loaded successfully!" When custom image uploads successfully
"Error loading image. Please try another file." When uploaded image file is corrupted
"Error reading file. Please try again." When file read operation fails
"No hints remaining!" When you click Hint button after using all 3 hints
"Puzzle already solved!" When you click Hint button on a completed puzzle
"Hint used! (X remaining)" After using a hint (shows how many remain)
"Move undone" After clicking the Undo button
"High scores cleared!" After confirming to clear all high scores
"Score shared!" After successfully sharing via mobile share menu
"Score copied to clipboard!" After score text is copied to clipboard
"Could not copy score" When clipboard operation fails
Note: If you don't see notifications, they may be appearing off-screen or blocked by another window. They don't affect gameplay—they're just helpful feedback!

About Storage and Privacy

What the app stores:

  • Your high scores (top 20 times)
  • Your custom puzzle image (if uploaded)
  • Current game state (when paused)
  • Tutorial preference (if you clicked "Don't Show Again")

Where it's stored:

  • Everything is stored locally in your browser
  • No data is sent to any server
  • No data is shared with anyone
  • It's completely private

How to delete stored data:

  • Clear your browser's local storage
  • Or clear the high scores using the "Clear Scores" button
  • Or use your browser's "Clear browsing data" feature

Technical Details (for advanced users):

The app uses these localStorage keys:

  • tutorialShown - Stores whether you've seen the tutorial (value: "true" or not set)
  • savedGame - Stores your paused/interrupted game state (JSON object)
  • customPuzzleImage - Your uploaded custom image (base64 data URL)
  • customImageName - Filename of your custom image (string)
  • puzzleHighScores - Your top 20 completion times (JSON array)
Privacy Note: All data stays on your device. Nothing is uploaded to any server or shared with anyone.

Accessibility Features

The app is designed to be accessible:

Keyboard Navigation:

Visual Indicators:

  • Clear focus outlines (blue, pink, green)
  • High contrast borders on pieces
  • Distinct colors for different states

Screen Readers:

  • Buttons have descriptive labels
  • Important elements have ARIA labels
  • Status updates are announced

Mobile-Specific Features

Touch Gestures:

  • Tap-to-swap (easiest)
  • Touch-and-drag (more visual)

Responsive Design:

Layout adapts to screen size automatically:

Desktop (>768px width):

  • Controls in horizontal layout
  • Stats in 4-column grid
  • Preview image: 150px
  • Full drag-and-drop support

Tablet (≤768px width):

  • Controls become full-width stacked buttons
  • Stats in 2-column grid (2 stats per row)
  • Tap-to-swap enabled alongside drag support
  • Preview image: 100px

Phone (≤480px width):

  • All controls full-width
  • Stats in single column (stacked vertically)
  • Pause button text shows "⏸️" only (icon without text)
  • Optimized for portrait and landscape

Portrait vs Landscape:

  • Both orientations work
  • Landscape gives more puzzle space
  • Portrait is better for viewing high scores

Tips for Different Devices

On Desktop:

  • Use drag-and-drop (most intuitive)
  • Or keyboard shortcuts (most efficient)
  • Keep Preview open on second monitor (if available)

On Tablet:

  • Best of both worlds
  • Tap-to-swap works great
  • Landscape orientation recommended

On Phone:

  • Use tap-to-swap method
  • Landscape orientation for Hard difficulty
  • Portrait is fine for Easy and Medium

Conclusion

You now know everything about Picture Puzzle! Here's a quick recap:

To play:

  1. Choose difficulty and image
  2. Click "New Game"
  3. Swap pieces until all are in correct positions
  4. Celebrate your victory!

Remember:

  • Use Preview to see the complete image
  • Use Hints when stuck (3 per game)
  • Use Undo to fix mistakes (up to 10 moves)
  • Use Pause when taking breaks

Have fun and happy puzzling! 🧩