搜索资源列表
vc34881212477
- 听说过‘三子棋’游戏吗?该程序是单机版的‘三子棋’游戏。规则很简单:下子阶段,组成’三‘时,可把对方的子变为无效子(下完后该子会被去掉)。行棋阶段,组成“三”时,可把对方的子直接去掉。谁最先无子谁就输。-heard 'three-game' game? The program is stand-alone version of the 'three-game' game. Very simple rules : Now phase, composed of 'three', the other
Five222
- 五子棋/// /// /// /// /// /// ///// // CFiveDoc diagnostics #ifdef _DEBUG void CFiveDoc::AssertValid() const { CDocument::AssertValid() } void CFiveDoc::Dump(CDumpContext& dc) const { CDocument::Dump(dc) } #endif //_DEBUG
chess
- 这个游戏很简单,只需要自定义5个小函数来实现,可以加深对数组的理解。它包含有3个头文件。 check (void) 是用来判断是否获胜, init_matrix(void) 是用来初始化每个单元, get_player_move() 是用来实现自己下棋, get_computer_move() 是用来实现电脑下棋, 而 disp_matrix() 是用来完成显示的功能 -This game is very simple, only needs