Skip to content

Instantly share code, notes, and snippets.

@satococoa
Created May 19, 2012 09:19
Show Gist options
  • Select an option

  • Save satococoa/2730211 to your computer and use it in GitHub Desktop.

Select an option

Save satococoa/2730211 to your computer and use it in GitHub Desktop.
あみだくじ

あみだくじを作ってください。

仕様

  • 当たりの数は一つ
  • 当たりの位置はランダム
  • 人リストからランダムに配置すること
  • 横線がランダムに配置されること
  • 横線が複数繋がってはいけない
  • 横線が一本も繋ってない縦線が存在してはいけない

目標

  • 当たりの人の名前を表示すること
  • 当たりの数を複数にする
  • 当たりでは無く、順番にする
  • 選択された人のルートを視覚的に表現する
  A   B   C   D   E
  |   |   |   |   |
  |---|   |   |   |
  |   |   |   |   |
  |   |---|   |   |
  |   |   |---|   |
  |   |   |   |   |
  |   |---|   |   |
  |   |   |   |---|
  |   |   |   |   |
 !!!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment