Add OS X/Swift and Python implementations of the Eight Queens problem
This commit is contained in:
parent
6130affabf
commit
e609b323a2
5 changed files with 452 additions and 0 deletions
19
EightQueens-OSX-Swift/EightQueens/Queen.swift
Normal file
19
EightQueens-OSX-Swift/EightQueens/Queen.swift
Normal file
|
@ -0,0 +1,19 @@
|
|||
//
|
||||
// Queen.swift
|
||||
// EightQueens
|
||||
//
|
||||
// Created by Donald Burr on 5/27/15.
|
||||
// Copyright (c) 2015 Donald Burr. All rights reserved.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
|
||||
class Queen {
|
||||
var row: Int
|
||||
var column: Int
|
||||
|
||||
init(forRow: Int) {
|
||||
row = forRow
|
||||
column = 0
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue