Last active
June 25, 2018 12:45
カードをランダムにシャッフルするサンプル
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