Before changing Piece[,] to Dictionary<string,Piece>
This commit is contained in:
@@ -10,8 +10,4 @@
|
||||
<PackageReference Include="BenchmarkDotNet" Version="0.12.1" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Gameboard.ShogiUI.Rules\Gameboard.ShogiUI.Rules.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
using BenchmarkDotNet.Attributes;
|
||||
using BenchmarkDotNet.Engines;
|
||||
using BenchmarkDotNet.Running;
|
||||
using Gameboard.ShogiUI.Rules;
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.Numerics;
|
||||
@@ -10,7 +9,6 @@ namespace Benchmarking
|
||||
{
|
||||
public class Benchmarks
|
||||
{
|
||||
private readonly Move[] moves;
|
||||
private readonly Vector2[] directions;
|
||||
private readonly Consumer consumer = new();
|
||||
|
||||
@@ -48,21 +46,11 @@ namespace Benchmarking
|
||||
//[Benchmark]
|
||||
public void One()
|
||||
{
|
||||
var board = new ShogiBoard();
|
||||
foreach (var move in moves)
|
||||
{
|
||||
board.Move(move);
|
||||
}
|
||||
}
|
||||
|
||||
//[Benchmark]
|
||||
public void Two()
|
||||
{
|
||||
var board = new ShogiBoard();
|
||||
foreach (var move in moves)
|
||||
{
|
||||
//board.TryMove2(move);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user