Skip to content

Instantly share code, notes, and snippets.

View benjaminpadula's full-sized avatar

Benjamin Padula benjaminpadula

View GitHub Profile
@benjaminpadula
benjaminpadula / RollRightRollLeft.swift
Last active September 15, 2022 07:11
Swift Playgrounds: Roll Right, Roll Left Solution
while !isOnOpenSwitch {
while !isBlocked {
if isOnGem {
collectGem()
}
if isOnClosedSwitch {
toggleSwitch()
}
moveForward()
}