Exemplo n.º 1
0
        public int Lookahead1()
        {
            var clonedField = state.Field.Clone();

            clonedField.Simulate();
            return(BestMove.EvaluatePosition(state, clonedField));
        }
Exemplo n.º 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));
        }
Exemplo n.º 3
0
 public int Eval()
 {
     return(BestMove.EvaluatePosition(state, state.Field));
 }