回 帖 发 新 帖 刷新版面

主题:嘿嘿,今天做位棋盘时用到的

小程序:

#include <stdio.h>
int main()

    unsigned __int64 x=1;
    for(x=1;x;x<<=4)
        printf("0x%016I64x,0x%016I64x,0x%016I64x,0x%016I64x,\n",x,x<<1,x<<2,x<<3);
    return 0;
}

0x0000000000000001,0x0000000000000002,0x0000000000000004,0x0000000000000008,
0x0000000000000010,0x0000000000000020,0x0000000000000040,0x0000000000000080,
0x0000000000000100,0x0000000000000200,0x0000000000000400,0x0000000000000800,
0x0000000000001000,0x0000000000002000,0x0000000000004000,0x0000000000008000,
0x0000000000010000,0x0000000000020000,0x0000000000040000,0x0000000000080000,
0x0000000000100000,0x0000000000200000,0x0000000000400000,0x0000000000800000,
0x0000000001000000,0x0000000002000000,0x0000000004000000,0x0000000008000000,
0x0000000010000000,0x0000000020000000,0x0000000040000000,0x0000000080000000,
0x0000000100000000,0x0000000200000000,0x0000000400000000,0x0000000800000000,
0x0000001000000000,0x0000002000000000,0x0000004000000000,0x0000008000000000,
0x0000010000000000,0x0000020000000000,0x0000040000000000,0x0000080000000000,
0x0000100000000000,0x0000200000000000,0x0000400000000000,0x0000800000000000,
0x0001000000000000,0x0002000000000000,0x0004000000000000,0x0008000000000000,
0x0010000000000000,0x0020000000000000,0x0040000000000000,0x0080000000000000,
0x0100000000000000,0x0200000000000000,0x0400000000000000,0x0800000000000000,
0x1000000000000000,0x2000000000000000,0x4000000000000000,0x8000000000000000,

漂亮吧~

回复列表 (共4个回复)

沙发

呱唧呱唧~~ 这是干啥用啊?

板凳

我觉得应该称它‘基’

3 楼

六十四维向量的基~~~拜一个先~~~
好~~~我承认每个分量只能是0或1~~~
做围棋盘?搞电脑下围棋么~~~

4 楼

围棋的还做不来,做黑白棋的,不过现在想想也不一定用位棋盘。。

今天发现黑白棋可以不用置换表,活活,搜索部分已经写完了,只差比赛控制台部分了。

我来回复

您尚未登录,请登录后再回复。点此登录或注册