Advertisement
Guest User

Untitled

a guest
Jun 17th, 2014
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scala 0.64 KB | None | 0 0
  1.   /**
  2.    * This method returns terrain function that represents the terrain
  3.    * in `levelVector`. The vector contains parsed version of the `level`
  4.    * string. For example, the following level
  5.    *
  6.    *   val level =
  7.    *     """ST
  8.    *       |oo
  9.    *       |oo""".stripMargin
  10.    *
  11.    * is represented as
  12.    *
  13.    *   Vector(Vector('S', 'T'), Vector('o', 'o'), Vector('o', 'o'))
  14.    *
  15.    * The resulting function should return `true` if the position `pos` is
  16.    * a valid position (not a '-' character) inside the terrain described
  17.    * by `levelVector`.
  18.    */
  19.   def terrainFunction(levelVector: Vector[Vector[Char]]): Pos => Boolean = ???
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement