Day 19 / Mar 25 (Fri)¶
Pair Programming¶
Computer¶
Load a file with instructions and executes them one by one on a board of n x m size.
CREATE [arrow] [x] [y] [id]
- places anarrow
symbol (^, >, v, <) identified byid
on the (x, y) fieldROTATE [id] 0, 90, 180, 270, -90, -180, -270
- rotates an arrow to a given directionMOVE [id] [n]
- moves an arrow forwardn
steps
Display a state of a board every instruction.
Hint: Start with one arrow only. Rotate and move it around.
Working in pairs1:
(rafal,krzysiek)
(grzegorz,mateusz)
(damian,leo)
(daniel,janek)
(ania,adam)
Scala Resources¶
Homework¶
ScalaTest¶
Read the documentation of ScalaTest and create some tests.
-
The story, all names, characters, and incidents portrayed in this production are fictitious. No identification with actual persons (living or deceased), places, buildings, and products is intended or should be inferred. (cf. All persons fictitious disclaimer) ↩