• Stars
    star
    349
  • Rank 121,528 (Top 3 %)
  • Language
    JavaScript
  • Created about 10 years ago
  • Updated over 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

🎮 JavaScript AI tank game

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

配置

  1. GitHub 配置 在 GitHub 创建新应用,在 Authorization callback URL 栏目填写 http://127.0.0.1:3000/account/github/callback。 然后将应用的 key 和 secret 填到 config/development.json 里的相应位置

  2. 地图 地图信息存储在数据库的 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

介绍文章

Code Game 对技术的选取——兼谈为何不应该用 CoffeeScript 与 Less

More Repositories

1

medis

💻 Medis is a beautiful, easy-to-use Mac database management application for Redis.
JavaScript
11,605
star
2

readability

📚 Turn any web page into a clean view
HTML
2,480
star
3

wechat-export

📃 Export WeChat chat histories to HTML files.
C
674
star
4

ranaly

📈 An easy to use chart system
JavaScript
498
star
5

express-promise

❤️ Middleware for easy rendering of async Query results.
JavaScript
317
star
6

express-di

Dependency injection for Express applications
JavaScript
160
star
7

npm-try

🚆 Quickly try npm packages without writing boilerplate code.
TypeScript
113
star
8

bazinga

💥 The best all-in-one toolbox. Bazinga!
TypeScript
110
star
9

redis-book-assets

《Redis入门指南》第五章程序代码
JavaScript
92
star
10

serialize

Serialize an object including it's function into a JSON.
JavaScript
79
star
11

superfetch

A super powerful node.js HTTP client with the support of promise.
JavaScript
77
star
12

Hits-the-mole

The Hits-the-mole game implemented in pure CSS
CSS
62
star
13

colortype

A responsive WordPress theme
PHP
38
star
14

OhMyPullRequests

🚀 Access my pull requests from the menu bar
Swift
30
star
15

node_ranaly

Ranaly client library
JavaScript
19
star
16

express-mongoose

JavaScript
15
star
17

SwiftJSONFormatter

🪞 Formatter JSON delightfully.
Swift
15
star
18

teascript

Synchronous JavaScript
JavaScript
13
star
19

slicee

a CLI version of slicy.
Ruby
13
star
20

typo

妈妈从此再也不怕我输错属性(方法)名了!
JavaScript
12
star
21

dotQ

Yet another Q.
JavaScript
10
star
22

redis-book-v3-code

JavaScript
8
star
23

Tribbble

A Dribbble client for iPhone
Objective-C
7
star
24

blog

My blog
HTML
6
star
25

php-lugit-framework

简单优雅的PHP前端框架。
PHP
6
star
26

the-css-that-you-dont-know-about

你不知道的 CSS
HTML
6
star
27

quicker-npm-run

Alternative to `npm run` with support for autocomplete.
JavaScript
4
star
28

scene

A tiny front-end framework designed with ❤️
JavaScript
4
star
29

splitargs

Splitting Redis arguments as redis-cli
JavaScript
3
star
30

Suki

An elegant web framework for node.js
CoffeeScript
3
star
31

guokroup

将果壳所有小组的最新贴子显示在一页
CoffeeScript
3
star
32

cheerio-tester

Test the cheerio selector online
JavaScript
3
star
33

sample-NSSplitViewControlller

Swift
2
star
34

buddybook

books for buddies.
JavaScript
1
star
35

superspider

A powerful and distributed spider library used to crawl the web with the API of jQuery
1
star
36

3-key

⌨️ Personal key mapping for The Key.
C
1
star
37

SwiftPHPSerialization

Swift implementation of PHP's `serialize` and `unserialize`.
Swift
1
star
38

GameEngineSuki

A JavaScript Game Engine
CoffeeScript
1
star
39

express-sequelize

Adds Sequelize Promise support to Express rendering.
JavaScript
1
star
40

Threes-AI

A Threes! AI
CoffeeScript
1
star
41

dribbble

A full-featured Dribbble client for Node.js
JavaScript
1
star
42

my-first-ios-app

Swift
1
star
43

aqsort

An implementation of asynchronous quicksort in JavaScript
JavaScript
1
star