Skip to content

Instantly share code, notes, and snippets.

@murajun1978
Created April 26, 2014 05:07
Show Gist options
  • Save murajun1978/11312208 to your computer and use it in GitHub Desktop.
Save murajun1978/11312208 to your computer and use it in GitHub Desktop.
Shinosaka.rb ペアプロ問題
ex.
[[5,3],[7,2],[8,/],[X],[7,1],[9,-],[6,2],[X],[6,/],[8,-]]
score: 126
[]: 1フレーム
n: 倒したピンの数
X: ストライク
/: スペア
-: ガター
@pinzolo
Copy link

pinzolo commented Apr 26, 2014

テストデータにお使い下さい。
Webから拾ってきたものなので間違いはあるかもしれません。

http://park1.wakwak.com/~shiraki/bowling/score.html
[[-,-],[X],[8,/],[X],[X],[X],[5,3],[8,/],[X],[X,X,X]] => 201

http://www.starlanes.co.jp/we-bowling/we-bowling-vol-3/
[[7,/],[9,-],[8,1],[X],[5,/],[3,3],[X],[X],[5,3],[4,/,9]] => 146

スライドのやつ
[[6,3],[9,-],[-,3],[8,/],[7,/],[X],[9,/],[8,-],[X],[X,6,/]] => 150

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment