Is Game or Full-Screen mode not working?

Play in Fullscreen Mode

What is This Prime Number Identification Game?

✅ Objective

  • The player drives a car and must steer into the lane with the correct number type — either PRIME or COMPOSITE — as shown by the label below the car.
  • Hitting the wrong number type or failing to react in time results in losing a life.

🕹ī¸ How to Play

  • Controls:
    • Keyboard: Use ←/→ arrows or A/D to switch lanes.
    • Touch: Tap the left/right side of the game area.
  • Scoring:
    • Score a point by hitting the correct number type.
    • Lose a life by hitting the wrong one.
    • You start with 3 lives.
  • Game Over: Happens when you lose all your lives.

đŸ”ĸ Number Rules

  • Prime Numbers: Only divisible by 1 and itself (e.g. 2, 3, 5, 7â€Ļ)
  • Composite Numbers: Divisible by more than 2 numbers (e.g. 4, 6, 8â€Ļ)
  • Number 1: Is neither prime nor composite, and must be avoided.

⚙ī¸ Features

  • Dynamic Difficulty: The number range and game speed increase with score.
  • Responsive Design: Adapts to screen size; suitable for desktop and mobile.
  • Audio Feedback: Correct/wrong move, countdown, game over, and lane change sounds.
  • Visual Feedback: Boxes flash green (correct) or red (wrong).
  • Verification Check: Ensures the game is hosted properly and blocks usage if a required “More Games” link is missing.

📜 Implementation Highlights

  • HTML: Contains structure and all screens (start, instructions, game over).
  • Canvas: Used for drawing the car, road, obstacles, and label.
  • JavaScript:
    • Asset preloading and readiness checks.
    • Lane calculation and obstacle generation.
    • Collision detection and game state management.
    • Responsive resizing.
    • Verification system for host domain validation.

You can play all other versions of Monkey Drive Games.