Can't test values of chess positions without GUI

Discussion of chess software programming and technical issues.

Moderator: Ras

Henk
Posts: 7251
Joined: Mon May 27, 2013 10:31 am

Can't test values of chess positions without GUI

Post by Henk »

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
Henk
Posts: 7251
Joined: Mon May 27, 2013 10:31 am

Re: Can't test values of chess positions without GUI

Post by Henk »

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);
        }
 
dangi12012
Posts: 1062
Joined: Tue Apr 28, 2020 10:03 pm
Full name: Daniel Infuehr

Re: Can't test values of chess positions without GUI

Post by dangi12012 »

you dont need to write your own printing code:
c++ system call via system("string")

Code: Select all

gnuchess -q <<< "show board"
Worlds-fastest-Bitboard-Chess-Movegenerator
Daniel Inführ - Software Developer
Henk
Posts: 7251
Joined: Mon May 27, 2013 10:31 am

Re: Can't test values of chess positions without GUI

Post by Henk »

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.