//-----------------------------------------------------------------------------------------------------
//BY:yuyongbao
//QQ:673360056
//-----------------------------------------------------------------------------------------------------
#include "tetrixboard.h"
/* ZShape , //·½¿é»ù±¾ÐÎ×´0-6
SShape,
LineShape,
TShape,
SquareShape,
LShape,
MirroredLShape,
ZRot1Shape, //ÒÔÏÂÊÇ·½¿é·×ªºóµÄÐÎ×´7-19
SRot1Shape,
LineRot1Shape,
TRot1Shape,
TRot2Shape,
TRot3Shape,
SquareRot1Shape,
LRot1Shape,
LRot2Shape,
LRot3Shape,
MirroredLRot1Shape,
MirroredLRot2Shape,
MirroredLRot3Shape
*/
int TetrixCoordsTable[19][16] = {
// 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 1-16´Ó×óµ½ÓÒ£¬´ÓÉϵ½ÏÂ
{1,1,0,0,0,1,1,0,0,0,0,0,0,0,0,0}, //ZShape
{0,1,1,0,1,1,0,0,0,0,0,0,0,0,0,0}, //SShape
{1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0}, //LineShape
{0,1,0,0,1,1,1,0,0,0,0,0,0,0,0,0}, //TShape
{0,1,1,0,0,1,1,0,0,0,0,0,0,0,0,0}, //SquareShape
{0,0,1,0,0,0,1,0,0,1,1,0,0,0,0,0}, //LShape
{0,1,0,0,0,1,0,0,0,1,1,0,0,0,0,0}, //MirroredLShape
{0,0,1,0,0,1,1,0,0,1,0,0,0,0,0,0}, //ZRot1Shape
{0,1,0,0,0,1,1,0,0,0,1,0,0,0,0,0}, //SRot1Shape
{0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0}, //LineRot1Shape
{0,1,0,0,0,1,1,0,0,1,0,0,0,0,0,0}, //TRot1Shape
{1,1,1,0,0,1,0,0,0,0,0,0,0,0,0,0}, //TRot2Shape
{0
¾³£ÐèÒªÔÚ³ÌÐòÖн«Ô¶³Ì´«À´µÄ×Ö½ÚÁ÷½øÐнṹ»¯£¬»òÕß½«½á¹¹»¯µÄÊý¾Ý±ä³É×Ö½ÚÁ÷´«¸øÔ¶³ÌÖ÷»ú¡£ÔÚC/C++³ÌÐòÖУ¬½á¹¹»¯Êý¾Ýͨ³£ÓýṹÌåÀ´×éÖ¯£¬½á¹¹ÌåÒ²Äܹ»·½±ãµÄת»»Îª×Ö½ÚÁ÷£¬Òò´Ë½á¹¹»¯µÄÊý¾Ý´«Êä±¾²»¸Ã³ÉΪÎÊÌ⣬µ«ÔÚVC»òGCCµÄĬÈÏÉèÖÃϱàÒë³öµÄ³ÌÐò£¬È´ÓÐÒ»¸öÖµµÃ×¢ÒâµÄÎÊÌâ——½á¹¹ÌåµÄ¶ÔÆë¡£ ......