You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
440 B

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# 1.3 创建8x8矩阵并设置成国际象棋棋盘样式
## (1). 解题思路
国际象棋棋盘每一格由黑或白构成,同时,每个格子与其相邻格子的颜色不同,通过观察,偶数行(如果从0开始计数的话)的样式与第0行相同奇数行的样式与第一行相同通过循环可以很快的构建一个描述棋盘样式的矩阵出来。
## (2). 运行结果
![](images/result.png)