Swift 配列初期化

Example

配列

var stateA = [Bool](repeating:true, count:GAMEMAX)
var stateB = [Bool](repeating:true, count:GAMEMAX)

2次元配列

var allScore = [[Int]](repeating: [Int](repeating: 0, count: TYPEMAX), count: TYPEMAX)
var allworL = [[Int]](repeating: [Int](repeating: 0, count: TYPEMAX), count: TYPEMAX)

Swift

Posted by shi-n