RunicBoard.EverythingIsConnectedToCenter C# (CSharp) Method

EverythingIsConnectedToCenter() public method

Check if every runes placed on the board are correctly connected to the center
public EverythingIsConnectedToCenter ( Rune>.Dictionary &board ) : bool
board Rune>.Dictionary The board to test
return bool
    public bool EverythingIsConnectedToCenter(ref Dictionary<int, Rune> board)
    {
        bool isConnected = true;
        foreach(KeyValuePair<int, Rune> kvp in board)
        {
            List<int> explored = new List<int>();
            isConnected = IsConnectedToCenter(kvp.Key, ref explored, ref board);
            Logger.Debug(kvp.Key + " connected ? " + isConnected);
            if (!isConnected)
                return false;
        }
        return isConnected;
    }