Removed useless index
This commit is contained in:
@@ -121,7 +121,6 @@ public class Board: CustomStringConvertible, EventDelegate {
|
||||
let index = Int8(i)
|
||||
let square = Square(
|
||||
position: .init(rank: rank, file: (index % 8) + 1),
|
||||
index: i,
|
||||
color: index % 2 != rank % 2 ? .Black : .White)
|
||||
squares.append(square)
|
||||
if (index + 1) % 8 == 0 {
|
||||
|
||||
Reference in New Issue
Block a user