码迷,mamicode.com
首页 > 其他好文 > 详细

扑克存储

时间:2015-03-18 19:54:04      阅读:120      评论:0      收藏:0      [点我收藏+]

标签:

_uint8 g_card[MAX_CARD+1] = {	0x30, 0x40, 0x50, 0x60, 0x70, 0x80, 0x90, 0xa0, 0xb0, 0xc0, 0xd0, 0xe0, 0xf0,	//方片  3-2
0x31, 0x41, 0x51, 0x61, 0x71, 0x81, 0x91, 0xa1, 0xb1, 0xc1, 0xd1, 0xe1, 		//桃花	3-A
0x32, 0x42, 0x52, 0x62, 0x72, 0x82, 0x92, 0xa2, 0xb2, 0xc2, 0xd2, 0xe2,			//红桃	3-A
0x33, 0x43, 0x53, 0x63, 0x73, 0x83, 0x93, 0xa3, 0xb3, 0xc3, 0xd3 };				//黑桃	3-A
 
_uint8 logic_card = card & 0xf0;
_uint8 color_card = card & 0x0f;

扑克存储

标签:

原文地址:http://www.cnblogs.com/kangbry/p/4347827.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!