▍1. 五子棋游戏
说明: 在一个方阵上通过两人对弈的形式,依次在棋盘上放置两种颜色的棋子,哪一方先让五个棋子形成一条直线(包括横、竖、对角线3个方向),即为获胜,本程序实现用键盘控制的五子棋游戏。游戏初始运行界面应为如下:(In the form of two people playing chess in a square array, place two kinds of color pieces on the chessboard in turn. Which side first makes five pieces form a straight line (including three directions of horizontal, vertical and diagonal), that is to win. This program realizes the game of five pieces controlled by keyboard. The initial operation interface of the game shall be as follows:)