Maze generation: Difference between revisions

→‎{{header|C sharp|C#}}: For me it did not work before I added HasFlag to extensions
m (→‎Quality Breadth-First: Correct lang tag.)
(→‎{{header|C sharp|C#}}: For me it did not work before I added HasFlag to extensions)
Line 1,293:
{
return (CellState)(((int) orig >> 2) | ((int) orig << 2)) & CellState.Initial;
}
 
public static bool HasFlag(this CellState cs,CellState flag)
{
return ((int)cs & (int)flag) != 0;
}
}
Anonymous user