Swift Playgrounds 2

The last swift playgrounds puzzle I was able to complete in Learn to Code 1 was one that I had to figure out for an assignment.  It was called Checking for Switches, and it was challenging because every time you did it the order of which switches were on and which were off changed, and our goal was to have every switch on. The directions were very helpful, because they were clear on how to use the “if” command to make sure we’d only toggle the right switches. Here is a picture of the first few puzzles I did, but there are more below.

Leave a Reply