Huawei OD Computer-Based Unified Examination Paper C The Qi of Go (C++ Java JavaScript Python)

Huawei OD computer-based test: unified examination Paper C + Paper D + Paper B + Paper A

Directory of real test questions for paper C:[First release on the entire network] Huawei OD computer test paper C drawn question bank list (full real question bank) including test point description
Paper C, Paper D, Paper B, Paper A, real question list:Huawei OD computer-based test real question directory (Paper C + Paper D + Paper B + Paper A) + Test center description< a i=4> Column: The latest Huawei OD machine test C paper + D paper + AB paper (C++JavaJSPy)

Question description

The Go board is composed of 19 vertical and horizontal lines that intersect vertically. There are a total of 19 x 19 = 361 intersection points on the board. One of the two players holds a white chess piece, and the other side holds a black chess piece. When placing a piece, the chess pieces can only be placed on the intersection points.

"Qi" is a very important concept in Go. How many breaths a certain chess piece has refers to how many of its four adjacent intersections in the up, down, left, and right directions have no chess pieces. It can be seen from this:

  1. Pieces on the edge of the board have a maximum of 3 breaths (Black 1), pieces in the corners of the board have a maximum of 2 breaths (Black 2), and other situations have a maximum of 4 breaths (White 1)
  2. The energy of all chess pieces of the same color

Guess you like

Origin blog.csdn.net/shangyanaf/article/details/135006379