before remove validation board

This commit is contained in:
2021-02-25 19:55:43 -06:00
parent f644795cd3
commit 640db4f4a2
8 changed files with 172 additions and 58 deletions

View File

@@ -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