ideal-gas-law:分子在浏览器的框中弹跳

时间:2021-05-20 01:00:34
【文件属性】:
文件名称:ideal-gas-law:分子在浏览器的框中弹跳
文件大小:16KB
文件格式:ZIP
更新时间:2021-05-20 01:00:34
JavaScript 理想气体定律 在浏览器的框内四处弹跳的气体分子的玩具实现方式。 有时候,分子会“跳跃”,这可能是我的一种人工产物,在最初编写代码时,我不知道如何轻松地为数字算法创建测试用例(如果您想知道,只需使用电子表格即可)。 要安装npm依赖项: $ npm install 要运行测试: $ grunt qunit # and to watch for changes $ grunt watch 如果安装了python,则可以使用以下方法查看页面: $ python -m SimpleHTTPServer 在项目目录中,然后将浏览器指向 。 我在Chrome中对其进行了测试,最近尝试在已挂起的Firefox中运行它。 因此,请勿在Firefox中查看它。
【文件预览】:
ideal-gas-law-master
----.gitignore(33B)
----README.md(754B)
----run.js(115B)
----gases.js(12KB)
----circleCollection_tests.html(655B)
----ui.js(2KB)
----Gruntfile.js(621B)
----normalise.css(8KB)
----package.json(333B)
----gases_tests.js(13KB)
----animator.js(1KB)
----gases_tests.html(409B)
----circleCollection_tests.js(3KB)
----index.html(1KB)
----style.css(788B)
----controller.js(3KB)
----test_lib.js(275B)

网友评论