啪啪免费网站|十八女下面流水免费视频|大香焦伊人在钱8|香蕉视频三级|国产精品国产三级国产潘金莲

Rules Current Competition Submit a solution Submission table - ALL Submission table - Main Submission table - Ext Submission table - Ext2 Submission table - Ext3 Hall of Fame Past Competitions About
比賽規(guī)則 本期比賽關(guān)卡 提交答案 提交列表(全部) 提交列表 - 1 提交列表 - 2 提交列表 - 3 提交列表 - 4 榮譽(yù)殿堂 往期比賽 比賽簡介 比賽詩選
歪推箱子 推箱子加加 睿斗推箱子 推箱快手(安卓版) 推箱快手(Windows) SokoPlayer SokoPlayer HTML5 USokoban [Linux] SokoFind LURD2XSB 推箱子工具 [Utilities] 推箱子變種 [Variants]
關(guān)卡平臺 sokoban.org 字母表 [alphabet] 十二生肖 [zodiac] 2012精選 [bestof2012] 2013精選 [bestof2013] 關(guān)卡答案
MF8論壇推箱子版 QQ群:92017135
XSB2MF8 [中文] XSB2MF8 [English] XSB2MF8 [sokojava] 關(guān)卡旋轉(zhuǎn)工具 LURD2XSB工具 LURD轉(zhuǎn)換工具 推箱子GIF動畫制作教程 [skyivben] XSB2image [skyivben] image2XSB
推箱子常見問答 [FAQ] 推箱子格式 [XSB & Lurd] 推箱子基本概念:空位 推箱子游戲中半位空間的奇偶屬性與磁鐵效應(yīng) 推箱子新手之路 “信以為真”關(guān)卡誕生記 推箱子GIF動畫制作教程 逆推教程 推箱子文檔下載
SokoPlayer HTML5 SokoPlayer JavaApplet USokoban [Linux] sokoban.py Sokoban.WS Tools SokoFind SokoLines HTML5
推箱子常見問答 [FAQ] 關(guān)于推箱子 [XSB & Lurd] 推箱子文檔下載 關(guān)于比賽 墻紙下載 [Wallpaper] 友情鏈接 [Links] 推箱子博客 [Blog] Credits

REST API for MF8 Sokoban Competition

All APIs response in JSON format. All strings are encoded in UTF-8.

中文API說明點(diǎn)擊下載

Retrieve Competition Data

URI: http://sokoban.ws/api/competition/
Method: GET
Parameter: id = number

Parameter is not necessary. If no parameter provided, then the response will be the latest competition. If 'id' is specified, then it must be >= 20 and <= the 'id' of the latest competition.

Each level contains a 'title' and an 'alt_title'. The 'title' (and 'author') may contain UTF-8 encoded Chinese characters. In such cases, 'alt_title' provides an English translation for the title. Otherwise, the 'alt_title' can be an empty string or NULL.

The 'level' itself is in one-line XSB format, and the rows are seperated by '|'. FLOORs are reprensented by either '_' or '-'.

The 'extra' level is NULL for 'id' < 43.

Following are a few examples.

Example 1

request: GET http://sokoban.ws/api/competition/
response:

{
	"id":49,
	"begin":"2013-07-26 07:00:00",
	"end":"2013-08-16 07:00:00",
	"main":null,
	"extra":null
}

Example 2

request: GET http://sokoban.ws/api/competition/?id=48
response:

{
	"id":"48",
	"begin":"2013-06-27 08:30:00",
	"end":"2013-07-19 08:30:00",
	"main":{
			"author":"Marcus Palstra+GRIGoRusa+York Shen+gyjgw+anian+20603",
			"title":"\u58f0\u4e1c\u51fb\u897f (MF8 48th Sokoban Competition, Main)",
			"alt_title":"; Make a feint to the east but attack in the west",
			"level":"_####______________|_#-.###############|_#.-$---$---.$----#|_#--##@-$---#.###-#|_#$-####$####---#-#|_#--###.*-.--.#*--#|_#$-##-.#-*-#---###|_#--##-$$*-##-#$#__|_#$-##--#-*-*-$-###|_#----#.#.-*--*-$-#|_#$-#.--#.#####-#-#|_#-$##-##.----#.--#|##$--....*#-#-.-*-#|#---$-$-----###*-##|#-$#######--#_#--#_|#--#_____####_####_|####_______________"
		},
	"extra":{
			"author":"\u98ce\u8fc7\u4e86\u65e0\u75d5(SokoWind) + anian + stopheart + gyjgw",
			"title":"\u524d\u65b9\u65bd\u5de5 [\u968f\u5fc3\u5173\u5361\u7b2c41\u5173 \u6c6a\u661f\u4ebae] (MF8 48th Competition, Extra)",
			"alt_title":"; Road work ahead [SuiXin #41 - Dog version e]",
			"level":"__________________########___|_________________#--------#__|###___________####-######-#__|#____________#------#---#-#__|#######_____#--####--*--#--#_|#------######-#-.-**##-###-#_|#-####------#-*---*-#--*.-$-#|#-#--##-###-#--###*---#-----#|#--$-#-*###-#-*--#--**######_|###--#----#-$*--**-#--.-#____|__#.-#--#-##*--*-*.#--$-##___|__#*-####-##--#*--$-*#-#_____|__#-#-----*@*-#-*-*--##______|__#-----#####---*#--#________|__#######___#--**--##________|_____________#----#__________|______________####___________"
		}
}

Example 3

request: GET http://sokoban.ws/api/competition/?id=18
response:

{
	"error":"invalid id"
}

Retrieve Submission Data

URI: http://sokoban.ws/api/competition/submission/
Method: GET
Parameter: t=main or t=extra

If no parameter is provided, then it is the same as t=main.

This API always response with the submission list to the latest competition levels.

The country field of submission is using the country code Top Level Domain (ccTLD), such as "DE" = Germany, "FR" = France, "BG" = Bulgary, "CN" = China, etc. "00" means the country/region is not specified.

{
	"id":49,
	"label":"extra",
	"submission":[
		{
			"time":"2013-07-26 09:04:17",
			"name":"\u4e00\u76ee\u4e86\u7136",
			"country":"CN",
			"move":224,
			"push":51
		},
		{
			"time":"2013-07-26 09:43:49",
			"name":"shengli03",
			"country":"CN",
			"move":306,
			"push":59
		},
		{
			"time":"2013-07-26 09:46:37",
			"name":"shengli03",
			"country":"CN",
			"move":224,
			"push":51
		}
	]
}

Created: July 26, 2013.