Get support for luin/CodeGame
If you're new to LTH, please see our FAQ for more information on what it is we do.
Support Options
Unfortunately, there are currently no active helpers for this repository on the platform. Until they become available, we reccomend the following actions:
View Open IssuesTake a look to see if anyone else has experienced the same issue as you and if they managed to solve it.
Open an IssueMake sure to read any relevant guidelines for opening issues on this repo before posting a new issue.
Sponsor directlyCheck out the page and see if there are any options to sponsor this project or it's developers directly.
luin/CodeGame
Code Game
Code GAME 是一个通过编写 AI 脚本控制坦克进行比赛的游戏。
娱乐第一,请点右上角 star!
安装
$ npm install
$ npm run build
$ cp config/_sample.json config/development.json
$ vim config/development.json
$ node app
需要软件版本:
Node v0.11.12 或更高版本 Redis v2.4 或更高版本 MySQL
配置
-
GitHub 配置 在 GitHub 创建新应用,在 Authorization callback URL 栏目填写 http://127.0.0.1:3000/account/github/callback。 然后将应用的 key 和 secret 填到 config/development.json 里的相应位置
-
地图 地图信息存储在数据库的 Maps 表中,其中 data 为地图信息,x 表示石头,o 表示草坪,. 表示空地。abcd 表示玩家 1 的出生点(分别对应初始朝向 上 右 下 左),ABCD 表示玩家 2 的出生点。以 | 分隔每行。默认的地图为:
xxxxxxxxxxxxxxxxxxx|xooo..............x|xoax.....x........x|xxxx.....x........x|x........x........x|x..xxxxxxxxxxx....x|x....ooxoooooo....x|x....ooooooooo....x|x....ooooooxoo....x|x....xxxxxxxxxxx..x|x........x........x|x........x.....xxxx|x........x.....xCox|x..............ooox|xxxxxxxxxxxxxxxxxxx
计算排行
node services/calc_rank.js
技术栈
Node.js, MySQL
介绍文章
Our Mission
We want to make open source more sustainable. The entire platform was born from this and everything we do is in aid of this.
From the Blog
Interesting Articles
-
Generating income from open source
Jun 23 • 8 min read
-
2023 State of OSS
Apr 23 • 45 min read ★
-
A funding experiment...
Aug 19 • 10 min read
-
But You Said I could
Aug 19 • 2 min read
Thank you for checking out LiveTechHelper |
2025 © lth-dev incorporated
p-e622a1a2