.. note:: Hello, welcome to the SunFounder Raspberry Pi & Arduino & ESP32 Enthusiasts Community on Facebook! Dive deeper into Raspberry Pi, Arduino, and ESP32 with fellow enthusiasts. **Why Join?** - **Expert Support**: Solve post-sale issues and technical challenges with help from our community and team. - **Learn & Share**: Exchange tips and tutorials to enhance your skills. - **Exclusive Previews**: Get early access to new product announcements and sneak peeks. - **Special Discounts**: Enjoy exclusive discounts on our newest products. - **Festive Promotions and Giveaways**: Take part in giveaways and holiday promotions. 👉 Ready to explore and create with us? Click [|link_sf_facebook|] and join today! Video 12: Treasure Hunt Game ============================================ The tutorial provides an engaging and educational experience in programming and robotics with the PiCar-X. * **Overview**: Demonstrates a treasure hunt game where the PiCar-X robot detects and navigates towards randomly selected colors. * **Python Code**: Detailed explanation of the Python code used for color detection, robot movement control, and text-to-speech announcements. * **Gameplay**: The robot moves using keyboard inputs to find and reach a target color, which is announced via text-to-speech. * **Practical Demo**: Shows the robot in action, successfully identifying and moving towards different colors like red, yellow, and blue. * **Game Exit Instructions**: Covers how to safely exit the game, including stopping the robot and shutting down the camera. **Video** .. raw:: html **Related On-line Tutorials** * :ref:`py_treasure`