【文件属性】:
文件名称:coding-exercise-clojure-robot:机器人模拟器
文件大小:7KB
文件格式:ZIP
更新时间:2021-06-06 15:09:04
Clojure
编码练习 clojure-robot
这是我在Clojure中进行机器人模拟编码测试的解决方案。 见问题
跑步
您需要安装 Java 和 Leiningen。
使用命令文件作为参数运行“lein run”,如以下示例所示:
> lein run test/sample-a.txt
0,1,NORTH
> lein run test/sample-b.txt
0,0,WEST
> lein run test/sample-c.txt
3,3,NORTH
测试
您可以像这样运行单元测试:
> lein midje
All checks (17) succeeded.
【文件预览】:
coding-exercise-clojure-robot-master
----.gitignore(84B)
----README.md(749B)
----project.clj(449B)
----test()
--------sample-c.txt(42B)
--------sample-with-commands-before-place.txt(51B)
--------coding_exercise_clojure_robot()
--------sample-b.txt(28B)
--------sample-a.txt(28B)
----src()
--------coding_exercise_clojure_robot()
----PROBLEM.MD(2KB)