Simple Chess game
Versión 1.0.0 (6,29 KB) por
Thomas
I tried to keep it "minimalistic", so strength isn't great.
Run "playchess(3)" to start a game with search tree depth = 3
Then choose:
(1)-for playing WHITE against Computer
(2)-for playing BLACK against Computer
(3)-Computer plays against itself.
or alternatively type "playchess(4,3)" to start a game with search tree depth = 4 and computer against itself.
I tried to keep it "minimalistic", so strength isn't great. There is only console input and output. No special strategies e.g. for opening or end game situations are implemented.
The function for evaluating the search tree is very simple, so the program sometimes surprises with weird moves. Choosing a more sophisticated evaluation function would most likely improve strength and eliminate weird actions.
Citar como
Thomas (2025). Simple Chess game (https://www.mathworks.com/matlabcentral/fileexchange/118150-simple-chess-game), MATLAB Central File Exchange. Recuperado .
Compatibilidad con la versión de MATLAB
Se creó con
R2020a
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS LinuxEtiquetas
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.
Versión | Publicado | Notas de la versión | |
---|---|---|---|
1.0.0 |