Compare commits

19 Commits

Author SHA1 Message Date
Nayan Sawyer
6c1bfbf0c4 remove tfc forge macro 2026-04-04 16:48:49 -04:00
Nayan Sawyer
0e455a2e40 add gitignore 2026-04-04 16:48:34 -04:00
Nayan Sawyer
28d8abcfff add proper readme for forge macro 2026-04-04 16:41:36 -04:00
Nayan Sawyer
40e9d93c05 add 9 bloom script 2026-04-02 20:52:49 -04:00
Nayan Sawyer
af6a4b291e script to run the macros from macro deck 2026-04-02 20:52:29 -04:00
Nayan Sawyer
70209699c4 fix non full setup (AI) 2026-04-02 20:52:03 -04:00
Nayan Sawyer
95ed0deb39 my coords 2026-04-02 20:51:21 -04:00
Nayan Sawyer
0f57a323d5 add reading files 2026-04-02 19:25:59 -04:00
Nayan Sawyer
84d1b56333 make coords for slots calculated based on just one 2026-04-02 18:27:48 -04:00
Nayan Sawyer
116b83f1a9 fix order and extra click issues in setup 2026-04-02 18:11:49 -04:00
Nayan Sawyer
fa49090ee2 main program executes macros (AI) 2026-04-02 17:51:44 -04:00
Nayan Sawyer
0bea9bb23a make setup record offsets (AI) 2026-04-02 17:47:09 -04:00
Nayan Sawyer
02bcf183b9 add coord code 2026-04-02 17:08:58 -04:00
Nayan Sawyer
ef5bfc5931 add setup script with mouse click recording 2026-04-02 17:08:30 -04:00
Nayan Sawyer
7932a5d9f2 initialize macro program 2026-04-02 15:02:55 -04:00
Nayan Sawyer
c72ad5dbe7 Merge branch 'master' of https://github.com/opus-tango/public-python 2026-04-02 15:01:00 -04:00
Nayan Sawyer
dc5ec3c6c5 update bloomery script 2026-04-02 15:00:31 -04:00
Nayan Sawyer
e97e40e9b9 Update README with release information
Added release notes for terrafirmagreg_bloomery.py.
2026-03-22 19:31:52 -04:00
Nayan Sawyer
6f3d6cb4ec add script for terrafirmagreg bloomery optimization 2026-03-22 19:13:31 -04:00
3 changed files with 19 additions and 0 deletions

2
.gitignore vendored Normal file
View File

@@ -0,0 +1,2 @@
__pycache__/
.venv/

View File

@@ -1,6 +1,11 @@
# public-python
This repository contains all of my public python program releases
March 22 2026
terrafirmagreg_bloomery.py Release v1.0.0
A calculator for optimizing iron dust to charcoal ratios to minimize lost iron in the bloomery
Sep 19 2019
mental_math.py Release v1.0.0

View File

@@ -0,0 +1,12 @@
num_ore = 25
mb_per_ore = 129
mb_per_ingot = 144
mb_per_coal = 144
mb = num_ore * mb_per_ore
num_ingots = int(mb / mb_per_ingot)
num_coal = int(mb / mb_per_coal)
lost_mb = mb % mb_per_ingot
print(f"With {num_ore} ore and {num_coal} coal, you will get {num_ingots} ingots and lose {lost_mb} MB of iron. Total items are {num_ore + num_coal}.")