CodeGame icon indicating copy to clipboard operation
CodeGame copied to clipboard

🎮 JavaScript AI tank game

Results 18 CodeGame issues
Sort by recently updated
recently updated
newest added

## Beep boop. Your images are optimized! Your image file size has been reduced by **99%** 🎉 Details | File | Before | After | Percent reduction | |:--|:--|:--|:--| |...

有数据库sql吗 还是只有程序文件

> [email protected] build /home/zp/CodeGame-1.1.0 > gulp build /usr/bin/env: "node": 没有那个文件或目录 npm ERR! Linux 4.8.0-22-generic npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "run" "build" npm ERR! node v4.2.6 npm ERR! npm v3.5.2 npm...

在主页点击使用github登录后,跳转到http://127.0.0.1:3000/account/github/callback访问出错

点击创建我的AI后,进入代码编辑页面,然后直接点预览的话服务器成功发送一个POST包但是浏览器并没有反应,此时预览按钮灰色.public\js中app.js、vs.js红色报错“Cannot invoke an excpression whose type lacks a call signature.”

``` events.js:141 throw er; // Unhandled 'error' event ^ CssSyntaxError: /home/feng/code/CodeGame/client/css/app.css:1412:20: Missed semicolon at Input.error (/home/feng/code/CodeGame/node_modules/postcss/lib/input.js:65:21) at Parser.checkMissedSemicolon (/home/feng/code/CodeGame/node_modules/postcss/lib/parser.js:440:30) at Parser.decl (/home/feng/code/CodeGame/node_modules/postcss/lib/parser.js:277:18) at Parser.word (/home/feng/code/CodeGame/node_modules/postcss/lib/parser.js:136:30) at Parser.loop (/home/feng/code/CodeGame/node_modules/postcss/lib/parser.js:61:26) at Object.parse...

if 我的坦克朝左,then 向左转,完毕,这样我的坦克应该是向下了。但到下一轮获取我的坦克方向的时候还是left。

http://en.wikipedia.org/wiki/Elo_rating_system 使排名更准确。

现在是使用 CSS Animation 实现的动画,简单但是效果在 Safari 或一些浏览器上效果不好。考虑使用 Canvas 重写。

enhancement

除了前进以外,是否可以有倒车功能(可以比前进慢),在做防弹逃逸和两车相遇时有更多的策略。 例如: 在狭窄通道中迎面遇到子弹的策略: 1. 掉头2+前进1+转向1+前进1=5 2. 倒车2+转向1+前进1=4 3. 前进1+转向1+前进1=3(还要算上子弹提前到达以及前行通道是否可行)