I trying to make a Matlab code with my favorite game. Help me.
이전 댓글 표시
I want to a make matlab code with this game. It on the youtube link. I work on it but I'm stop at some problems.
clc
clear all
%My_card_deck_1
card_shuffled= randperm(10);
My_card_1= card_shuffled(1);
A= My_card_1;
%My_card_deck_2
B= "My_secret_card";
%My_hand_card
[A B]
This is what I did. Help me to finish the code.
댓글 수: 3
Geoff Hayes
2022년 5월 27일
@gogogo - without looking at the YouTube video, can you describe what the game is supposed to do and how your code fulfills the requirements?
gogogo
2022년 5월 30일
Walter Roberson
2022년 5월 30일
cards = randperm(52,2)
value = mod(cards-1,13)+1
First 13 are one suit, next are another, and so on
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Just for fun에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!