Treasure-Hunt
Curriculum Module
Created with R2022b. Compatible with R2022b and later releases.
This curriculum module contains interactive MATLAB® live scripts that teach fundamental concepts and basic terminology related to programming through the development of an interactive treasure hunting game.
You can use these live scripts as demonstrations in lectures, class activities, or interactive assignments outside class. This module covers topics such as variables, matrices, conditional statements, strings, arrays, indexing and functions.
Solutions are available upon instructor request. Contact the MathWorks teaching resources team if you would like to request solutions, provide feedback, or if you have a question.
This module assumes an ability to identify and plot X,Y points on a grid. It is also intended for those who have an understanding of basic computer science concepts, such as syntax, variables, and arrays. If you would like more practice with these concepts, we recommend trying the set of exercises in Fundamentals of Programming.
Use the link to download the module. You will be prompted to log in or create a MathWorks account. The project will be loaded, and you will see an app with several navigation options to get you started.
Download or clone this repository. Open MATLAB, navigate to the folder containing these scripts and double-click on TreasureHunt.prj. It will add the appropriate files to your MATLAB path and open an app that asks you where you would like to start.
Ensure you have all the required products (listed below) installed. If you need to include a product, add it using the Add-On Explorer. To install an add-on, go to the Home tab and select Add-Ons > Get Add-Ons.
MATLAB® is used throughout.
If you are viewing this in a version of MATLAB prior to R2023b, you can view the learning outcomes for each script here
In this script, students will... - Create and modify variables - Create and modify colorful plots - Design and program an interactive game |
Academic disciplines - Programming - Basic algebra |
---|
In this script, students will... - Use the code they wrote in TreasureHuntLearn.mlx to put together a playable treasure hunting game! |
Academic disciplines - Programming - Basic algebra |
---|
Available on:GitHub |
---|
Available on:GitHub |
---|
Available on:GitHub |
---|
Or feel free to explore our other modular courseware content.
Copyright 2023 The MathWorks™, Inc
Cite As
Emma Smith Zbarsky (2024). Treasure-Hunt (https://github.com/MathWorks-Teaching-Resources/Treasure-Hunt/releases/tag/v1.1.0), GitHub. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Communities
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
SoftwareTests
Utilities
Scripts
Version | Published | Release Notes | |
---|---|---|---|
1.1.0.0 | See release notes for this release on GitHub: https://github.com/MathWorks-Teaching-Resources/Treasure-Hunt/releases/tag/v1.1.0 |
||
1.0.1.0 | See release notes for this release on GitHub: https://github.com/MathWorks-Teaching-Resources/Treasure-Hunt/releases/tag/v1.0.1 |
||
1.0.0 |