public void Push(PokerPlayer player) { if (!Turn.Contains(player)) { Turn.Add(player); } }
public static Turn StringToTurn( string str) { //TODO... // Debug.Log("Turn: string recieved: "+str); Turn ret = new Turn(); string[] splitStr = str.Split(';'); foreach( string s in splitStr){ ret.Add(Order.StringToOrder(s)); } return ret; }
private List<Turn> FindAllMovesOnBoard(GameState state) { List<Turn> ret = new List<Turn>(); // for (int i=0;i<Stats.fieldSize*Stats.fieldSize;i++){ for (int i=0;i<3*3;i++){ Turn tmpTurn = new Turn(); Order tmpOrder = new Order(); tmpOrder.endTurn = true; tmpOrder.skill = SkillType.place; tmpOrder.position = new FieldIndex(3+i%3,3+i/3); //3x3 area in the center tmpTurn.Add(tmpOrder); ret.Add(tmpTurn); } // Order tmpo = new Order(); // tmpo.position = new FieldIndex(3,3); // tmpo.skill = SkillType.place; // Turn tmpt = new Turn(); // tmpt.Add(tmpo); // ret.Add(tmpt); return ret; }