Dooz.py 文件源码

python
阅读 18 收藏 0 点赞 0 评论 0

项目:persianDooz 作者: FONQRI 项目源码 文件源码
def TwoPlayerMood():

    global turn


    c = board()
    def on_closing():
        if messagebox.askokcancel("Quit", "Do you want to quit?"):
            board.root.destroy()
            sys.exit()

    board.root.protocol("WM_DELETE_WINDOW", on_closing)
    def make():
        global v
        v = Taw(turn,c)
    make()
    def right(event):
        v.moveRight()

    c.root.bind('<KeyPress-Right>',right)

    def left(event):
        v.moveLeft()

    c.root.bind('<KeyPress-Left>',left)
    def down(event):
        if v.row==0:
            v.moveDown()
            if v.done == 1:
                v.done= 0
                make()
        else :
            pass
    c.root.bind('<KeyPress-Down>',down)

#************************artificial intelligence*************************************************************
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号