public override bool CanPlay(Player p) { SpiralCoordEnumerator enumerator = new SpiralCoordEnumerator(8,1); while(enumerator.MoveNext()) { var coord = enumerator.Current; if (CanPlayThere(p, coord.x, coord.y)) { return true; } } return false; }
public override bool CanPlay(Player p) { SpiralCoordEnumerator enumerator = new SpiralCoordEnumerator(8, 1); while (enumerator.MoveNext()) { var coord = enumerator.Current; if (CanPlayThere(p, coord.x, coord.y)) { return(true); } } return(false); }