Reinforcement_Learning_in_Python icon indicating copy to clipboard operation
Reinforcement_Learning_in_Python copied to clipboard

I think use AND rather than OR is better, now the if always to true

Open murenma05 opened this issue 1 year ago • 0 comments

Hi Sichkar, thanks for this repo, very helpful to RL beginners like me. In agent-brain's code, i think there should use 'and' of this line:

 if next_state != 'goal' or next_state != 'obstacle':

Otherwise this judgement will always be true.

murenma05 avatar Jul 10 '24 05:07 murenma05