//-----------------------------------------------------------------------------------------------------
//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
http://topic.csdn.net/u/20080924/15/3b00a84e-970f-4dea-92f2-868c5d1ad825.html?52694
前段时间刚参加了n多公司的C/C++软件工程师的面试,有国企,外企,私企(moto,飞思卡尔,港湾,中国卫星XXX(这个牛))等等等等。感受感想颇多,近日终于空闲,在此表述一下。
本人基本条件:3年开发经验,2year+ ......
/* =========================================================================== */
/* Project: mp3 player */
/* File: & ......