Last active
June 25, 2018 12:45
-
-
Save todorok1/f9bf5089d2f99d5ccc1b6aa137fee7a0 to your computer and use it in GitHub Desktop.
カードをランダムにシャッフルするサンプル
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public struct Card{ | |
// カードのマーク(スート)を保持 | |
public int suit; | |
// カードの数字 | |
public int number; | |
// ジョーカーかどうか | |
public bool isJoker; | |
public Card(int suit, int number, bool isJoker){ | |
this.suit = suit; | |
this.number = number; | |
this.isJoker = isJoker; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment