public void NewRound() { //haha! LINQ nonsense working - set starting ships this.shipLengths = this.match.StartingShips.Select(ship => ship.Length).ToArray(); cellStateMap.reset(); huntingMap.reset(); roundHitCounter = 0; roundSinkCounter = 0; historyMap.calculateAverage(); // This average persists across all rounds historyMap.calculateVariations(); //Finally, the controller creates a random number generator into the "rand" field defined //in this class. It uses the tick count of the system as a seed. rand = match.Random; rand.Next(); this.placeShips(); }