Dots and Boxes
----- ----- ----- ----- -----
----- description -----
----- ----- ----- ----- -----
Starting with an empty grid, players take turns, adding a single horizontal or vertical line between two unjoined adjacent intersections. A player who completes the fourth side of a 1×1 box earns one point and takes another turn.
----- ----- ----- ----- -----
----- functionality -----
----- ----- ----- ----- -----
the game can be played with 2 to 7 players and is controlled by mouse. Name input is optional and the size of the grid can be changed. You can choose to already have click the outer lines.
----- ----- ----- ----- -----
----- user interface -----
----- ----- ----- ----- -----
It's played in a simple figure with axis by using the LINE and GINPUT commandos
----- ----- ----- ----- -----
----- credits -----
----- ----- ----- ----- -----
Version: 1.2 (English)
Made by: Cor CNJ Koomen
Made at: 18-mar-11
Update: 04-jan-12
Cite As
Cor Koomen (2024). Dots and Boxes (https://www.mathworks.com/matlabcentral/fileexchange/34440-dots-and-boxes), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxTags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.