2015-06-25から1日間の記事一覧
さらに続く。 ボードの実装(続き) 合法手の実行 // 続き public func play(row: Int, _ col: Int) -> Board { assert( self.isPlayable(row, col), "not playable. [row: \(row), col: \(col)]") let newBoard = Board(self) newBoard.putPiece(row, col) …
さらに続く。 ボードの実装(続き) 合法手の実行 // 続き public func play(row: Int, _ col: Int) -> Board { assert( self.isPlayable(row, col), "not playable. [row: \(row), col: \(col)]") let newBoard = Board(self) newBoard.putPiece(row, col) …