KWARC / Kalah-Framework

Kalah framework for the AI course at FAU WS16/17
2 stars 12 forks source link

Illegal move #9

Open LbTdW opened 3 years ago

LbTdW commented 3 years ago

I noticed that the game continues if an agent does choose an illegal move. Further, if the move is illegal, some random position is chosen. Is that the intended behavior?

Jazzpirate commented 3 years ago

It is - or ,at least, was. I've had in the past submissions by agent that performed well except that they sometimes threw illegal moves when they didn't update their move-variable quickly enough - a result of the whole timeout thing. I don't see why they should be disqualified entirely for that, and agents that throw illegal moves regularly will quickly lose anyway.

This way, that kind of behaviour is okay as long as it happens rarely, and students aren't forced to make dead certain that the variable always points to a legal move no matter what.