示例#1
0
        public int Lookahead1()
        {
            var clonedField = state.Field.Clone();

            clonedField.Simulate();
            return(BestMove.EvaluatePosition(state, clonedField));
        }
示例#2
0
        public void BestMove_CellDifferenceCount(int w, int h, string cells, int result)
        {
            var f = new Field(w, h, cells);
            var g = new Game();

            Assert.Equal(result, BestMove.EvaluatePosition(g, f));
        }
示例#3
0
 public int Eval()
 {
     return(BestMove.EvaluatePosition(state, state.Field));
 }