Dots and Boxes

Play 'Dots and Boxes', normally used to pass school hours with just pen and paper, in MatLab!
313 Downloads
Updated 4 Jan 2012

View License

----- ----- ----- ----- -----
----- 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
Created with R2011b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Just for fun in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.1.0.0

"pen and pencil" --> "pen and paper"

1.0.0.0