Dots and Boxes

Play 'Dots and Boxes', normally used to pass school hours with just pen and paper, in MatLab!

You are now following this Submission

----- ----- ----- ----- -----
----- 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 (2026). Dots and Boxes (https://www.mathworks.com/matlabcentral/fileexchange/34440-dots-and-boxes), MATLAB Central File Exchange. Retrieved .

Categories

Find more on Just for fun in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.1.0.0

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

1.0.0.0