Skip to content

Commit

Permalink
B5 changes
Browse files Browse the repository at this point in the history
  • Loading branch information
dimsumthinking committed Aug 12, 2015
1 parent 644fe1b commit 47373c0
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class TurtleView: UIView {
self.backgroundColor = backgroundColor
addSubview(avatarView)
}
required public init(coder aDecoder: NSCoder) {
required public init?(coder aDecoder: NSCoder) {
super.init(coder:aDecoder)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,11 @@ import Foundation



// put your functions here
// put your functions here

public func hexagon(length: Int) {
for _ in 1 ... 6 {
forward(length)
right(60)
}
}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
public var turtle = Turtle()
public var turtle = Turtle(turtleType: TurtleType.ColorsOnWhite)
11 changes: 10 additions & 1 deletion Turtle.playground/contents.swift
Original file line number Diff line number Diff line change
@@ -1 +1,10 @@
turtle
//for i in 1 ... 30 {
// hexagon(120)
// nextColor()
// right(12)
//}

forward()
forward()

turtle

0 comments on commit 47373c0

Please sign in to comment.