XO Game for MATLAB 6.5 & 7

The MATLAB user can play the XO game against the computer.
3.5K Downloads
Updated 11 Jul 2005

No License

This is an XO game (tic tac toe) compacted into one M-file. On the number key pad, the user plays against the computer, which uses simple rules.

The computer is not unbeatable, so the challenge can be to beat it in as little time as possible. The game time is displayed after each game, and the user has a 50% chance of playing first.

There are sound effects for each of the three possible game outcomes.

Cite As

Samir & Nathir Rawashdeh (2024). XO Game for MATLAB 6.5 & 7 (https://www.mathworks.com/matlabcentral/fileexchange/7961-xo-game-for-matlab-6-5-7), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R14SP1
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Gaming in Help Center and MATLAB Answers
Acknowledgements

Inspired: XO Game with GUI

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.0

Updated file to work with MATLAB 6.5 as well as 7+SP1