【文件属性】:
文件名称:RobotWars:机器人大战
文件大小:281KB
文件格式:ZIP
更新时间:2021-06-29 20:02:15
JavaScript
___ ___
[___] /~\ [___]
|ooo|.\_/.|ooo|
|888|| ||888|
|888|| ||888|
{--|###||___||###|--}
{-} ### /[_]\ ### {-}
(O_O) /--[_____]--\ (O_O)
( | | )
[-` ] [ '-]
|--| |--|
| | | |
/ \ / \
/_====_\ /_====_\
欢迎来到机器人大战!
在控制台中运行项目类型node main 。 您可能需要先键入npm install才能下载所有依赖项。
我在我的代码中展示了以下功能:
通过 Node.js 的“rewire”插件进行依赖注入和模拟。
【文件预览】:
RobotWars-master
----models()
--------direction.js(235B)
--------robot.js(1KB)
--------command.js(190B)
--------arena.js(1KB)
----docs()
--------models()
--------main.html(3KB)
--------main.js.html(6KB)
--------docco.css(9KB)
--------README.html(2KB)
--------index.html(3KB)
--------controllers()
--------public()
--------utils()
----specs()
--------controllers()
--------utils()
----package.json(548B)
----controllers()
--------robotController.js(4KB)
--------arenaController.js(2KB)
----main.js(751B)
----.gitignore(601B)
----README.md(2KB)
----utils()
--------commandParser.js(4KB)