MATLAB Hexxagon

버전 1.2.0.0 (6.58 KB) 작성자: Per-Anders Ekstrom
Graphical User Interface for playing the Ataxx clone Hexxagon.
다운로드 수: 4.3K
업데이트 날짜: 2009/5/15

라이선스 보기

편집자 메모: This file was selected as MATLAB Central Pick of the Week

Hexxagon is an abstract strategy board game which involves play by two parties on a hexagonal board. The object of the game is to make your pieces constitute a majority of the pieces on the board at the end of the game, by converting as many of your opponent's pieces as possible.

Each player begins with three pieces for the first player and second player respectively. The game starts with the six pieces on the six corners of the board.

During their turn players must first select the piece they wish to move, the source, and then select an empty square, the destination, that is either adjacent to, or having a distance of less than three, from the source. Diagonal distances are equivalent to orthogonal distances, i.e. it is legal move to a square who's relative position is two squares away both vertically and horizontally. If the destination is adjacent to the source, a new piece is created on the empty destination square. Otherwise the piece on the source moves to the destination. After the move, all of the opponent player's pieces adjacent to the destination piece are converted to the color of the moving player. Players must move unless no legal move is possible, in which case they must pass.

The game ends when all positions of the board have been filled or one of the players has no remaining pieces. The player with the most pieces wins. A draw may occur when the number of squares are even.

(text above has been adapted from Wikipedia)

Hexxagon has single and double player modes, score tracking and sound effects.

Example:
hexxagon % Start Hexxagon Interface

인용 양식

Per-Anders Ekstrom (2024). MATLAB Hexxagon (https://www.mathworks.com/matlabcentral/fileexchange/18155-matlab-hexxagon), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2007a
모든 릴리스와 호환
플랫폼 호환성
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.2.0.0

Added screen shot.

1.1.0.0

Updated some bugs noticed with Matlab release 7.6.0 (R2008a)

1.0.0.0