chesslablab / php-chess

A chess library for PHP.
https://chesslablab.github.io/php-chess/
MIT License
102 stars 46 forks source link

Implementation of Chess\Play\RandomPlay #527

Closed programarivm closed 5 months ago

programarivm commented 5 months ago

Chess\Play\RandomPlay needs to be implemented in the src/Play folder to play random games.

See https://github.com/chesslablab/php-chess/issues/526

programarivm commented 5 months ago

@EarlyEdition, the Chess\Play namespace is to host PHP components to play chess movetexts as per the PGN spec.

Thus, the random chess player may well belong to the same category as Chess\Grandmaster in that these two are meant to make automatic chess moves programmatically.

Probably, it makes sense to create a namespace called Chess\Computer intended for these kind of classes.

Chess\Computer\Abducer will be the next one to be added to this namespace.

See:

ghost commented 4 months ago

@programarivm, Thanks! I think it can be optimized in the future.