10を作るパズルをRubyに解かせることにしたよhttps://gist.github.com/zunda/e1d2015c99e10f2326f7ef18d8968ee5
割り算が整数繰り下げになっちゃってるのをRationalにした方がいいなあ。あとRPNの入力は数字と演算子にきっぱり分けられる
(a+b)x(c+d)みたいな演算順を探索してないわね…
10を作るパズルを解くプログラムの探索不足をなおしたよhttps://gist.github.com/zunda/e1d2015c99e10f2326f7ef18d8968ee5
次は結果に表示される余計なカッコを減らしたいけど’めんどー
Mastodon is the best way to keep up with what's happening.
Follow anyone across the fediverse and see it all in chronological order. No algorithms, ads, or clickbait in sight.