Before changing Piece[,] to Dictionary<string,Piece>

This commit is contained in:
2021-07-26 06:28:56 -05:00
parent f8f779e84c
commit 178cb00253
73 changed files with 1537 additions and 1418 deletions

View File

@@ -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);
}
}