Created
April 26, 2014 05:07
-
-
Save murajun1978/11312208 to your computer and use it in GitHub Desktop.
Shinosaka.rb ペアプロ問題
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
ex. | |
[[5,3],[7,2],[8,/],[X],[7,1],[9,-],[6,2],[X],[6,/],[8,-]] | |
score: 126 | |
[]: 1フレーム | |
n: 倒したピンの数 | |
X: ストライク | |
/: スペア | |
-: ガター |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
テストデータにお使い下さい。
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