cpu.h

来自「三子棋」· C头文件 代码 · 共 38 行

H
38
字号
/*cpu.h - header fileCopyright (C) 2006 Obada Denis (obadadenis@gmail.com)Project home page : http://tictactoegtk.sourceforge.netThis library is free software; you can redistribute it and/ormodify it under the terms of the GNU Lesser General PublicLicense as published by the Free Software Foundation; eitherversion 2.1 of the License, or (at your option) any later version.This library is distributed in the hope that it will be useful,but WITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNULesser General Public License for more details.You should have received a copy of the GNU Lesser General PublicLicense along with this library; if not, write to the Free SoftwareFoundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA*//*Description of Interface :When game need a CPU move it call cpumove() function.Variables to access of function cpumove() :grid[3][3] - array 3x3 of char, contain position of players charscpuchar - type : char, CPU player charusrchar - type : char, Player charImportant :CPU need to make ONE  move of CPU Player*/#ifndef cpu_h#define cpu_hvoid cpumove(void);#endif

⌨️ 快捷键说明

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