In spring of 2019, I worked with two other Wellesley students, Hannah Murphy and Emilia Ball, to design and develop Wellesley's first game on the Magic Leap One, an augmented reality (AR) headset. After a semester of learning Unity and developing for the Oculus Rift, we had to start almost from scratch with AR. That didn't stop us, though.
We decided to recreate the game Towers of Hanoi in AR. Towers of Hanoi is a game that's often used to teach the concept of recursion in introductory computer science classes, because it requires the player to think in cycles. The setup looks like this:
The object is to get all of the rings from the left column to the right column without ever placing a ring on top of a smaller ring.
The version my groupmates and I made for Magic Leap obeyed and enforced these rules. It also included a move counter, visible to the user as floating text. A demo of the game can be seen below.
The project's challenges included implementing object interaction and raycasting (object interaction is easy in Oculus development with the help of SteamVR 2.0, but Steam doesn't work with Magic Leap), fitting object physics with raycasting, and implementing the game rules satisfactorily.