Congklak

버전 1.0.0.0 (28.9 KB) 작성자: Stepen Sahrun
Congklak_custom allows user to play Congklak game (a traditional) in MATLAB GUI against a simple AI.
다운로드 수: 584
업데이트 날짜: 2012/4/27

라이선스 보기

Congklak_custom allows user to play Congklak game (a traditional) in MATLAB GUI against a simple AI.

How to play Congklak:
Each player takes turn to play seeds/bean from his/her house (house is a small holes on both player's side of the board). Playing seed is done by selecting a house on player's side, taking all beans in it, and moving it forward in counterclockwise direction by putting one seed on all houses that it passes through except the opponent storehouse (store house is a big hole on the left and the right side of the board, each representing player's score). If the last seed falls on a non-empty house, player
%continues its turn by taking all seeds in it and moving it forward again. If the last seed falls on the player's storehouse, player can continue his turn by playing new seed from any houses on player's side. If the last seed falls on an empty house on player's side, player takes all seed in player's house (whose last seed falls in it) and in the opposing house on opponent side to player's storeroom. This is called shooting and this ends player's turn. If the last seed falls on an empty house on opponent's side, player ends turns without shooting. Playing seed is done repeatedly by both player in turns until all seeds in all houses are taken. In the
%end of the game, player with most seeds in his storehouse wins the game.

인용 양식

Stepen Sahrun (2024). Congklak (https://www.mathworks.com/matlabcentral/fileexchange/36427-congklak), MATLAB Central File Exchange. 검색됨 .

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

Community Treasure Hunt

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

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