connect4(varargin)

버전 1.6.0.0 (28.4 KB) 작성자: Steven Terrana
Connect4!
다운로드 수: 385
업데이트 날짜: 2015/3/26

라이선스 보기

Play Connect 4!
A two player version of connect 4.
drag your marker around the figure window and click over a column to drop it in!
This was created using version 2014b.
If you want to edit the board colors, you may input your own.
Acceptable Input Properties:
'BoardColor'
'BoardAccentColor'
'Player1Color'
'Player2Color'
'Bounce'
'AnimateDrop'
Acceptable Inputs are the standard color strings or RGB color vectors.
white -- 'w'
black -- 'k'
yellow -- 'y'
magenta -- 'm'
cyan -- 'c'
red -- 'r'
green -- 'g'
blue -- 'b'
You may also turn off:
The physical dynamics by specifying, 'Bounce','off'
The game board reset animation by specifying, 'AnimateDrop','off'

인용 양식

Steven Terrana (2024). connect4(varargin) (https://www.mathworks.com/matlabcentral/fileexchange/50146-connect4-varargin), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2014b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Board games에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.6.0.0

There were bugs in the error proofing of user inputs that have been eradicated.

1.5.0.0

Reset button has been improved upon. Only appears after the first turn has been made visible to avoid errors.

Small bug fixed where the winning chip would not animate when the board was cleared.

1.4.0.0

nan(16) rather than nan * ones(16,16);

1.3.0.0

- The insights of Stephen Cobeldick were incorporated into the program.
- An optional animation was added for clearing the board.

1.2.0.0

- Message for the winner is updated for clarity when the user inputs custom colors.
- the location of new marker creation was fine tuned

1.1.0.0

thumbnail picture added

1.0.0.0