就像0到5之间有障碍的球员一样,在0-5的范围内也有类似的障碍,6-11之间的障碍也在6-11之间,依此类推。我正在尝试的是从每个射程中获取前3名球员,这样我就可以为每一轮设置飞行。when userhandicap>=0 and userhandicap<=5 then '0-5'
when userhandicap>=6 and userhandicap<=11 then '6-
我还不熟悉面向对象编程和编写紧凑的代码,所以我可能忽略了一些东西,我试图想出一种方法来检查tic tic中的垂直赢和对角线赢,我已经有水平的了。
#creates the gameboard that stores if spaces are open or not#0 = open space#2 = X
def find_winner():