# AI excercise for students

**URL:** https://forum.makecode.com/t/ai-excercise-for-students/8447
**Category:** Show & Tell
**Tags:** game
**Created:** [June 1, 2021, 3:12pm UTC](https://forum.makecode.com/t/ai-excercise-for-students/8447 "2021-06-01T15:12:46Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![tasbotteacher](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/tasbotteacher/32/4299_2.png) [@tasbotteacher](https://forum.makecode.com/u/tasbotteacher)
#### Post date: [June 1, 2021, 3:12pm UTC](https://forum.makecode.com/t/ai-excercise-for-students/8447/1 "2021-06-01T15:12:47Z")

</div>

> **[Robocup Junior Maze Training](https://arcade.makecode.com/29774-54358-76861-84714)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

This is a little exercise for students to help them prepare for Robocup Junior:

> **[Rescue Maze - RoboCup Junior Australia](https://www.robocupjunior.org.au/rescue-maze/)**
>
> Students are required to design, build, and program two robots to compete in a dynamic game of robot soccer against an opposing pair of robots.

The robot must traverse the maze, find the victims, avoid the lava, and return to the start in the fewest steps. Start with ‘Move’ buttons, then code an AI to do the same thing.

---

<div class="post-metadata">

### Author: ![GoMustangs](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/gomustangs/32/4323_2.png) [@GoMustangs](https://forum.makecode.com/u/GoMustangs)
#### Post date: [June 2, 2021, 4:15pm UTC](https://forum.makecode.com/t/ai-excercise-for-students/8447/2 "2021-06-02T16:15:00Z")

</div>

Very cool! Why does the robot change color when it goes through the orange and grey tile in the corner?

---

<div class="post-metadata">

### Author: ![tasbotteacher](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/tasbotteacher/32/4299_2.png) [@tasbotteacher](https://forum.makecode.com/u/tasbotteacher)
#### Post date: [June 2, 2021, 8:45pm UTC](https://forum.makecode.com/t/ai-excercise-for-students/8447/3 "2021-06-02T20:45:21Z")

</div>

Thanks for the nice feedback.

Once the robot hits the waypoint (orange and grey tile - like orienteering) the robot has the ability to teleport back to that waypoint. In the physical Robocup Junior maze, there are obstacles (like bumps, traps, etc) which can cause a robot to get stuck. If a robot has detected an waypoint and demonstrated it by beeping as it passes over, then the robot can later be lifted up and placed on the waypoint, if chosen by the operator.

---

<div class="post-metadata">

### Author: ![tasbotteacher](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/tasbotteacher/32/4299_2.png) [@tasbotteacher](https://forum.makecode.com/u/tasbotteacher)
#### Post date: [June 2, 2021, 10:29pm UTC](https://forum.makecode.com/t/ai-excercise-for-students/8447/4 "2021-06-02T22:29:26Z")

</div>

In the virtual game here, the waypoint is a way of speeding up the return to the start, reducing the total steps taken. In physical Robocup Junior maze, the analogous measure (instead of steps) is time. This swap of steps for time is a way of distilling down the problem domain to it’s core logical elements.

---

<div class="post-metadata">

### Author: ![LaserFoxPro](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/laserfoxpro/32/4105_2.png) [@LaserFoxPro](https://forum.makecode.com/u/LaserFoxPro)
#### Post date: [June 8, 2021, 10:30pm UTC](https://forum.makecode.com/t/ai-excercise-for-students/8447/5 "2021-06-08T22:30:28Z")

</div>

me: _gets 179 score_

game: u did it great! u win!!!11!!1!!!11!!!11!!!
