cardplot.m

버전 1.0.0.0 (7.03 KB) 작성자: Rasmus Anthin
Draw/update/view cards, plot board or change mouse ptr. Hopefully useful when creating card games.
다운로드 수: 3.4K
업데이트 날짜: 2005/7/5

라이선스 없음

Rev 2005-06-16
Rev 2005-04-29.
Rev 2003-08-12.

To simplify the developement of card games (IMHO), you can instead use the card class provided by the Playing Cards Toolbox.

condensed help:
%%%%%%%%%% snip %%%%%%%%

CARDPLOT Plot playing cards for card games.
[H,X1,Y1] = CARDPLOT(X0,Y0,CSIZE,VALUE,SUIT)
draws a card.

CARDPLOT(H,X0,Y0,VALUE,SUIT)
changes the card with handles in vector H.

BORDER = CARDPLOT(X0,Y0,CSIZE) returns the border of a card at (X0,Y0).

[VALUE,SUIT] = CARDPLOT(H)
shows VALUE and SUIT for a card given by the handle vector H.

CARDPLOT(VALUE,SUIT)
changes the mouse pointer over the current figure (GCF)
to look like a playing card of value VALUE and suit SUIT.
Convenient for moving cards with the mouse (see demo).

CARDPLOT(HFIG,VALUE,SUIT)
same as above but for the specified figure handle HFIG.

CARDPLOT(DIM,COLOR)
creates a board with color COLOR with dimensions DIM on
the current axes (GCA).

CARDPLOT DEMO
shows a demonstration on how to use this application.

%%%%%%%%%% snip %%%%%%%%

Don't forget to run "CARDPLOT DEMO" first to see how cardplot can be used!

This function is created using Matlab 5.1.
More stuff can be downloaded from:
http://www.etek.chalmers.se/~e8rasmus/eng/matlab_programs.html

인용 양식

Rasmus Anthin (2024). cardplot.m (https://www.mathworks.com/matlabcentral/fileexchange/3811-cardplot-m), MATLAB Central File Exchange. 검색 날짜: .

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

도움 준 파일: blackjack.m, Magic Cards, Blackjack

Community Treasure Hunt

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

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

Further bugfixes. Can now also plot joker cards (wild cards).