Simple Chess game

Version 1.0.0 (6.29 KB) by Thomas
I tried to keep it "minimalistic", so strength isn't great.
110 Downloads
Updated 26 Sep 2022

View License

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.

Cite As

Thomas (2024). Simple Chess game (https://www.mathworks.com/matlabcentral/fileexchange/118150-simple-chess-game), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2020a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0