C++实现井字棋
源码:#include <windows.h>#include <iostream>#include <string>using namespace std;enum players{Computer,Human,Draw,None};const int iWin[8][3]={{0,1,2}, {3,4,5},{6,7,8},{0,3,6},{1,4,7},{2,5,8},{0,4,8},{2,4,6}};class qz{ pub.
原创
2020-08-03 17:19:32 ·
1661 阅读 ·
1 评论