Is there a reason why this .all? isn't working right?

前端 未结 0 1576
面向向阳花
面向向阳花 2021-02-14 00:23
def won?
        WIN_COMBINATIONS.each do |wins|
            if wins.all?{|win_nums| @board[win_nums] = "X"}
                wins
            elsif wins.all?{|         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题