海战游戏
代码说明:
电脑和玩家各自在一个10*10的阵内放置不同长度的军舰,可选择横竖,电脑随机摆放,玩家手动输入,然后轮流选择矩阵中的点,猜中的话可以用类似*代替,直到一方的军舰被全部搜到为止,电脑的选择应根据之前的已选点,比如猜中一个点后,以这个点为中心向四周猜,连续猜中的话继续顺着这个方向,直到显示未猜中(The computer and the player separate the warship of different lengths in a 10*10 array. The computer can choose the vertical, the computer random set, the player manually input, and then choose the point in the matrix. If you guess, it can be replaced by a similar * until the warship of one side is all searched, the choice of the electroencephalon should be based on the selected points before. For example, if you guess a point, take this point as a center, guess it in a four week way, and continue to guess in the direction, until it shows that it has not been guessed.)
下载说明:请别用迅雷下载,失败请重下,重下不扣分!