object Main
Command-line driver of NQueens problem.
- Alphabetic
- By Inheritance
- Main
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws(classOf[java.lang.CloneNotSupportedException])
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def main(args: Array[String]): Unit
Solve N-queens problem for N in first argument, else use 8.
Solve N-queens problem for N in first argument, else use 8.
- args
Arguments
- returns
Nothing
- Exceptions thrown
java.lang.IllegalArgumentException
For n argument to NQueens.solvejava.lang.NumberFormatException
If arg isn't an Int
- def main2(args: Array[String]): Unit
Same as main, but silently quit if failure or no argument.
Same as main, but silently quit if failure or no argument.
- args
Arguments
- returns
Nothing
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def output(n: Int)(board: Seq[Int]): Unit
Display a solution in the terminal screen.
Display a solution in the terminal screen.
- n
Numer of queens
- board
An n-by-n board
- returns
Nothing
- def require(args: Array[String]): Unit
Same as main, but fail if no argument provided.
Same as main, but fail if no argument provided.
- args
Arguments
- returns
Nothing
- def require2(args: Array[String]): Unit
Same as require, but fail if invalid argument provided.
Same as require, but fail if invalid argument provided.
- args
Arguments
- returns
Nothing
- Exceptions thrown
java.lang.IllegalArgumentException
For n argument to NQueens.solve
- final def synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws(classOf[java.lang.InterruptedException])