text chess

Started by mainsworthy, July 31, 2024, 07:20:13

Previous topic - Next topic

mainsworthy



I have built a chess engine, still needs some more work, but if you would like to try it and tell me what you think. you can set ply  ,Side, auto move entry, text display, analysys display, board score, successful candiate moves,

Chess Engine Project by mainslevel (itch.io)

Baggey

Id like to try it but the link is broken?

Baggey
Running a PC that just Aint fast enough!? i7 4Ghz Quad core 32GB ram  2x1TB SSD and NVIDIA Quadro K1200 on Acer 24" . DID Technology stop! Or have we been assimulated!

Windows10, Parrot OS, Raspberry Pi Black Edition! , ZX Spectrum 48k, C64, Enterprise 128K, The SID chip. Im Misunderstood!

mainsworthy

I am updaying it, still needs work. but its looking amazing, what supprised me is Max and Mk2 can do chess algos

Baggey

#3
I wonder how much of a FIGHT! Text Chess will do against the chess challenger? ::)

Chess Chalenger.jpg

Cant wait to have ago 8)

Ive wondered how a chess program is put together? I even thought of copying the ROM chip and reverse engineering it :-X but that's another project.

Kind Regards Baggey

Running a PC that just Aint fast enough!? i7 4Ghz Quad core 32GB ram  2x1TB SSD and NVIDIA Quadro K1200 on Acer 24" . DID Technology stop! Or have we been assimulated!

Windows10, Parrot OS, Raspberry Pi Black Edition! , ZX Spectrum 48k, C64, Enterprise 128K, The SID chip. Im Misunderstood!

mainsworthy

double alphabeta(int depth, double alpha, double beta)
{
    if (depth <= 0 || game is over) return evaluation();
    generate and sort list of moves available in the position
    for (each move m) {
        make move m;
        double val = -alphabeta(depth - 1, -beta, -alpha);
        unmake move m;
        if (val >= beta) return val;
        if (val > alpha) alpha = val;
    }
    return alpha;

you just code abovem but its a lot of code to draw board, setup vars etc.... use a text board so no graphics to worry about

mainsworthy

you need a command entry function eg a2a4
you need a move generator, you can hand right this for every square to save complexity
you need an evaluator of the board
and the alphabeta search

if the next move is take king you take it back and now know its in check
text game means no gui coding

mainsworthy





ChessRemains [Still in dev] by mainslevel (itch.io)  


ok baggey, I put latest online to try, its far from finished, its a long project, but to be honest its a lot of fun programing chess engines, although very hard, once you get it half running testing is so much fun

Baggey

Is this programmed in blitzmax? 8)

Baggey
Running a PC that just Aint fast enough!? i7 4Ghz Quad core 32GB ram  2x1TB SSD and NVIDIA Quadro K1200 on Acer 24" . DID Technology stop! Or have we been assimulated!

Windows10, Parrot OS, Raspberry Pi Black Edition! , ZX Spectrum 48k, C64, Enterprise 128K, The SID chip. Im Misunderstood!

mainsworthy

I have an earlier version in Max that I converted to Mk2, the max version is text only.