Skip to content

Instantly share code, notes, and snippets.

View ujihisa's full-sized avatar

ujihisa ujihisa

View GitHub Profile
@ujihisa
ujihisa / ujihisa.md
Last active April 6, 2024 19:05
Satisfactory快適プレイv4 (Update 8対応版)
class C
def initialize
@size_x = 20
@size_y = 20
@dots = []
@sushis = []
end
def dot!(loc)
if 0 <= loc[0] && loc[0] < @size_x &&
@ujihisa
ujihisa / ujihisa.md
Last active February 20, 2023 03:23
Satisfactory快適プレイv3 (Update 7対応版)

https://gist.github.com/ujihisa/21549a8a3f5c775ef76db17f5912f935 を2023年2現在の最新の知見で書き直したもの。

Satisfactory快適プレイv1 https://gist.github.com/ujihisa/807f1075803f6e6be07f898f09375123 をほぼ全部書き換えたもの。あれからだいぶプレイしていろいろわかったので...

大原則

  • 同一の加工を行うグループは、隙間をあけず横に連結する
    • 例: Iron OreからIron Ingotに変換するSmelterを4つ横に並べて、Conveyor SplitterとConveyour Mergerを正面と背後に置く
  • 土地をどんどん使う
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区切りしてみる

  1. 開始直後から、トイレ手洗い浄水,酸素生成,食品貯蔵,食卓まわり最低限揃うまで
  2. 貯水池などからSPOM作って酸素と電力がひとまず余裕を持つ
  • 気体用パイプ 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