Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: a chess endgame problem, almost solved but not quite
Post: a chess endgame problem, almost solved but not qui...

I'm trying to create a code for **perfectly optimal chess endgame**. By that I mean that the loosing player tries to delay the checkmate as long as possible while the winning tries to checkmate the op...
max22 General Coding Help 0 199 Mar-31-2024, 06:14 PM
    Thread: optimum chess endgame with D=3 pieces doesn't give an exact moves_to_mate variable
Post: RE: optimum chess endgame with D=3 pieces doesn't ...

(Mar-20-2024, 01:25 PM)max22 Wrote: I have just upgraded my code for computing completely optimally for both players a chess endgame as given here: https://pastebin.com/jQ090L01 but i...
max22 General Coding Help 1 309 Mar-21-2024, 09:31 PM
    Thread: optimum chess endgame with D=3 pieces doesn't give an exact moves_to_mate variable
Post: optimum chess endgame with D=3 pieces doesn't give...

I have just upgraded my code for computing completely optimally for both players a chess endgame as given here: https://pastebin.com/jQ090L01 but it gives to me 2 plies to checkmate Whi...
max22 General Coding Help 1 309 Mar-20-2024, 01:25 PM
    Thread: A new endgame problem, almost solved but not quite 2
Post: A new endgame problem, almost solved but not quite...

I'm trying to create my own chess endgame code for a trivial game 3 pieces on the board Q+K+k (all in Python) but I'm getting a wrong output at the node 1 in my dictionary A[1]['moves_to_mate']==9 bu...
max22 General Coding Help 0 278 Mar-07-2024, 07:12 PM
    Thread: A new endgame problem, almost solved but not quite
Post: A new endgame problem, almost solved but not quite

I'm trying to create my own chess endgame code for a trivial game 3 pieces on the board Q+K+k (all in Python) but I'm getting a wrong output at the node 1 in my dictionary A[1]['moves_to_mate']==9 bu...
max22 News and Discussions 0 394 Mar-06-2024, 07:00 PM
    Thread: Python trivial endgame engine is not working as expected
Post: Python trivial endgame engine is not working as ex...

I have detected where roughly is a problem. It is in this function which gets processed for node "1" only, see the output section below: (I'm trying to put the node 6109 into A[1]['sequence'] but I ca...
max22 General Coding Help 0 566 Feb-24-2024, 04:41 PM
    Thread: strange behavior of chess library in Python
Post: strange behavior of chess library in Python

I have a rather simple chess endgame Python code implementinng negamax strategy given below but it behaves strange. Negamax means that when both players play fully rationally the best move leading to...
max22 General Coding Help 1 375 Jan-18-2024, 05:07 PM
    Thread: How do I classify colored images into 3 classes
Post: How do I classify colored images into 3 classes

I'm struggling with the problem to write a program for classifying images (which are just colors) into 3 groups. I expect to obtain from each image a 3 vector [x,y,z]. The blue ones should be [1,0,0],...
max22 General Coding Help 0 717 Dec-04-2023, 10:33 PM
    Thread: troubles with tqdm
Post: RE: troubles with tqdm

I have found the bug. It is that tqdm doesn't cooperate with Jupyter so nicely as tqdm_notebook does. Thank you for your help.
max22 General Coding Help 2 551 Nov-27-2023, 09:20 PM
    Thread: troubles with tqdm
Post: troubles with tqdm

I have a problem with tqdm progress bar. I have a code like this my code with wrongly working tqdm If I have printed the debugging messages I have really got this as the first line of the output: HER...
max22 General Coding Help 2 551 Nov-27-2023, 08:13 PM
    Thread: I'm trying to create a GUI in Python which would accept a bash command
Post: I'm trying to create a GUI in Python which would a...

I'm trying to create a GUI in Python which would accept a bash command like this python OK21.py and displayed all the outputs of this command including any graphics. If I run from command line this p...
max22 GUI 1 763 Nov-12-2023, 05:19 PM
    Thread: I have a code which is very simple but still I cannot detect what's wrong with it
Post: I have a code which is very simple but still I can...

The code is like this and below I'm leaving the error I'm getting in Python (3.7.13): import numpy as np import matplotlib.pyplot as plt # Define the blood test results for four persons person1_resu...
max22 General Coding Help 1 520 Nov-07-2023, 03:22 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020