public ItemInPlay(Item item, SetOfItems position) { if (MainItemInPosition(item, position)) { mainItem = item; state = position; } }
private bool MainItemInPosition(Item MainItem, SetOfItems position) { foreach (var item in position.Arrangement) { if (item.AreEqual(MainItem)) { return(true); } } return(false); }
public Position(SetOfItems state, ColourNames whoseMove) { this.state = state; this.whoseMove = new Appearance(whoseMove); }