{"id":6187,"date":"2024-08-16T14:01:04","date_gmt":"2024-08-16T06:01:04","guid":{"rendered":""},"modified":"2024-08-16T14:01:04","modified_gmt":"2024-08-16T06:01:04","slug":"\u5236\u4f5c\u4fc4\u7f57\u65af\u65b9\u5757\u6e38\u620f\u7684\u6b65\u9aa4_\u4fc4\u7f57\u65af\u65b9\u5757\u600e\u4e48\u505a\u624b\u5de5","status":"publish","type":"post","link":"https:\/\/mushiming.com\/6187.html","title":{"rendered":"\u5236\u4f5c\u4fc4\u7f57\u65af\u65b9\u5757\u6e38\u620f\u7684\u6b65\u9aa4_\u4fc4\u7f57\u65af\u65b9\u5757\u600e\u4e48\u505a\u624b\u5de5"},"content":{"rendered":"

\n <\/path> \n<\/svg> <\/p>\n

\u4e0a\u63a5Maketetris\u7ee7\u7eed\uff1a
\u5728Maketetris\u91cc\uff0c\u4e00\u5171\u670919\u4e2acase\uff0c\u7b2c\u4e00\u4e2acase\u662f\u7530\u5b57\u683c\u7684\u5f62\u6001\uff0c\u7530\u5b57\u683c\u6709\u4e14\u53ea\u6709\u4e00\u79cd\u5f62\u6001\uff0c\u6211\u4eec\u5728Printtetris\u91cc\u9762\uff0c\u5df2\u7ecf\u5c06b\u6570\u7ec4\uff0c\u4e5f\u5c31\u662f\u65b9\u5757\u6570\u7ec4\u5168\u90e8\u8d4b\u503c\u4e3a1\uff0c\u800c\u4e14\u4e2d\u5fc3\u65b9\u5757\u4e00\u76f4\u662f4X4\u5927\u65b9\u5757\u91cc\u7b2c\u4e09\u884c\u7b2c\u4e8c\u4e2a\u65b9\u5757\uff0c\u5b83\u7684xy\u5750\u6807\u4e0d\u7528\u52a8\uff0c\u6240\u4ee5\u4e0d\u9700\u8981\u5728\u5199\u4ee3\u7801\u7684\u65f6\u5019\u518d\u519919\u6b21\uff0c\u6240\u4ee5\u4e00\u5f00\u59cb\u5373\u53ef\u5bf9a[80][80] \u5b9a\u4f4d\u6570\u7ec4\u8d4b\u503c\u4e86\uff0ca\u6570\u7ec4\u5177\u4f53\u600e\u4e48\u7528\u8fd9\u91cc\u8fd8\u8bb2\u4e0d\u6e05\u695a\uff0c\u540e\u9762\u7528\u5230\u7684\u51fd\u6570\u4f1a\u8bb2\u5230\u3002\u6bcf\u4e2acase \u90fd\u4f1a\u6709b1\uff0cb2,b3\u6570\u7ec4\u6765\u8d4b\u503c\uff0c\u8d4b\u503c\u4e3a1<\/p>\n

void<\/span> CleanTetris<\/span>(<\/span>struct<\/span> Tetris*<\/span>tetris)<\/span>\uff1b void<\/span> CleanTetris<\/span>(<\/span>struct<\/span> Tetris*<\/span>tetris)<\/span> { \n   <\/span> for<\/span>(<\/span>i=<\/span>0<\/span>;<\/span>i<<\/span>4<\/span>;<\/span>i++<\/span>)<\/span> { \n   <\/span> b[<\/span>i]<\/span>=<\/span>0<\/span>;<\/span> }<\/span> MakeTetris<\/span>(<\/span>tetris)<\/span>;<\/span> for<\/span>(<\/span>i=<\/span>tetris-><\/span>x-<\/span>2<\/span>;<\/span>i<=<\/span>tetris-><\/span>x+<\/span>4<\/span>;<\/span>i+<\/span>=<\/span>2<\/span>)<\/span> { \n   <\/span> for<\/span>(<\/span>j=<\/span>tetris-><\/span>y-<\/span>2<\/span>;<\/span>j<=<\/span>tetris-><\/span>y+<\/span>1<\/span>;<\/span>j++<\/span>)<\/span> { \n   <\/span> if<\/span>(<\/span>a[<\/span>i]<\/span>[<\/span>j]<\/span>==<\/span>0<\/span>&&<\/span>j><\/span>FrameY)<\/span> { \n   <\/span> gotoxy<\/span>(<\/span>i,<\/span>j)<\/span>;<\/span> printf<\/span>(<\/span>\" \"<\/span>)<\/span>;<\/span> }<\/span> }<\/span> }<\/span> }<\/span> <\/code><\/pre>\n

\u4e0ePrinttetris\u7c7b\u4f3c\uff0c\u4e0d\u8fc7Clean\u51fd\u6570\u91cc\u5c06b\u6570\u7ec4\u5168\u90e8\u8d4b\u503c\u4e3a0\uff0c\u56e0\u4e3a\u662f\u8981\u6e05\u9664\u4e0a\u4e00\u65f6\u95f4\u70b9\u65b9\u5757\u7684\u75d5\u8ff9\uff0c\u4e0d\u7136\u770b\u8d77\u6765\u4f1a\u5f88\u7cdf\u7cd5\uff0c\u540c\u6837\u91cc\u9762\u8c03\u7528\u4e86MakeTetris\u51fd\u6570\uff0c\u56e0\u4e3a\u5177\u4f53\u9700\u8981\u5982\u4f55\u6e05\u9664\u75d5\u8ff9\uff0c\u9700\u8981\u7531\u6bcf\u4e2a\u94fe\u8868\u8282\u70b9\uff08\u65b9\u5757\uff09\u7684flag\uff08\u65b9\u5757\u7684\u5f62\u6001\u517119\u79cd\uff09\u6765\u5224\u5b9a\uff0c\u4e0ePrinttetris\u5f88\u7c7b\u4f3c\u3002<\/p>\n

int<\/span> ifMove<\/span>(<\/span>struct<\/span> Tetris*<\/span>)<\/span>;<\/span> int<\/span> ifMove<\/span>(<\/span>struct<\/span> Tetris*<\/span>tetris)<\/span> { \n   <\/span> if<\/span>(<\/span>a[<\/span>tetris-><\/span>x]<\/span>[<\/span>tetris-><\/span>y]<\/span>!=<\/span>0<\/span>)<\/span> { \n   <\/span> return<\/span> 0<\/span>;<\/span> }<\/span> else<\/span> { \n   <\/span> if<\/span>(<\/span>(<\/span>tetris-><\/span>flag==<\/span>1<\/span>&&<\/span>(<\/span>a[<\/span>tetris-><\/span>x]<\/span>[<\/span>tetris-><\/span>y-<\/span>1<\/span>]<\/span>==<\/span>0<\/span>&&<\/span>a[<\/span>tetris-><\/span>x+<\/span>2<\/span>]<\/span>[<\/span>tetris-><\/span>y-<\/span>1<\/span>]<\/span>==<\/span>0<\/span>&&<\/span>a[<\/span>tetris-><\/span>x+<\/span>2<\/span>]<\/span>[<\/span>tetris-><\/span>y]<\/span>==<\/span>0<\/span>)<\/span> )<\/span> ||<\/span> (<\/span>tetris-><\/span>flag==<\/span>2<\/span>&&<\/span>(<\/span>a[<\/span>tetris-><\/span>x-<\/span>2<\/span>]<\/span>[<\/span>tetris-><\/span>y]<\/span>==<\/span>0<\/span>&&<\/span>a[<\/span>tetris-><\/span>x+<\/span>2<\/span>]<\/span>[<\/span>tetris-><\/span>y]<\/span>==<\/span>0<\/span>&&<\/span>a[<\/span>tetris-><\/span>x+<\/span>4<\/span>]<\/span>[<\/span>tetris-><\/span>y]<\/span>==<\/span>0<\/span>)<\/span> )<\/span> ||<\/span> (<\/span>tetris-><\/span>flag==<\/span>3<\/span>&&<\/span>(<\/span>a[<\/span>tetris-><\/span>x]<\/span>[<\/span>tetris-><\/span>y-<\/span>1<\/span>]<\/span>==<\/span>0<\/span>&&<\/span>a[<\/span>tetris-><\/span>x]<\/span>[<\/span>tetris-><\/span>y-<\/span>2<\/span>]<\/span>==<\/span>0<\/span>&&<\/span>a[<\/span>tetris-><\/span>x]<\/span>[<\/span>tetris-><\/span>y+<\/span>1<\/span>]<\/span>==<\/span>0<\/span>)<\/span> )<\/span> ||<\/span> (<\/span>tetris-><\/span>flag==<\/span>4<\/span>&&<\/span>(<\/span>a[<\/span>tetris-><\/span>x-<\/span>2<\/span>]<\/span>[<\/span>tetris-><\/span>y]<\/span>==<\/span>0<\/span>&&<\/span>a[<\/span>tetris-><\/span>x+<\/span>2<\/span>]<\/span>[<\/span>tetris-><\/span>y]<\/span>==<\/span>0<\/span>&&<\/span>a[<\/span>tetris-><\/span>x]<\/span>[<\/span>tetris-><\/span>y+<\/span>1<\/span>]<\/span>==<\/span>0<\/span>)<\/span> )<\/span> ||<\/span> (<\/span>tetris-><\/span>flag==<\/span>5<\/span>&&<\/span>(<\/span>a[<\/span>tetris-><\/span>x]<\/span>[<\/span>tetris-><\/span>y-<\/span>1<\/span>]<\/span>==<\/span>0<\/span>&&<\/span>a[<\/span>tetris-><\/span>x]<\/span>[<\/span>tetris-><\/span>y+<\/span>1<\/span>]<\/span>==<\/span>0<\/span>&&<\/span>a[<\/span>tetris-><\/span>x-<\/span>2<\/span>]<\/span>[<\/span>tetris-><\/span>y]<\/span>==<\/span>0<\/span>)<\/span> )<\/span> ||<\/span> (<\/span>tetris-><\/span>flag==<\/span>6<\/span>&&<\/span>(<\/span>a[<\/span>tetris-><\/span>x]<\/span>[<\/span>tetris-><\/span>y-<\/span>1<\/span>]<\/span>==<\/span>0<\/span>&&<\/span>a[<\/span>tetris-><\/span>x-<\/span>2<\/span>]<\/span>[<\/span>tetris-><\/span>y]<\/span>==<\/span>0<\/span>&&<\/span>a[<\/span>tetris-><\/span>x+<\/span>2<\/span>]<\/span>[<\/span>tetris-><\/span>y]<\/span>==<\/span>0<\/span>)<\/span> )<\/span> ||<\/span> (<\/span>tetris-><\/span>flag==<\/span>7<\/span>&&<\/span>(<\/span>a[<\/span>tetris-><\/span>x]<\/span>[<\/span>tetris-><\/span>y-<\/span>1<\/span>]<\/span>==<\/span>0<\/span>&&<\/span>a[<\/span>tetris-><\/span>x]<\/span>[<\/span>tetris-><\/span>y+<\/span>1<\/span>]<\/span>==<\/span>0<\/span>&&<\/span>a[<\/span>tetris-><\/span>x+<\/span>2<\/span>]<\/span>[<\/span>tetris-><\/span>y]<\/span>==<\/span>0<\/span>)<\/span> )<\/span> ||<\/span> (<\/span>tetris-><\/span>flag==<\/span>8<\/span>&&<\/span>(<\/span>a[<\/span>tetris-><\/span>x]<\/span>[<\/span>tetris-><\/span>y+<\/span>1<\/span>]<\/span>==<\/span>0<\/span>&&<\/span>a[<\/span>tetris-><\/span>x-<\/span>2<\/span>]<\/span>[<\/span>tetris-><\/span>y]<\/span>==<\/span>0<\/span>&&<\/span>a[<\/span>tetris-><\/span>x+<\/span>2<\/span>]<\/span>[<\/span>tetris-><\/span>y+<\/span>1<\/span>]<\/span>==<\/span>0<\/span>)<\/span> )<\/span> ||<\/span> (<\/span>tetris-><\/span>flag==<\/span>9<\/span>&&<\/span>(<\/span>a[<\/span>tetris-><\/span>x]<\/span>[<\/span>tetris-><\/span>y-<\/span>1<\/span>]<\/span>==<\/span>0<\/span>&&<\/span>a[<\/span>tetris-><\/span>x-<\/span>2<\/span>]<\/span>[<\/span>tetris-><\/span>y-<\/span>1<\/span>]<\/span>==<\/span>0<\/span>&&<\/span>a[<\/span>tetris-><\/span>x-<\/span>2<\/span>]<\/span>[<\/span>tetris-><\/span>y+<\/span>1<\/span>]<\/span>==<\/span>0<\/span>)<\/span> )<\/span> ||<\/span> (<\/span>tetris-><\/span>flag==<\/span>10<\/span>&&<\/span>(<\/span>a[<\/span>tetris-><\/span>x]<\/span>[<\/span>tetris-><\/span>y-<\/span>1<\/span>]<\/span>==<\/span>0<\/span>&&<\/span>a[<\/span>tetris-><\/span>x-<\/span>2<\/span>]<\/span>[<\/span>tetris-><\/span>y-<\/span>1<\/span>]<\/span>==<\/span>0<\/span>&&<\/span>a[<\/span>tetris-><\/span>x+<\/span>2<\/span>]<\/span>[<\/span>tetris-><\/span>y]<\/span>==<\/span>0<\/span>)<\/span> )<\/span> ||<\/span> (<\/span>tetris-><\/span>flag==<\/span>11<\/span>&&<\/span>(<\/span>a[<\/span>tetris-><\/span>x]<\/span>[<\/span>tetris-><\/span>y+<\/span>1<\/span>]<\/span>==<\/span>0<\/span>&&<\/span>a[<\/span>tetris-><\/span>x-<\/span>2<\/span>]<\/span>[<\/span>tetris-><\/span>y-<\/span>1<\/span>]<\/span>==<\/span>0<\/span>&&<\/span>a[<\/span>tetris-><\/span>x-<\/span>2<\/span>]<\/span>[<\/span>tetris-><\/span>y]<\/span>==<\/span>0<\/span>)<\/span> )<\/span> ||<\/span> (<\/span>tetris-><\/span>flag==<\/span>12<\/span>&&<\/span>(<\/span>a[<\/span>tetris-><\/span>x]<\/span>[<\/span>tetris-><\/span>y-<\/span>1<\/span>]<\/span>==<\/span>0<\/span>&&<\/span>a[<\/span>tetris-><\/span>x]<\/span>[<\/span>tetris-><\/span>y+<\/span>1<\/span>]<\/span>==<\/span>0<\/span>&&<\/span>a[<\/span>tetris-><\/span>x-<\/span>2<\/span>]<\/span>[<\/span>tetris-><\/span>y-<\/span>1<\/span>]<\/span>==<\/span>0<\/span>)<\/span> )<\/span> ||<\/span> (<\/span>tetris-><\/span>flag==<\/span>15<\/span>&&<\/span>(<\/span>a[<\/span>tetris-><\/span>x-<\/span>2<\/span>]<\/span>[<\/span>tetris-><\/span>y]<\/span>==<\/span>0<\/span>&&<\/span>a[<\/span>tetris-><\/span>x-<\/span>2<\/span>]<\/span>[<\/span>tetris-><\/span>y+<\/span>1<\/span>]<\/span>==<\/span>0<\/span>&&<\/span>a[<\/span>tetris-><\/span>x+<\/span>2<\/span>]<\/span>[<\/span>tetris-><\/span>y]<\/span>==<\/span>0<\/span>)<\/span> )<\/span> ||<\/span> (<\/span>tetris-><\/span>flag==<\/span>14<\/span>&&<\/span>(<\/span>a[<\/span>tetris-><\/span>x]<\/span>[<\/span>tetris-><\/span>y-<\/span>1<\/span>]<\/span>==<\/span>0<\/span>&&<\/span>a[<\/span>tetris-><\/span>x]<\/span>[<\/span>tetris-><\/span>y+<\/span>1<\/span>]<\/span>==<\/span>0<\/span>&&<\/span>a[<\/span>tetris-><\/span>x+<\/span>2<\/span>]<\/span>[<\/span>tetris-><\/span>y+<\/span>1<\/span>]<\/span>==<\/span>0<\/span>)<\/span> )<\/span> ||<\/span> (<\/span>tetris-><\/span>flag==<\/span>13<\/span>&&<\/span>(<\/span>a[<\/span>tetris-><\/span>x-<\/span>2<\/span>]<\/span>[<\/span>tetris-><\/span>y]<\/span>==<\/span>0<\/span>&&<\/span>a[<\/span>tetris-><\/span>x+<\/span>2<\/span>]<\/span>[<\/span>tetris-><\/span>y-<\/span>1<\/span>]<\/span>==<\/span>0<\/span>&&<\/span>a[<\/span>tetris-><\/span>x+<\/span>2<\/span>]<\/span>[<\/span>tetris-><\/span>y]<\/span>==<\/span>0<\/span>)<\/span> )<\/span> ||<\/span> (<\/span>tetris-><\/span>flag==<\/span>16<\/span>&&<\/span>(<\/span>a[<\/span>tetris-><\/span>x]<\/span>[<\/span>tetris-><\/span>y+<\/span>1<\/span>]<\/span>==<\/span>0<\/span>&&<\/span>a[<\/span>tetris-><\/span>x]<\/span>[<\/span>tetris-><\/span>y-<\/span>1<\/span>]<\/span>==<\/span>0<\/span>&&<\/span>a[<\/span>tetris-><\/span>x+<\/span>2<\/span>]<\/span>[<\/span>tetris-><\/span>y-<\/span>1<\/span>]<\/span>==<\/span>0<\/span>)<\/span> )<\/span> ||<\/span> (<\/span>tetris-><\/span>flag==<\/span>19<\/span>&&<\/span>(<\/span>a[<\/span>tetris-><\/span>x-<\/span>2<\/span>]<\/span>[<\/span>tetris-><\/span>y]<\/span>==<\/span>0<\/span>&&<\/span>a[<\/span>tetris-><\/span>x-<\/span>2<\/span>]<\/span>[<\/span>tetris-><\/span>y-<\/span>1<\/span>]<\/span>==<\/span>0<\/span>&&<\/span>a[<\/span>tetris-><\/span>x+<\/span>2<\/span>]<\/span>[<\/span>tetris-><\/span>y]<\/span>==<\/span>0<\/span>)<\/span> )<\/span> ||<\/span> (<\/span>tetris-><\/span>flag==<\/span>18<\/span>&&<\/span>(<\/span>a[<\/span>tetris-><\/span>x]<\/span>[<\/span>tetris-><\/span>y-<\/span>1<\/span>]<\/span>==<\/span>0<\/span>&&<\/span>a[<\/span>tetris-><\/span>x]<\/span>[<\/span>tetris-><\/span>y+<\/span>1<\/span>]<\/span>==<\/span>0<\/span>&&<\/span>a[<\/span>tetris-><\/span>x-<\/span>2<\/span>]<\/span>[<\/span>tetris-><\/span>y+<\/span>1<\/span>]<\/span>==<\/span>0<\/span>)<\/span> )<\/span> ||<\/span> (<\/span>tetris-><\/span>flag==<\/span>17<\/span>&&<\/span>(<\/span>a[<\/span>tetris-><\/span>x-<\/span>2<\/span>]<\/span>[<\/span>tetris-><\/span>y]<\/span>==<\/span>0<\/span>&&<\/span>a[<\/span>tetris-><\/span>x+<\/span>2<\/span>]<\/span>[<\/span>tetris-><\/span>y+<\/span>1<\/span>]<\/span>==<\/span>0<\/span>&&<\/span>a[<\/span>tetris-><\/span>x+<\/span>2<\/span>]<\/span>[<\/span>tetris-><\/span>y]<\/span>==<\/span>0<\/span>)<\/span> )<\/span>)<\/span> { \n   <\/span> return<\/span> 1<\/span>;<\/span> }<\/span> }<\/span> return<\/span> 0<\/span>;<\/span> }<\/span> <\/code><\/pre>\n

ifMove \u9700\u8981\u8bf4\u7684\u4e00\u70b9\u662f\uff0c\u6bcf\u5f53\u8c03\u7528ifMove\u4e4b\u524d\uff0c\u65b9\u5757\u7684xy\u5750\u6807\u90fd\u4f1a\u5148\u53d1\u751f\u6539\u53d8\uff0c\u5411\u5de6\u5411\u53f3\uff0c\u6216\u662f\u52a0\u901f\u5411\u4e0b\uff0c\u7136\u540e\u7528ifMove\u5224\u65ad\uff0c\u5df2\u7ecf\u6539\u53d8\u7684\u4e2d\u5fc3\u5750\u6807\uff0c\u662f\u5426\u5728\u4ee5\u4e2d\u5fc3\u65b9\u5757\u5750\u6807\u4e3a\u4e2d\u5fc3\u65b9\u5757\u76844X4\u65b9\u5757\u91cc\u9762\uff0c\u662f\u5426\u7b26\u5408\u76f8\u5e94\u7684flag\u5f62\u6001\uff0c\u5982\u679c\u7b26\u5408 return1\uff0c\u5982\u679c\u4e0d\u7b26\u5408return 0\uff0c\u53ef\u4ee5\u770b\u5230\u5148\u5224\u65ad\u7684\u662f\uff1a<\/p>\n

if<\/span>(<\/span>a[<\/span>tetris-><\/span>x]<\/span>[<\/span>tetris-><\/span>y]<\/span>!=<\/span>0<\/span>)<\/span> { \n   <\/span> return<\/span> 0<\/span>;<\/span> }<\/span> <\/code><\/pre>\n

\u5148\u5224\u65ad\u7684\u662f\u4e2d\u5fc3\u65b9\u5757\uff0c\u540c\u7406\uff0c\u4e0d\u9700\u898119\u4e2a\u5f62\u6001\u4e00\u6b21\u4e00\u6b21\u5224\u65ad\uff0c\u5982\u679c\u8fde\u4e2d\u5fc3\u65b9\u5757\u90fd\u4e0d\u80fd\u653e\u5165\uff0c\u80af\u5b9a\u4e0d\u53ef\u80fd\u653e\u5165\uff0ca\u6570\u7ec4\u5728\u8fd9\u91cc\u7684\u4f5c\u7528\u5c31\u662f\u53bb\u5224\u65ad\u662f\u5426\u5728\u5df2\u7ecf\u6539\u53d8\u7684\u4e2d\u5fc3\u5750\u6807\u4f4d\u7f6e\u4e0a\uff0c\u662f\u5426\u6709\u65b9\u5757\uff0ca\u6570\u7ec4\u5c31\u662f\u4e00\u4e2a\u5b9a\u4f4d\u4f5c\u7528\u3002\uff08\u4ee5\u4e0a\u4ee3\u7801\u7684xy\u5750\u6807\u90fd\u662f\u88ab\u63d0\u524d\u201c\u8bd5\u7740\u6539\u8fc7\u201d\u7684\uff0c\u5982\u679cifMove\u8fd4\u56de0\uff0c\u90fd\u4f1a\u8fdb\u884c\u8fd8\u539f\uff09\u3002<\/p>\n

\u4e3a\u4e86\u65b9\u4fbf\u7406\u89e3\uff0c\u7528flag1 \u4f5c\u4e3a\u4f8b\u5b50\uff1a<\/p>\n

\"\u5236\u4f5c\u4fc4\u7f57\u65af\u65b9\u5757\u6e38\u620f\u7684\u6b65\u9aa4_\u4fc4\u7f57\u65af\u65b9\u5757\u600e\u4e48\u505a\u624b\u5de5<\/p>\n

void<\/span> Del_Fullline<\/span>(<\/span>struct<\/span> Tetris*<\/span>tetris)<\/span>;<\/span> void<\/span> Del_Fullline<\/span>(<\/span>struct<\/span> Tetris*<\/span>tetris)<\/span> { \n   <\/span> int<\/span> k,<\/span>del_rows=<\/span>0<\/span>;<\/span> for<\/span>(<\/span>j=<\/span>FrameY+<\/span>Frame_height-<\/span>1<\/span>;<\/span>j>=<\/span>FrameY+<\/span>1<\/span>;<\/span>j--<\/span>)<\/span>\/\/\u5b9a\u4f4d\u4e8e\u4e0b\u8fb9\u6846\u81f3\u4e0a\u8fb9\u6846<\/span> { \n   <\/span> k=<\/span>0<\/span>;<\/span> for<\/span>(<\/span>i=<\/span>FrameX+<\/span>2<\/span>;<\/span>i<<\/span>FrameX+<\/span>2<\/span>*<\/span>Frame_width-<\/span>2<\/span>;<\/span>i+<\/span>=<\/span>2<\/span>)<\/span>\/\/\u5b9a\u4f4d\u4e8e\u5de6\u8fb9\u6846\u81f3\u53f3\u8fb9\u6846<\/span> { \n   <\/span> if<\/span>(<\/span>a[<\/span>i]<\/span>[<\/span>j]<\/span>==<\/span>1<\/span>)<\/span> { \n   <\/span> k++<\/span>;<\/span> if<\/span>(<\/span>k==<\/span>Frame_width-<\/span>2<\/span>)<\/span>\/\/\u5982\u679c\u6ee1\u884c<\/span> { \n   <\/span> for<\/span>(<\/span>k=<\/span>FrameX+<\/span>2<\/span>;<\/span>k<<\/span>FrameX+<\/span>2<\/span>*<\/span>Frame_width-<\/span>2<\/span>;<\/span>k+<\/span>=<\/span>2<\/span>)<\/span>\/\/\u8fdb\u884c\u6e05\u884c\u64cd\u4f5c<\/span> { \n   <\/span> a[<\/span>k]<\/span>[<\/span>j]<\/span>=<\/span>0<\/span>;<\/span> gotoxy<\/span>(<\/span>k,<\/span>j)<\/span>;<\/span> printf<\/span>(<\/span>\" \"<\/span>)<\/span>;<\/span> }<\/span> for<\/span>(<\/span>k=<\/span>j-<\/span>1<\/span>;<\/span>k><\/span>FrameY;<\/span>k--<\/span>)<\/span>\/\/\u6e05\u5b8c\u4e00\u884c\uff0c\u88ab\u6e05\u884c\u4e0a\u9762\u4e00\u884c\u6216N\u884c\u9700\u8981\u96c6\u4f53\u843d\u4e0b<\/span> { \n   <\/span> for<\/span>(<\/span>i=<\/span>FrameX+<\/span>2<\/span>;<\/span>i<<\/span>FrameX+<\/span>2<\/span>*<\/span>Frame_width-<\/span>2<\/span>;<\/span>i+<\/span>=<\/span>2<\/span>)<\/span> { \n   <\/span> if<\/span>(<\/span>a[<\/span>i]<\/span>[<\/span>k]<\/span>==<\/span>1<\/span>)<\/span> { \n   <\/span> a[<\/span>i]<\/span>[<\/span>k]<\/span>=<\/span>0<\/span>;<\/span> gotoxy<\/span>(<\/span>i,<\/span>k)<\/span>;<\/span> printf<\/span>(<\/span>\" \"<\/span>)<\/span>;<\/span> a[<\/span>i]<\/span>[<\/span>k+<\/span>1<\/span>]<\/span>=<\/span>1<\/span>;<\/span> gotoxy<\/span>(<\/span>i,<\/span>k+<\/span>1<\/span>)<\/span>;<\/span> printf<\/span>(<\/span>\"\u2587\"<\/span>)<\/span>;<\/span> }<\/span> }<\/span> }<\/span> j++<\/span>;<\/span> del_rows++<\/span>;<\/span>\/\/\u7528\u6765\u8ba1\u7b97\u5206\u6570<\/span> }<\/span> }<\/span> }<\/span> }<\/span> score+<\/span>=<\/span>100<\/span>*<\/span>del_rows;<\/span>\/\/\u6bcf\u6e05\u4e00\u884c\uff0c\u52a0100\u5206<\/span> if<\/span>(<\/span>del_rows><\/span>0<\/span>&&<\/span>(<\/span>score%<\/span>1000<\/span>==<\/span>0<\/span>||<\/span>score\/<\/span>1000<\/span>><\/span>level-<\/span>1<\/span>)<\/span>)<\/span> { \n   <\/span> speed-<\/span>=<\/span>30<\/span>;<\/span>\/\/\u5f53\u6bcf\u6ee11000\u5206\u7684\u65f6\u5019\uff0c\u5ef6\u8fdf\u901f\u5ea6\u51cf\u5c1130\u6beb\u79d2<\/span> level++<\/span>;<\/span>\/\/\u606d\u559c\u4f60\u5347\u7ea71\u7ea7<\/span> }<\/span> }<\/span> <\/code><\/pre>\n

\u8fd9\u662f\u5224\u65ad\u662f\u5426\u6ee1\u884c\u7684\u51fd\u6570\uff0c\u4e5f\u662f\u6bcf\u4e2a\u65b9\u5757\u843d\u5b9a\u4ee5\u540e\u9700\u8981\u5224\u5b9a\u7684\uff0c\u7167\u7740\u6ce8\u91ca\u5f88\u597d\u7406\u89e3\u3002<\/p>\n

void<\/span> Regulation<\/span>(<\/span>)<\/span>;<\/span> void<\/span> explantion<\/span>(<\/span>)<\/span>;<\/span> void<\/span> Replay<\/span>(<\/span>)<\/span>;<\/span> void<\/span> welcome<\/span>(<\/span>)<\/span>;<\/span> void<\/span> title<\/span>(<\/span>)<\/span>;<\/span> void<\/span> flower<\/span>(<\/span>)<\/span>;<\/span> void<\/span> closer<\/span>(<\/span>)<\/span>;<\/span> int<\/span> color<\/span>(<\/span>)<\/span>;<\/span> void<\/span> explantion<\/span>(<\/span>)<\/span>;<\/span> <\/code><\/pre>\n

\u4ee5\u4e0a\u51e0\u4e2a\u51fd\u6570\uff0c\u51e0\u4e4e\u6ca1\u6709\u7528\u5230\u4efb\u4f55\u53c2\u6570\uff0c\u57fa\u672c\u4e0a\u90fd\u662f\u5b9a\u4f4d\u548c\u6253\u5370,\u4ee5\u4e0b\u662f\u56fe\u7247\u548c\u6e90\u4ee3\u7801\uff1a<\/p>\n

\"\u5236\u4f5c\u4fc4\u7f57\u65af\u65b9\u5757\u6e38\u620f\u7684\u6b65\u9aa4_\u4fc4\u7f57\u65af\u65b9\u5757\u600e\u4e48\u505a\u624b\u5de5\"\u5236\u4f5c\u4fc4\u7f57\u65af\u65b9\u5757\u6e38\u620f\u7684\u6b65\u9aa4_\u4fc4\u7f57\u65af\u65b9\u5757\u600e\u4e48\u505a\u624b\u5de5
\"\u5236\u4f5c\u4fc4\u7f57\u65af\u65b9\u5757\u6e38\u620f\u7684\u6b65\u9aa4_\u4fc4\u7f57\u65af\u65b9\u5757\u600e\u4e48\u505a\u624b\u5de5
\"\u5236\u4f5c\u4fc4\u7f57\u65af\u65b9\u5757\u6e38\u620f\u7684\u6b65\u9aa4_\u4fc4\u7f57\u65af\u65b9\u5757\u600e\u4e48\u505a\u624b\u5de5<\/p>\n

void<\/span> Regulation<\/span>(<\/span>)<\/span> { \n   <\/span> int<\/span> i,<\/span>j=<\/span>1<\/span>;<\/span> system<\/span>(<\/span>\"cls\"<\/span>)<\/span>;<\/span> color<\/span>(<\/span>13<\/span>)<\/span>;<\/span> gotoxy<\/span>(<\/span>34<\/span>,<\/span>3<\/span>)<\/span>;<\/span> printf<\/span>(<\/span>\"Regulation\"<\/span>)<\/span>;<\/span> color<\/span>(<\/span>2<\/span>)<\/span>;<\/span> for<\/span>(<\/span>i=<\/span>6<\/span>;<\/span>i<=<\/span>18<\/span>;<\/span>i++<\/span>)<\/span> { \n   <\/span> for<\/span>(<\/span>j=<\/span>12<\/span>;<\/span>j<=<\/span>70<\/span>;<\/span>j++<\/span>)<\/span> { \n   <\/span> gotoxy<\/span>(<\/span>j,<\/span>i)<\/span>;<\/span> if<\/span>(<\/span>i==<\/span>6<\/span>||<\/span>i==<\/span>18<\/span>)<\/span> printf<\/span>(<\/span>\"=\"<\/span>)<\/span>;<\/span> else<\/span> if<\/span>(<\/span>j==<\/span>12<\/span>||<\/span>j==<\/span>69<\/span>)<\/span> printf<\/span>(<\/span>\"=\"<\/span>)<\/span>;<\/span> }<\/span> }<\/span> color<\/span>(<\/span>12<\/span>)<\/span>;<\/span> gotoxy<\/span>(<\/span>16<\/span>,<\/span>7<\/span>)<\/span>;<\/span> printf<\/span>(<\/span>\"tip1:\u4e0d\u540c\u5f62\u72b6\u7684\u5c0f\u65b9\u5757\u4ece\u5c4f\u5e55\u4e0a\u65b9\u843d\u4e0b\uff0c\u73a9\u5bb6\u901a\u8fc7\u8c03\u6574\"<\/span>)<\/span>;<\/span> gotoxy<\/span>(<\/span>22<\/span>,<\/span>9<\/span>)<\/span>;<\/span> printf<\/span>(<\/span>\"\u65b9\u5757\u7684\u4f4d\u7f6e\u548c\u65b9\u5411\uff0c\u4f7f\u4ed6\u4eec\u5728\u5c4f\u5e55\u62fc\u51fa\u5b8c\u6574\u7684\"<\/span>)<\/span>;<\/span> gotoxy<\/span>(<\/span>22<\/span>,<\/span>11<\/span>)<\/span>;<\/span> printf<\/span>(<\/span>\"\u4e00\u6761\u6216\u8005\u51e0\u6761\"<\/span>)<\/span>;<\/span> color<\/span>(<\/span>14<\/span>)<\/span>;<\/span> gotoxy<\/span>(<\/span>16<\/span>,<\/span>13<\/span>)<\/span>;<\/span> printf<\/span>(<\/span>\"tip2\uff1a\u6bcf\u6d88\u9664\u4e00\u884c\uff0c\u79ef\u5206\u6da8100\"<\/span>)<\/span>;<\/span> color<\/span>(<\/span>11<\/span>)<\/span>;<\/span> gotoxy<\/span>(<\/span>16<\/span>,<\/span>15<\/span>)<\/span>;<\/span> printf<\/span>(<\/span>\"tip3\uff1a\u6bcf\u7d2f\u8ba11000\u5206\uff0c\u4f1a\u63d0\u5347\u4e00\u4e2a\u7b49\u7ea7\"<\/span>)<\/span>;<\/span> color<\/span>(<\/span>10<\/span>)<\/span>;<\/span> gotoxy<\/span>(<\/span>16<\/span>,<\/span>17<\/span>)<\/span>;<\/span> printf<\/span>(<\/span>\"tip4\uff1a\u63d0\u5347\u7b49\u7ea7\u4f1a\u4f7f\u65b9\u5757\u4e0b\u843d\u901f\u5ea6\u52a0\u5feb\uff0c\u6e38\u620f\u96be\u5ea6\u52a0\u5927\"<\/span>)<\/span>;<\/span> getch<\/span>(<\/span>)<\/span>;<\/span> system<\/span>(<\/span>\"cls\"<\/span>)<\/span>;<\/span> welcome<\/span>(<\/span>)<\/span>;<\/span> }<\/span> <\/code><\/pre>\n
void<\/span> explantion<\/span>(<\/span>)<\/span> { \n   <\/span> int<\/span> i,<\/span>j=<\/span>1<\/span>;<\/span> system<\/span>(<\/span>\"cls\"<\/span>)<\/span>;<\/span> color<\/span>(<\/span>13<\/span>)<\/span>;<\/span> gotoxy<\/span>(<\/span>32<\/span>,<\/span>3<\/span>)<\/span>;<\/span> printf<\/span>(<\/span>\"explanation\"<\/span>)<\/span>;<\/span> color<\/span>(<\/span>2<\/span>)<\/span>;<\/span> for<\/span>(<\/span>i=<\/span>6<\/span>;<\/span>i<=<\/span>16<\/span>;<\/span>i++<\/span>)<\/span> { \n   <\/span> for<\/span>(<\/span>j=<\/span>15<\/span>;<\/span>j<=<\/span>60<\/span>;<\/span>j++<\/span>)<\/span> { \n   <\/span> gotoxy<\/span>(<\/span>j,<\/span>i)<\/span>;<\/span> if<\/span>(<\/span>i==<\/span>6<\/span>||<\/span>i==<\/span>16<\/span>)<\/span> printf<\/span>(<\/span>\"=\"<\/span>)<\/span>;<\/span> else<\/span> if<\/span>(<\/span>j==<\/span>15<\/span>||<\/span>j==<\/span>59<\/span>)<\/span> printf<\/span>(<\/span>\"||\"<\/span>)<\/span>;<\/span> }<\/span> }<\/span> color<\/span>(<\/span>3<\/span>)<\/span>;<\/span> gotoxy<\/span>(<\/span>18<\/span>,<\/span>7<\/span>)<\/span>;<\/span> printf<\/span>(<\/span>\"tip1:\u73a9\u5bb6\u53ef\u4ee5\u901a\u8fc7\u65b9\u5411\u952e\u6765\u79fb\u52a8\u65b9\u5757\"<\/span>)<\/span>;<\/span> color<\/span>(<\/span>10<\/span>)<\/span>;<\/span> gotoxy<\/span>(<\/span>18<\/span>,<\/span>9<\/span>)<\/span>;<\/span> printf<\/span>(<\/span>\"tip2:\u901a\u8fc7\u5411\u4e0a\u952e\u65cb\u8f6c\u65b9\u5757\"<\/span>)<\/span>;<\/span> color<\/span>(<\/span>14<\/span>)<\/span>;<\/span> gotoxy<\/span>(<\/span>18<\/span>,<\/span>11<\/span>)<\/span>;<\/span> printf<\/span>(<\/span>\"tip3:\u901a\u8fc7\u5411\u4e0b\u952e\u52a0\u901f\u65b9\u5757\u4e0b\u843d\"<\/span>)<\/span>;<\/span> color<\/span>(<\/span>11<\/span>)<\/span>;<\/span> gotoxy<\/span>(<\/span>18<\/span>,<\/span>13<\/span>)<\/span>;<\/span> printf<\/span>(<\/span>\"tip4:\u6309\u7a7a\u683c\u952e\u6682\u505c\u6e38\u620f\"<\/span>)<\/span>;<\/span> color<\/span>(<\/span>4<\/span>)<\/span>;<\/span> gotoxy<\/span>(<\/span>18<\/span>,<\/span>15<\/span>)<\/span>;<\/span> printf<\/span>(<\/span>\"tip5:\u6309ESC\u952e\u9000\u51fa\u6e38\u620f\"<\/span>)<\/span>;<\/span> getch<\/span>(<\/span>)<\/span>;<\/span> system<\/span>(<\/span>\"cls\"<\/span>)<\/span>;<\/span> main<\/span>(<\/span>)<\/span>;<\/span> }<\/span> <\/code><\/pre>\n
void<\/span> Replay<\/span>(<\/span>)<\/span> { \n   <\/span> system<\/span>(<\/span>\"cls\"<\/span>)<\/span>;<\/span> memset<\/span>(<\/span>a,<\/span>0<\/span>,<\/span>6400<\/span>*<\/span>sizeof<\/span>(<\/span>int<\/span>)<\/span>)<\/span>;<\/span> DrawGameframe<\/span>(<\/span>)<\/span>;<\/span> Gameplay<\/span>(<\/span>)<\/span>;<\/span> }<\/span> <\/code><\/pre>\n
void<\/span> welcome<\/span>(<\/span>)<\/span> { \n   <\/span> int<\/span> n;<\/span> int<\/span> i,<\/span>j=<\/span>1<\/span>;<\/span> color<\/span>(<\/span>14<\/span>)<\/span>;<\/span> for<\/span>(<\/span>i=<\/span>9<\/span>;<\/span>i<=<\/span>20<\/span>;<\/span>i++<\/span>)<\/span> { \n   <\/span> for<\/span>(<\/span>j=<\/span>15<\/span>;<\/span>j<=<\/span>60<\/span>;<\/span>j++<\/span>)<\/span> { \n   <\/span> gotoxy<\/span>(<\/span>j,<\/span>i)<\/span>;<\/span> if<\/span>(<\/span>i==<\/span>9<\/span>||<\/span>i==<\/span>20<\/span>)<\/span> printf<\/span>(<\/span>\"=\"<\/span>)<\/span>;<\/span> else<\/span> if<\/span>(<\/span>j==<\/span>15<\/span>||<\/span>j==<\/span>59<\/span>)<\/span> printf<\/span>(<\/span>\"||\"<\/span>)<\/span>;<\/span> }<\/span> }<\/span> color<\/span>(<\/span>12<\/span>)<\/span>;<\/span> gotoxy<\/span>(<\/span>25<\/span>,<\/span>12<\/span>)<\/span>;<\/span> printf<\/span>(<\/span>\"1.\u5f00\u59cb\u6e38\u620f\"<\/span>)<\/span>;<\/span> gotoxy<\/span>(<\/span>40<\/span>,<\/span>12<\/span>)<\/span>;<\/span> printf<\/span>(<\/span>\"2.\u6309\u952e\u8bf4\u660e\"<\/span>)<\/span>;<\/span> gotoxy<\/span>(<\/span>25<\/span>,<\/span>17<\/span>)<\/span>;<\/span> printf<\/span>(<\/span>\"3.\u6e38\u620f\u89c4\u5219\"<\/span>)<\/span>;<\/span> gotoxy<\/span>(<\/span>40<\/span>,<\/span>17<\/span>)<\/span>;<\/span> printf<\/span>(<\/span>\"4.\u9000\u51fa\"<\/span>)<\/span>;<\/span> gotoxy<\/span>(<\/span>21<\/span>,<\/span>22<\/span>)<\/span>;<\/span> color<\/span>(<\/span>3<\/span>)<\/span>;<\/span> printf<\/span>(<\/span>\"\u8bf7\u9009\u62e9\u30101 2 3 4\u3011\uff1a[ ]\\b\\b\"<\/span>)<\/span>;<\/span> color<\/span>(<\/span>14<\/span>)<\/span>;<\/span> scanf<\/span>(<\/span>\"%d\"<\/span>,<\/span>&<\/span>n)<\/span>;<\/span> switch<\/span>(<\/span>n)<\/span> { \n   <\/span> case<\/span> 1<\/span>:<\/span> system<\/span>(<\/span>\"cls\"<\/span>)<\/span>;<\/span> DrawGameframe<\/span>(<\/span>)<\/span>;<\/span> Gameplay<\/span>(<\/span>)<\/span>;<\/span> break<\/span>;<\/span> case<\/span> 2<\/span>:<\/span> explantion<\/span>(<\/span>)<\/span>;<\/span> break<\/span>;<\/span> case<\/span> 3<\/span>:<\/span> Regulation<\/span>(<\/span>)<\/span>;<\/span> break<\/span>;<\/span> case<\/span> 4<\/span>:<\/span> closer<\/span>(<\/span>)<\/span>;<\/span> break<\/span>;<\/span> }<\/span> }<\/span> <\/code><\/pre>\n
void<\/span> title<\/span>(<\/span>)<\/span> { \n   <\/span> color<\/span>(<\/span>15<\/span>)<\/span>;<\/span> gotoxy<\/span>(<\/span>28<\/span>,<\/span>3<\/span>)<\/span>;<\/span> printf<\/span>(<\/span>\"\u4fc4 \u7f57 \u65af \u65b9 \u5757\\n\"<\/span>)<\/span>;<\/span> color<\/span>(<\/span>11<\/span>)<\/span>;<\/span> gotoxy<\/span>(<\/span>18<\/span>,<\/span>5<\/span>)<\/span>;<\/span> printf<\/span>(<\/span>\"\u2587\"<\/span>)<\/span>;<\/span> gotoxy<\/span>(<\/span>18<\/span>,<\/span>6<\/span>)<\/span>;<\/span> printf<\/span>(<\/span>\"\u2587\u2587\"<\/span>)<\/span>;<\/span> gotoxy<\/span>(<\/span>18<\/span>,<\/span>7<\/span>)<\/span>;<\/span> printf<\/span>(<\/span>\"\u2587\"<\/span>)<\/span>;<\/span> color<\/span>(<\/span>14<\/span>)<\/span>;<\/span> gotoxy<\/span>(<\/span>26<\/span>,<\/span>6<\/span>)<\/span>;<\/span> printf<\/span>(<\/span>\"\u2587\u2587\"<\/span>)<\/span>;<\/span> gotoxy<\/span>(<\/span>28<\/span>,<\/span>7<\/span>)<\/span>;<\/span> printf<\/span>(<\/span>\"\u2587\u2587\"<\/span>)<\/span>;<\/span> color<\/span>(<\/span>10<\/span>)<\/span>;<\/span> gotoxy<\/span>(<\/span>36<\/span>,<\/span>6<\/span>)<\/span>;<\/span> printf<\/span>(<\/span>\"\u2587\u2587\"<\/span>)<\/span>;<\/span> gotoxy<\/span>(<\/span>36<\/span>,<\/span>7<\/span>)<\/span>;<\/span> printf<\/span>(<\/span>\"\u2587\u2587\"<\/span>)<\/span>;<\/span> color<\/span>(<\/span>13<\/span>)<\/span>;<\/span> gotoxy<\/span>(<\/span>45<\/span>,<\/span>5<\/span>)<\/span>;<\/span> printf<\/span>(<\/span>\"\u2587\"<\/span>)<\/span>;<\/span> gotoxy<\/span>(<\/span>45<\/span>,<\/span>6<\/span>)<\/span>;<\/span> printf<\/span>(<\/span>\"\u2587\"<\/span>)<\/span>;<\/span> gotoxy<\/span>(<\/span>45<\/span>,<\/span>7<\/span>)<\/span>;<\/span> printf<\/span>(<\/span>\"\u2587\"<\/span>)<\/span>;<\/span> gotoxy<\/span>(<\/span>45<\/span>,<\/span>8<\/span>)<\/span>;<\/span> printf<\/span>(<\/span>\"\u2587\"<\/span>)<\/span>;<\/span> color<\/span>(<\/span>12<\/span>)<\/span>;<\/span> gotoxy<\/span>(<\/span>56<\/span>,<\/span>6<\/span>)<\/span>;<\/span> printf<\/span>(<\/span>\"\u2587\"<\/span>)<\/span>;<\/span> gotoxy<\/span>(<\/span>52<\/span>,<\/span>7<\/span>)<\/span>;<\/span> printf<\/span>(<\/span>\"\u2587\u2587\u2587\"<\/span>)<\/span>;<\/span> }<\/span> <\/code><\/pre>\n
void<\/span> flower<\/span>(<\/span>)<\/span> { \n   <\/span> gotoxy<\/span>(<\/span>66<\/span>,<\/span>11<\/span>)<\/span>;<\/span> color<\/span>(<\/span>12<\/span>)<\/span>;<\/span> printf<\/span>(<\/span>\"(_)\"<\/span>)<\/span>;<\/span> gotoxy<\/span>(<\/span>64<\/span>,<\/span>12<\/span>)<\/span>;<\/span> printf<\/span>(<\/span>\"(_)\"<\/span>)<\/span>;<\/span> gotoxy<\/span>(<\/span>68<\/span>,<\/span>12<\/span>)<\/span>;<\/span> printf<\/span>(<\/span>\"(_)\"<\/span>)<\/span>;<\/span> gotoxy<\/span>(<\/span>66<\/span>,<\/span>13<\/span>)<\/span>;<\/span> printf<\/span>(<\/span>\"(_)\"<\/span>)<\/span>;<\/span> gotoxy<\/span>(<\/span>67<\/span>,<\/span>12<\/span>)<\/span>;<\/span> color<\/span>(<\/span>6<\/span>)<\/span>;<\/span> printf<\/span>(<\/span>\"@\"<\/span>)<\/span>;<\/span> gotoxy<\/span>(<\/span>72<\/span>,<\/span>10<\/span>)<\/span>;<\/span> color<\/span>(<\/span>13<\/span>)<\/span>;<\/span> printf<\/span>(<\/span>\"(_)\"<\/span>)<\/span>;<\/span> gotoxy<\/span>(<\/span>76<\/span>,<\/span>10<\/span>)<\/span>;<\/span> printf<\/span>(<\/span>\"(_)\"<\/span>)<\/span>;<\/span> gotoxy<\/span>(<\/span>74<\/span>,<\/span>9<\/span>)<\/span>;<\/span> printf<\/span>(<\/span>\"(_)\"<\/span>)<\/span>;<\/span> gotoxy<\/span>(<\/span>74<\/span>,<\/span>11<\/span>)<\/span>;<\/span> printf<\/span>(<\/span>\"(_)\"<\/span>)<\/span>;<\/span> gotoxy<\/span>(<\/span>75<\/span>,<\/span>10<\/span>)<\/span>;<\/span> color<\/span>(<\/span>6<\/span>)<\/span>;<\/span> printf<\/span>(<\/span>\"@\"<\/span>)<\/span>;<\/span> gotoxy<\/span>(<\/span>71<\/span>,<\/span>12<\/span>)<\/span>;<\/span> printf<\/span>(<\/span>\"|\"<\/span>)<\/span>;<\/span> gotoxy<\/span>(<\/span>72<\/span>,<\/span>11<\/span>)<\/span>;<\/span> printf<\/span>(<\/span>\"\/\"<\/span>)<\/span>;<\/span> gotoxy<\/span>(<\/span>70<\/span>,<\/span>13<\/span>)<\/span>;<\/span> printf<\/span>(<\/span>\"\\\\|\"<\/span>)<\/span>;<\/span> gotoxy<\/span>(<\/span>70<\/span>,<\/span>14<\/span>)<\/span>;<\/span> printf<\/span>(<\/span>\"^|\/\"<\/span>)<\/span>;<\/span> gotoxy<\/span>(<\/span>70<\/span>,<\/span>15<\/span>)<\/span>;<\/span> printf<\/span>(<\/span>\"\\\\|\"<\/span>)<\/span>;<\/span> gotoxy<\/span>(<\/span>71<\/span>,<\/span>16<\/span>)<\/span>;<\/span> printf<\/span>(<\/span>\"|\/\"<\/span>)<\/span>;<\/span> gotoxy<\/span>(<\/span>71<\/span>,<\/span>17<\/span>)<\/span>;<\/span> printf<\/span>(<\/span>\"|\"<\/span>)<\/span>;<\/span> gotoxy<\/span>(<\/span>67<\/span>,<\/span>17<\/span>)<\/span>;<\/span> color<\/span>(<\/span>10<\/span>)<\/span>;<\/span> printf<\/span>(<\/span>\"\\\\\\\\\\\\\\\\\"<\/span>)<\/span>;<\/span> gotoxy<\/span>(<\/span>73<\/span>,<\/span>17<\/span>)<\/span>;<\/span> printf<\/span>(<\/span>\"\/\/\"<\/span>)<\/span>;<\/span> gotoxy<\/span>(<\/span>67<\/span>,<\/span>18<\/span>)<\/span>;<\/span> color<\/span>(<\/span>2<\/span>)<\/span>;<\/span> printf<\/span>(<\/span>\"^^^^^^^^\"<\/span>)<\/span>;<\/span> }<\/span> <\/code><\/pre>\n
void<\/span> closer<\/span>(<\/span>)<\/span> { \n   <\/span> exit<\/span>(<\/span>0<\/span>)<\/span>;<\/span> }<\/span> <\/code><\/pre>\n
int<\/span> color<\/span>(<\/span>int<\/span> c)<\/span> { \n   <\/span> SetConsoleTextAttribute<\/span>(<\/span>GetStdHandle<\/span>(<\/span>STD_OUTPUT_HANDLE)<\/span>,<\/span>c)<\/span>;<\/span> return<\/span> 0<\/span>;<\/span> }<\/span> <\/code><\/pre>\n

\u7b2c\u4e09\u90e8\u5206\u662f\u6700\u5173\u952e\u7684 CreateFlag\u548cGameplay\u51fd\u6570<\/p>\n","protected":false},"excerpt":{"rendered":"\u5236\u4f5c\u4fc4\u7f57\u65af\u65b9\u5757\u6e38\u620f\u7684\u6b65\u9aa4_\u4fc4\u7f57\u65af\u65b9\u5757\u600e\u4e48\u505a\u624b\u5de5\u4e0a\u63a5Maketetris\u7ee7\u7eed\uff1a\u5728Maketetris\u91cc\uff0c\u4e00\u5171\u670919\u4e2acase\uff0c\u7b2c\u4e00\u4e2acase\u662f\u7530\u5b57\u683c\u7684...","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"_links":{"self":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/posts\/6187"}],"collection":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/comments?post=6187"}],"version-history":[{"count":0,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/posts\/6187\/revisions"}],"wp:attachment":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/media?parent=6187"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/categories?post=6187"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/tags?post=6187"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}