before remove validation board
This commit is contained in:
@@ -7,7 +7,7 @@ namespace Benchmarking
|
||||
{
|
||||
public class Benchmarks
|
||||
{
|
||||
private Move[] moves;
|
||||
private readonly Move[] moves;
|
||||
|
||||
public Benchmarks()
|
||||
{
|
||||
@@ -37,7 +37,7 @@ namespace Benchmarking
|
||||
}
|
||||
|
||||
[Benchmark]
|
||||
public void OnlyValidMoves_NewBoard()
|
||||
public void One()
|
||||
{
|
||||
var board = new ShogiBoard();
|
||||
foreach (var move in moves)
|
||||
@@ -45,6 +45,17 @@ namespace Benchmarking
|
||||
board.TryMove(move);
|
||||
}
|
||||
}
|
||||
|
||||
[Benchmark]
|
||||
public void Two()
|
||||
{
|
||||
var board = new ShogiBoard();
|
||||
foreach (var move in moves)
|
||||
{
|
||||
//board.TryMove2(move);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public class Program
|
||||
|
||||
Reference in New Issue
Block a user