An open API service indexing awesome lists of open source software.

https://github.com/mathworks-teaching-resources/treasure-hunt

​​This modular courseware teaches students basic programming concepts through game development. These concepts include variables, matrices, conditional statements, and functions. ​
https://github.com/mathworks-teaching-resources/treasure-hunt

courseware cwm game gamified-learning programming

Last synced: 10 months ago
JSON representation

​​This modular courseware teaches students basic programming concepts through game development. These concepts include variables, matrices, conditional statements, and functions. ​

Awesome Lists containing this project

README

          

# Treasure Hunt Game: Learn to Code

[![View on File Exchange](https://www.mathworks.com/matlabcentral/images/matlab-file-exchange.svg)](https://www.mathworks.com/matlabcentral/fileexchange/123265-treasure-hunt) or [![Open in MATLAB Online](https://www.mathworks.com/images/responsive/global/open-in-matlab-online.svg)](https://matlab.mathworks.com/open/github/v1?repo=MathWorks-Teaching-Resources/Treasure-Hunt&project=TreasureHunt.prj&file=README.mlx)

[![MATLAB Versions Tested](https://img.shields.io/endpoint?url=https%3A%2F%2Fraw.githubusercontent.com%2FMathWorks-Teaching-Resources%2FTreasure-Hunt%2Frelease%2FImages%2FTestedWith.json)](https://MathWorks-Teaching-Resources.github.io/Treasure-Hunt)

**Curriculum Module**

_Created with R2022b. Compatible with R2024a and later releases._

# Information

This curriculum module contains interactive [MATLAB® live scripts](https://www.mathworks.com/products/matlab/live-editor.html) that teach fundamental concepts and basic terminology related to programming through the development of an interactive treasure hunting game.

## Background

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.

## Contact Us

Contact the [MathWorks teaching resources team](mailto:onlineteaching@mathworks.com) if you would like to provide feedback, or if you have a question.

## Prerequisites

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](https://www.mathworks.com/matlabcentral/fileexchange/103225-fundamentals-of-programming).

## Getting Started
### Accessing the Module
### **On MATLAB Online:**

Use the [image_0.png](https://matlab.mathworks.com/open/github/v1?repo=MathWorks-Teaching-Resources/Treasure-Hunt&project=TreasureHunt.prj) 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.

### **On Desktop:**

Download or clone this repository. Open MATLAB, navigate to the folder containing these scripts and double\-click on [TreasureHunt.prj](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 image_1.png **Add-Ons** > **Get Add-Ons**.

## Products

MATLAB® is used throughout.

# Scripts
## [**TreasureHuntLearn.mlx**](https://matlab.mathworks.com/open/github/v1?repo=MathWorks-Teaching-Resources/Treasure-Hunt&project=TreasureHunt.prj&file=Scripts/TreasureHuntLearn.mlx)
| | | |
| :-- | :-- | :-- |
| image_2.png
| **In this script, students will...**
$\bullet$ Create and modify variables
$\bullet$ Create and modify colorful plots
$\bullet$ Design and program an interactive game
| **Academic disciplines**
$\bullet$ Programming
$\bullet$ Basic algebra
|
| | | |

## [**TreasureHuntPlay.mlx**](https://matlab.mathworks.com/open/github/v1?repo=MathWorks-Teaching-Resources/Treasure-Hunt&project=TreasureHunt.prj&file=Scripts/TreasureHuntPlay.mlx)
| | | |
| :-- | :-- | :-- |
| image_3.png
| **In this script, students will...**
$\bullet$ Use the code they wrote in TreasureHuntLearn.mlx to put together a playable treasure hunting game!
| **Academic disciplines**
$\bullet$ Programming
$\bullet$ Basic algebra
|
| | | |

## [**TreasureHuntAdvanced.mlx**](https://matlab.mathworks.com/open/github/v1?repo=MathWorks-Teaching-Resources/Treasure-Hunt&project=TreasureHunt.prj&file=Scripts/TreasureHuntAdvanced.mlx)
| | | |
| :-- | :-- | :-- |
| image_4.png
| **In this script, students will...**
$\bullet$ Play a new version of the game they created in TreasureHuntPlay.mlx where the player can input their guess by clicking on the desired square
| **Academic disciplines**
$\bullet$ Programming
$\bullet$ Basic algebra
|
| | | |

# Related Courseware Modules
## [Fundamentals of Programming](https://www.mathworks.com/matlabcentral/fileexchange/103225-fundamentals-of-programming)
| | |
| :-- | :-- |
| image_5.png
| **Available on:**
[image_6.png](https://www.mathworks.com/matlabcentral/fileexchange/115905-programming-structuring-code)
[image_7.png](https://matlab.mathworks.com/open/github/v1?repo=MathWorks-Teaching-Resources/Treasure-Hunt&project=TreasureHunt.prj)
[GitHub](https://github.com/MathWorks-Teaching-Resources/Fundamentals-of-Programming)
|
| | |

## [Programming: Structuring Code](https://www.mathworks.com/matlabcentral/fileexchange/115905-programming-structuring-code)
| | |
| :-- | :-- |
| image_8.png
| **Available on:**
[image_9.png](https://www.mathworks.com/matlabcentral/fileexchange/115905-programming-structuring-code)
[image_10.png](https://matlab.mathworks.com/open/github/v1?repo=MathWorks-Teaching-Resources/Treasure-Hunt&project=TreasureHunt.prj)
[GitHub](https://github.com/MathWorks-Teaching-Resources/Programming-Structuring-Code)
|
| | |

## [Programming: Organizing Data](https://www.mathworks.com/matlabcentral/fileexchange/115900-programming-organizing-data)
| | |
| :-- | :-- |
| image_11.png
| **Available on:**
[image_12.png](https://www.mathworks.com/matlabcentral/fileexchange/115900-programming-organizing-data)
[image_13.png](https://matlab.mathworks.com/open/github/v1?repo=MathWorks-Teaching-Resources/Treasure-Hunt&project=TreasureHunt.prj)
[GitHub](https://github.com/MathWorks-Teaching-Resources/Programming-Organizing-Data)
|
| | |

Or feel free to explore our other [modular courseware content](https://www.mathworks.com/matlabcentral/fileexchange/?q=tag%3A%22courseware+module%22&sort=downloads_desc_30d).

# Educator Resources
- [Educator Page](https://www.mathworks.com/academia/educators.html)

Copyright 2023 The MathWorks™, Inc