# -*- coding: utf-8 -*-

data = {
	1 : {
		"name" : "白色车",
		"desc" : "白色测试车",
	},
	2 : {
		"name" : "白色马",
		"desc" : "白色测试马",
	},
	3 : {
		"name" : "白色象",
		"desc" : "白色测试象",
	},
	4 : {
		"name" : "白色士",
		"desc" : "白色测试士",
	},
	5 : {
		"name" : "白色将",
		"desc" : "白色测试将",
	},
	6 : {
		"name" : "白色炮",
		"desc" : "白色测试炮",
	},
	7 : {
		"name" : "白色卒",
		"desc" : "白色测试卒",
	}
}

born_chess = {1, 2, 3, 4, 5, 6, 7}

test_chess = [
		{
			"chess_id":1,
			"chess_level":1,
			"chess_name":"车-哪吒",
			"chess_index_x":0,
			"chess_index_z":0,
			"chess_attack":100,
			"chess_defense":50,
			"chess_owner_player":1,
			"max_hp":100,
		},
		{
			"chess_id":2,
			"chess_level":1,
			"chess_name":"马-牛头妖",
			"chess_index_x":1,
			"chess_index_z":0,
			"chess_attack":100,
			"chess_defense":50,
			"chess_owner_player":1,
			"max_hp":100,
		},
		{
			"chess_id":3,
			"chess_level":1,
			"chess_name":"象-雷公",
			"chess_index_x":2,
			"chess_index_z":0,
			"chess_attack":100,
			"chess_defense":50,
			"chess_owner_player":1,
			"max_hp":100,
		},
		{
			"chess_id":4,
			"chess_level":1,
			"chess_name":"士-人参娃",
			"chess_index_x":3,
			"chess_index_z":0,
			"chess_attack":100,
			"chess_defense":50,
			"chess_owner_player":1,
			"max_hp":100,
		},
		{
			"chess_id":5,
			"chess_level":1,
			"chess_name":"将-杨戬",
			"chess_index_x":4,
			"chess_index_z":0,
			"chess_attack":100,
			"chess_defense":50,
			"chess_owner_player":1,
			"max_hp":100,
		},
		{
			"chess_id":4,
			"chess_level":1,
			"chess_name":"士-人参娃",
			"chess_index_x":5,
			"chess_index_z":0,
			"chess_attack":100,
			"chess_defense":50,
			"chess_owner_player":1,
			"max_hp":100,
		},
		{
			"chess_id":3,
			"chess_level":1,
			"chess_name":"象-雷公",
			"chess_index_x":6,
			"chess_index_z":0,
			"chess_attack":100,
			"chess_defense":50,
			"chess_owner_player":1,
			"max_hp":100,
		},
		{
			"chess_id":2,
			"chess_level":1,
			"chess_name":"马-牛头妖",
			"chess_index_x":7,
			"chess_index_z":0,
			"chess_attack":100,
			"chess_defense":50,
			"chess_owner_player":1,
			"max_hp":100,
		},
		{
			"chess_id":1,
			"chess_level":1,
			"chess_name":"车-哪吒",
			"chess_index_x":8,
			"chess_index_z":0,
			"chess_attack":100,
			"chess_defense":50,
			"chess_owner_player":1,
			"max_hp":100,
		},
		{
			"chess_id":6,
			"chess_level":1,
			"chess_name":"炮-猪八戒",
			"chess_index_x":1,
			"chess_index_z":2,
			"chess_attack":100,
			"chess_defense":50,
			"chess_owner_player":1,
			"max_hp":100,
		},
		{
			"chess_id":6,
			"chess_level":1,
			"chess_name":"炮-猪八戒",
			"chess_index_x":7,
			"chess_index_z":2,
			"chess_attack":100,
			"chess_defense":50,
			"chess_owner_player":1,
			"max_hp":100,
		},
		{
			"chess_id":7,
			"chess_level":1,
			"chess_name":"兵-蛤蟆",
			"chess_index_x":0,
			"chess_index_z":3,
			"chess_attack":100,
			"chess_defense":50,
			"chess_owner_player":1,
			"max_hp":100,
		},
		{
			"chess_id":7,
			"chess_level":1,
			"chess_name":"兵-蛤蟆",
			"chess_index_x":2,
			"chess_index_z":3,
			"chess_attack":100,
			"chess_defense":50,
			"chess_owner_player":1,
			"max_hp":100,
		},
		{
			"chess_id":7,
			"chess_level":1,
			"chess_name":"兵-蛤蟆",
			"chess_index_x":4,
			"chess_index_z":3,
			"chess_attack":100,
			"chess_defense":50,
			"chess_owner_player":1,
			"max_hp":100,
		},
		{
			"chess_id":7,
			"chess_level":1,
			"chess_name":"兵-蛤蟆",
			"chess_index_x":6,
			"chess_index_z":3,
			"chess_attack":100,
			"chess_defense":50,
			"chess_owner_player":1,
			"max_hp":100,
		},
		{
			"chess_id":7,
			"chess_level":1,
			"chess_name":"兵-蛤蟆",
			"chess_index_x":8,
			"chess_index_z":3,
			"chess_attack":100,
			"chess_defense":50,
			"chess_owner_player":1,
			"max_hp":100,
		},
		{
			"chess_id":8,
			"chess_level":1,
			"chess_name":"敌人 将-巨石怪",
			"chess_index_x":4,
			"chess_index_z":9,
			"chess_attack":100,
			"chess_defense":50,
			"chess_owner_player":0,
			"max_hp":300,
		},
	]


test_chess2 = [
		{
			"chess_id":1,
			"chess_level":1,
			"chess_name":"车-哪吒",
			"chess_index_x":0,
			"chess_index_z":0,
			"chess_attack":100,
			"chess_defense":50,
			"chess_owner_player":1,
			"max_hp":100,
		},
		{
			"chess_id":2,
			"chess_level":1,
			"chess_name":"马-牛头妖",
			"chess_index_x":1,
			"chess_index_z":0,
			"chess_attack":100,
			"chess_defense":50,
			"chess_owner_player":1,
			"max_hp":100,
		},
		{
			"chess_id":3,
			"chess_level":1,
			"chess_name":"象-雷公",
			"chess_index_x":2,
			"chess_index_z":0,
			"chess_attack":100,
			"chess_defense":50,
			"chess_owner_player":1,
			"max_hp":100,
		},
		{
			"chess_id":4,
			"chess_level":1,
			"chess_name":"士-人参娃",
			"chess_index_x":3,
			"chess_index_z":0,
			"chess_attack":100,
			"chess_defense":50,
			"chess_owner_player":1,
			"max_hp":100,
		},
		{
			"chess_id":5,
			"chess_level":1,
			"chess_name":"将-杨戬",
			"chess_index_x":4,
			"chess_index_z":0,
			"chess_attack":100,
			"chess_defense":50,
			"chess_owner_player":1,
			"max_hp":100,
		},
		{
			"chess_id":4,
			"chess_level":1,
			"chess_name":"士-人参娃",
			"chess_index_x":5,
			"chess_index_z":0,
			"chess_attack":100,
			"chess_defense":50,
			"chess_owner_player":1,
			"max_hp":100,
		},
		{
			"chess_id":3,
			"chess_level":1,
			"chess_name":"象-雷公",
			"chess_index_x":6,
			"chess_index_z":0,
			"chess_attack":100,
			"chess_defense":50,
			"chess_owner_player":1,
			"max_hp":100,
		},
		{
			"chess_id":2,
			"chess_level":1,
			"chess_name":"马-牛头妖",
			"chess_index_x":7,
			"chess_index_z":0,
			"chess_attack":100,
			"chess_defense":50,
			"chess_owner_player":1,
			"max_hp":100,
		},
		{
			"chess_id":1,
			"chess_level":1,
			"chess_name":"车-哪吒",
			"chess_index_x":8,
			"chess_index_z":0,
			"chess_attack":100,
			"chess_defense":50,
			"chess_owner_player":1,
			"max_hp":100,
		},
		{
			"chess_id":6,
			"chess_level":1,
			"chess_name":"炮-猪八戒",
			"chess_index_x":1,
			"chess_index_z":2,
			"chess_attack":100,
			"chess_defense":50,
			"chess_owner_player":1,
			"max_hp":100,
		},
		{
			"chess_id":6,
			"chess_level":1,
			"chess_name":"炮-猪八戒",
			"chess_index_x":7,
			"chess_index_z":2,
			"chess_attack":100,
			"chess_defense":50,
			"chess_owner_player":1,
			"max_hp":100,
		},
		{
			"chess_id":7,
			"chess_level":1,
			"chess_name":"兵-蛤蟆",
			"chess_index_x":0,
			"chess_index_z":3,
			"chess_attack":100,
			"chess_defense":50,
			"chess_owner_player":1,
			"max_hp":100,
		},
		{
			"chess_id":7,
			"chess_level":1,
			"chess_name":"兵-蛤蟆",
			"chess_index_x":2,
			"chess_index_z":3,
			"chess_attack":100,
			"chess_defense":50,
			"chess_owner_player":1,
			"max_hp":100,
		},
		{
			"chess_id":7,
			"chess_level":1,
			"chess_name":"兵-蛤蟆",
			"chess_index_x":4,
			"chess_index_z":3,
			"chess_attack":100,
			"chess_defense":50,
			"chess_owner_player":1,
			"max_hp":100,
		},
		{
			"chess_id":7,
			"chess_level":1,
			"chess_name":"兵-蛤蟆",
			"chess_index_x":6,
			"chess_index_z":3,
			"chess_attack":100,
			"chess_defense":50,
			"chess_owner_player":1,
			"max_hp":100,
		},
		{
			"chess_id":7,
			"chess_level":1,
			"chess_name":"兵-蛤蟆",
			"chess_index_x":8,
			"chess_index_z":3,
			"chess_attack":100,
			"chess_defense":50,
			"chess_owner_player":1,
			"max_hp":100,
		},
# 华丽的分割线 ================ 以下是第二个玩家的棋子分布
		{
			"chess_id":1,
			"chess_level":1,
			"chess_name":"车-哪吒",
			"chess_index_x":0,
			"chess_index_z":9,
			"chess_attack":100,
			"chess_defense":50,
			"chess_owner_player":1,
			"max_hp":100,
		},
		{
			"chess_id":2,
			"chess_level":1,
			"chess_name":"马-牛头妖",
			"chess_index_x":1,
			"chess_index_z":9,
			"chess_attack":100,
			"chess_defense":50,
			"chess_owner_player":1,
			"max_hp":100,
		},
		{
			"chess_id":3,
			"chess_level":1,
			"chess_name":"象-雷公",
			"chess_index_x":2,
			"chess_index_z":9,
			"chess_attack":100,
			"chess_defense":50,
			"chess_owner_player":1,
			"max_hp":100,
		},
		{
			"chess_id":4,
			"chess_level":1,
			"chess_name":"士-人参娃",
			"chess_index_x":3,
			"chess_index_z":9,
			"chess_attack":100,
			"chess_defense":50,
			"chess_owner_player":1,
			"max_hp":100,
		},
		{
			"chess_id":5,
			"chess_level":1,
			"chess_name":"将-杨戬",
			"chess_index_x":4,
			"chess_index_z":9,
			"chess_attack":100,
			"chess_defense":50,
			"chess_owner_player":1,
			"max_hp":100,
		},
		{
			"chess_id":4,
			"chess_level":1,
			"chess_name":"士-人参娃",
			"chess_index_x":5,
			"chess_index_z":9,
			"chess_attack":100,
			"chess_defense":50,
			"chess_owner_player":1,
			"max_hp":100,
		},
		{
			"chess_id":3,
			"chess_level":1,
			"chess_name":"象-雷公",
			"chess_index_x":6,
			"chess_index_z":9,
			"chess_attack":100,
			"chess_defense":50,
			"chess_owner_player":1,
			"max_hp":100,
		},
		{
			"chess_id":2,
			"chess_level":1,
			"chess_name":"马-牛头妖",
			"chess_index_x":7,
			"chess_index_z":9,
			"chess_attack":100,
			"chess_defense":50,
			"chess_owner_player":1,
			"max_hp":100,
		},
		{
			"chess_id":1,
			"chess_level":1,
			"chess_name":"车-哪吒",
			"chess_index_x":8,
			"chess_index_z":9,
			"chess_attack":100,
			"chess_defense":50,
			"chess_owner_player":1,
			"max_hp":100,
		},
		{
			"chess_id":6,
			"chess_level":1,
			"chess_name":"炮-猪八戒",
			"chess_index_x":1,
			"chess_index_z":7,
			"chess_attack":100,
			"chess_defense":50,
			"chess_owner_player":1,
			"max_hp":100,
		},
		{
			"chess_id":6,
			"chess_level":1,
			"chess_name":"炮-猪八戒",
			"chess_index_x":7,
			"chess_index_z":7,
			"chess_attack":100,
			"chess_defense":50,
			"chess_owner_player":1,
			"max_hp":100,
		},
		{
			"chess_id":7,
			"chess_level":1,
			"chess_name":"兵-蛤蟆",
			"chess_index_x":0,
			"chess_index_z":6,
			"chess_attack":100,
			"chess_defense":50,
			"chess_owner_player":1,
			"max_hp":100,
		},
		{
			"chess_id":7,
			"chess_level":1,
			"chess_name":"兵-蛤蟆",
			"chess_index_x":2,
			"chess_index_z":6,
			"chess_attack":100,
			"chess_defense":50,
			"chess_owner_player":1,
			"max_hp":100,
		},
		{
			"chess_id":7,
			"chess_level":1,
			"chess_name":"兵-蛤蟆",
			"chess_index_x":4,
			"chess_index_z":6,
			"chess_attack":100,
			"chess_defense":50,
			"chess_owner_player":1,
			"max_hp":100,
		},
		{
			"chess_id":7,
			"chess_level":1,
			"chess_name":"兵-蛤蟆",
			"chess_index_x":6,
			"chess_index_z":6,
			"chess_attack":100,
			"chess_defense":50,
			"chess_owner_player":1,
			"max_hp":100,
		},
		{
			"chess_id":7,
			"chess_level":1,
			"chess_name":"兵-蛤蟆",
			"chess_index_x":8,
			"chess_index_z":6,
			"chess_attack":100,
			"chess_defense":50,
			"chess_owner_player":1,
			"max_hp":100,
		},
	]