我还不熟悉面向对象编程和编写紧凑的代码,所以我可能忽略了一些东西,我试图想出一种方法来检查tic tic中的垂直赢和对角线赢,我已经有水平的了。
#creates the gameboard that stores if spaces are open or not#0 = open space#2 = X
def find_winner():
我做了下面的课程,以实现游戏的“绘图”,并在其中播放声音。在执行时,我会得到以下错误: at sun.applet.AppletAudioClip.<init>(AppletAudioClip.java:65) at AllPanels.Sound.<init>(Sound.java:20)
at AllPanels.Sound.<clinit>(Sound.ja