Skip to content

Instantly share code, notes, and snippets.

@todorok1
Last active June 25, 2018 12:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save todorok1/f9bf5089d2f99d5ccc1b6aa137fee7a0 to your computer and use it in GitHub Desktop.
Save todorok1/f9bf5089d2f99d5ccc1b6aa137fee7a0 to your computer and use it in GitHub Desktop.
カードをランダムにシャッフルするサンプル
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