I get the impression that you can't test without Graphical User Interface for reading FEN's is for martyrs.
O wait you can print it in ascii form to the console in a readable format
Can't test values of chess positions without GUI
Moderator: Ras
-
- Posts: 7251
- Joined: Mon May 27, 2013 10:31 am
-
- Posts: 7251
- Joined: Mon May 27, 2013 10:31 am
Re: Can't test values of chess positions without GUI
I mean. This is insane:
Code: Select all
[Theory]
[InlineData("8/8/8/3k4/Q7/4K3/8/8 b - - 0 1", "8/8/8/3k4/Q7/8/5K2/8 b - - 0 60")]
public void CompareTwoPositionsLessThan(string fen_1, string fen_2)
{
var val_1 = Evaluate(fen_1);
var val_2 = Evaluate(fen_2);
Assert.True(val_1 < val_2);
}
-
- Posts: 1062
- Joined: Tue Apr 28, 2020 10:03 pm
- Full name: Daniel Infuehr
Re: Can't test values of chess positions without GUI
you dont need to write your own printing code:
c++ system call via system("string")
c++ system call via system("string")
Code: Select all
gnuchess -q <<< "show board"
Worlds-fastest-Bitboard-Chess-Movegenerator
Daniel Inführ - Software Developer
Daniel Inführ - Software Developer
-
- Posts: 7251
- Joined: Mon May 27, 2013 10:31 am
Re: Can't test values of chess positions without GUI
Creating a web GUI for chess positions much more work in blazor webassembly than in ASP.NET MVC.
In ASP.NET MVC much more code generated. In Blazor you all have to type/invent it yourself or not. O wait webapi controller code is generated partly. Still don't like webapi. Have to start up two processes Blazor GUI + webapi each time.
Inconvenient. Better develop using WPF. But can't run that everywhere or not.
In ASP.NET MVC much more code generated. In Blazor you all have to type/invent it yourself or not. O wait webapi controller code is generated partly. Still don't like webapi. Have to start up two processes Blazor GUI + webapi each time.
Inconvenient. Better develop using WPF. But can't run that everywhere or not.