othello.c

来自「labview经典实例」· C语言 代码 · 共 20 行

C
20
字号
// Othello.cpp : Defines the entry point for the console application.
//

#include "stdio.h"
#include "stdlib.h"
#include "CheckStatus.h"
#include "TurnOver.h"
#include "AutoPutOneChess.h"


int GetNewChessPosition(int thePositionArrary[8][8], int chessColor, 
						 int step, int *autoRow, int *autoColumn) 
{   rand();
	if ((step)<54)
		Auto_Put_Chess(thePositionArrary, chessColor, 7, autoRow, autoColumn);
	else 
		Auto_Put_Chess(thePositionArrary, chessColor, 64-(step), autoRow, autoColumn);
	return(0);
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?