예제 #1
0
파일: Game.cs 프로젝트: andyprowl/xword
        private Challenge PlaceHostSentenceInBoard(HostSentence sentence, int minLegLength, int maxLegLength)
        {
            this.board.Clear(true);

            var positionsInBoard = PlaceText(sentence.ObfuscatedSentence, minLegLength, maxLegLength);

            this.currentChallenge = new Challenge(sentence, positionsInBoard);

            return(this.currentChallenge.Value);
        }
예제 #2
0
 public Challenge(HostSentence hostSentence, List <Position> solution)
 {
     this.hostSentence = hostSentence;
     this.solution     = solution;
 }