https://gist.github.com/ujihisa/49294f9bdc4a57606fa973cdcf9a01aa を2024年04現在の最新の知見で書き直したもの。
- 工場はほぼImmutable Infrastructureで、足し算だけ考える
- コンベアがごちゃごちゃするのは気にしない
- MODちょっとを使う
https://gist.github.com/ujihisa/49294f9bdc4a57606fa973cdcf9a01aa を2024年04現在の最新の知見で書き直したもの。
class C | |
def initialize | |
@size_x = 20 | |
@size_y = 20 | |
@dots = [] | |
@sushis = [] | |
end | |
def dot!(loc) | |
if 0 <= loc[0] && loc[0] < @size_x && |
https://gist.github.com/ujihisa/21549a8a3f5c775ef76db17f5912f935 を2023年2現在の最新の知見で書き直したもの。
Satisfactory快適プレイv1 https://gist.github.com/ujihisa/807f1075803f6e6be07f898f09375123 をほぼ全部書き換えたもの。あれからだいぶプレイしていろいろわかったので...
import qualified Data.Map as Map | |
import qualified Data.List as List | |
data AST = Cons AST AST | Inst Char | Nil deriving Show | |
-- Just for debugging purpose | |
toSEXP :: AST -> String | |
toSEXP x = case toSEXPList x of | |
Just xs -> "(" ++ List.intercalate " " xs ++ ")" | |
Nothing -> toSEXP' x |
Assuming you walk by 4km/h | |
Vancouver Canucks - 32.913 seconds - Vancouver, British Columbia | |
Ottawa Senators - 30 minutes - Kanata, Ontario | |
Chicago Blackhawks - 42 minutes - Chicago, Illinois | |
Montréal Canadiens - 45 minutes - Montréal, Quebec | |
San Jose Sharks - 1 hours - Santa Clara, California | |
Winnipeg Jets - 1 hours - Winnipeg, Manitoba | |
Washington Capitals - 2 hours - Arlington, Virginia | |
Seattle Kraken - 2 hours - Seattle, Washington |
https://scrapbox.io/oxygen-not-included-appx/ に大事な要素をまとめておいた
Oxygen Not Included攻略
ゲームの進行度を以下に10区切りしてみる
気体用パイプ 1kg/m
吸気ポンプ 500g/s
液体用パイプ 10kg/m
吸水ポンプ 液体10kg/s
コンベアレール 20kg/m
コンベアローダー 1000kg
# g/s | |
# both plants and critters are domestic | |
num_arbor_tree = 6 | |
lumber = 555.56 * num_arbor_tree | |
# ethanol_distiller | |
num_ethanol_distiller = lumber / 1000.0 | |
lumber = 0 | |
ethanol = 500.0 * num_ethanol_distiller |
[🐻Grouse](Green) Chalet Road 6.68% | |
[🚗Seymour](Blue) Boomerang 8.33% | |
[🚗Seymour](Blue) Sammy's Express 8.52% | |
[🚗Seymour](Green) Mushroom 8.72% | |
[🌮Revelstoke](Green) Ripper Connector 9.55% | |
[🌮Revelstoke](Blue) Ninja Traverse 10.20% | |
[🌮Revelstoke](Green) Downtowner 10.25% | |
[🐻Grouse](Green) Paradise 10.29% | |
[🚗Seymour](Blue) Maverick 11.11% | |
[🐻Grouse](Blue) Lower Peak 11.70% |
require 'csv' | |
# { date => dividends, ... } | |
dividends = CSV.parse(File.read('/tmp/Downloads/ZSP.TO (1).csv'))[1..].to_h {|date, dividend| [date, dividend.to_f] } | |
unit = nil | |
total_return_date_values = CSV.parse(File.read('/tmp/Downloads/^GSPC.csv'))[1..].map {|date, _, _, _, price| | |
price = price.to_f | |
unit ||= 1 / price |