Skip to content

xraybat/scala-toyrobot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

scala-toy-robot

a scala toy robot as per PROBLEM.md specs.

minimal commentary as smaller source files (Point, Board, Command, Orientation) are self-explanatory (with tests), while larger source files have some comments and rely on larger test suites as explanatory document.

to run (in general)

from OS CLI:

$ mill toyrobot.run <filename>

and similar for testing:

$ mill toyrobot.test

to see the three examples required from PROBLEM.md

$mill toyrobot.run resources/eg1.txt
$mill toyrobot.run resources/eg2.txt
$mill toyrobot.run resources/eg3.txt

some TODOs/QUs (for further investigation)

/home/psc/src/scala/REA/toyrobot/src/main/scala/robot/Robot.scala:
    1: // @TODO: turn into a castor actor; a robot *is* an actor
    2  // after all...
    3  package robot

requirements

built using:

scala 2.13.x
mill 0.8.x

see installing scala

tested on:

Debian 10 (buster)
macOS 10.15.x (catalina)

general notes

  • have used scala as a general purpose language
  • with certain scala-ecosystem additions, most notably:
    • "org.scalatest" % "scalatest_2.13" % "3.0.8" (standard scala test framework)
    • "com.lihaoyi" %% "os-lib" % "0.7.1" (see os-lib)
    • "com.lihaoyi" %% "fastparse" % "2.2.2" (see fastparse)

About

scala toy robot

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages