Skip to content

Commit 0fc5414

Browse files
committed
Several changes
1 parent 7e50d85 commit 0fc5414

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

SnakeGame/GameModel.swift

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,7 @@ class GameBrain {
8181

8282
let botBorder = CGRect(x: side + fRect.origin.x, y: screen.height - fRect.origin.y - side, width: fRect.width, height: side)
8383

84-
bordersDictonary["Bot"] = botBorder
85-
86-
print(bordersDictonary)
84+
bordersDictonary["Bot"] = botBorder
8785
}
8886

8987
var segments: [GameSegment]!
@@ -158,7 +156,8 @@ class GameBrain {
158156
if outX || outY {
159157
headPoint = centerPoint()
160158
}else{
161-
moveHead()
159+
//change it for the death
160+
setDefaults(screen)
162161
}
163162
}
164163

0 commit comments

Comments
 (0)