]>
git.scottworley.com Git - planeteer/log
summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
Scott Worley [Sat, 26 Nov 2011 10:18:58 +0000 (02:18 -0800)]
gofmt
Scott Worley [Sat, 26 Nov 2011 10:13:38 +0000 (02:13 -0800)]
Fix one cargo unit short when eden jumping bug.
Scott Worley [Sat, 26 Nov 2011 10:03:09 +0000 (02:03 -0800)]
Fix (tighten) sanity check in EncodeIndex()
And fix the revealed bug when specifying --fuel=0
And add a sanity check for addr == other at the end of CellValue.
Scott Worley [Sat, 26 Nov 2011 00:19:23 +0000 (16:19 -0800)]
Explicit -> implicit iteration.
This eliminates the whole class of bugs where the iteration order is
inconsistent with the data model. It also simplifies the code by simply
removing the whole 9-nested-layers of for loops along with the barnacles
that were growing there (multiple passes for selling and then buying,
different iteration order depending on whether the planet sells Eden
warps, etc.)
The downside: Parallelism is lost. This is now a single-threaded
program.
Scott Worley [Thu, 24 Nov 2011 07:10:20 +0000 (23:10 -0800)]
Consider not using all the fuel.
Scott Worley [Thu, 24 Nov 2011 07:10:04 +0000 (23:10 -0800)]
Private flag
Scott Worley [Fri, 11 Nov 2011 06:34:50 +0000 (22:34 -0800)]
Performance!
Scott Worley [Fri, 11 Nov 2011 06:09:34 +0000 (22:09 -0800)]
Implement --visit
Scott Worley [Thu, 10 Nov 2011 05:24:39 +0000 (21:24 -0800)]
Follow the reverse energy gradient on Eden-selling worlds.
This fix is necessary to find the optimal strategy when Eden's
beacon is active.
Scott Worley [Sun, 6 Nov 2011 06:10:44 +0000 (23:10 -0700)]
Implement --drones and --batteries.
Scott Worley [Sun, 6 Nov 2011 05:09:35 +0000 (22:09 -0700)]
Consistent hyper-jump terminology.
Scott Worley [Fri, 4 Nov 2011 00:54:53 +0000 (17:54 -0700)]
Using an eden warp doesn't give you cargo.
Scott Worley [Fri, 4 Nov 2011 00:32:25 +0000 (17:32 -0700)]
Implement Eden buying
Scott Worley [Thu, 3 Nov 2011 23:23:16 +0000 (16:23 -0700)]
More action descriptions
Print raw address change when a nice description is unavailable.
Scott Worley [Thu, 3 Nov 2011 23:20:33 +0000 (16:20 -0700)]
Implement --end
Scott Worley [Thu, 3 Nov 2011 23:12:34 +0000 (16:12 -0700)]
Don't eden warp to planets that sell eden warp units.
The Codex forbids this.
Also, only use one eden warp unit at a time.
Scott Worley [Thu, 3 Nov 2011 23:10:48 +0000 (16:10 -0700)]
Only warp to planets with their beacons on.
Scott Worley [Thu, 3 Nov 2011 23:09:13 +0000 (16:09 -0700)]
Read --end into a map
Scott Worley [Thu, 3 Nov 2011 21:58:27 +0000 (14:58 -0700)]
Fix flight plan logic (destination, not origin)
Scott Worley [Thu, 3 Nov 2011 21:34:50 +0000 (14:34 -0700)]
Fix --cloak
Scott Worley [Thu, 3 Nov 2011 20:56:46 +0000 (13:56 -0700)]
Buy from the right cell (no UnusedCargo when empty)
Scott Worley [Thu, 3 Nov 2011 00:12:13 +0000 (17:12 -0700)]
Start working on --cloak.
Scott Worley [Wed, 2 Nov 2011 23:43:24 +0000 (16:43 -0700)]
Fix bug: account for the empty hold
Scott Worley [Wed, 2 Nov 2011 23:00:43 +0000 (16:00 -0700)]
Print large numbers with commas
Get the right stuff on stdout vs stderr
Scott Worley [Wed, 2 Nov 2011 22:32:10 +0000 (15:32 -0700)]
Relative prices from the data file are percentages
Divide them by 100 before using them.
Scott Worley [Wed, 2 Nov 2011 18:19:39 +0000 (11:19 -0700)]
DescribePath()
Scott Worley [Wed, 2 Nov 2011 17:41:05 +0000 (10:41 -0700)]
FindBestState().
This can now emit an answer. It is a factor 80x off in a simple
test. :)
Scott Worley [Tue, 1 Nov 2011 22:55:27 +0000 (15:55 -0700)]
More haphazard development of untried code.
Scott Worley [Thu, 27 Oct 2011 05:37:32 +0000 (22:37 -0700)]
More haphazard development
Fix StateTableSize().
Fix visits and flight_plan to be [] instead of [""] when not specified.
Add some sanity checking in EncodeIndex().
Move table allocation out of FillStateTable1() so that it can be run
through FillStateTable1() multiple times for verification.
More documentation/thoughts on state table size.
Add an empty InitializeStateTable() to remind me to do that.
Start poking at FillStateTableCell(). This approach won't work.
FillStateTable2() cannot just process one cell completely and then move
onto the next. Some types of processing (eg: arriving, selling) have to
be performed to all the cells before the next round of actions (buying).
Scott Worley [Wed, 26 Oct 2011 06:31:07 +0000 (23:31 -0700)]
Notes on FillStateTableCell()
Scott Worley [Wed, 26 Oct 2011 05:46:37 +0000 (22:46 -0700)]
gofmt
Scott Worley [Wed, 26 Oct 2011 05:45:45 +0000 (22:45 -0700)]
FillStateTable()
Scott Worley [Wed, 26 Oct 2011 04:12:26 +0000 (21:12 -0700)]
Some safety against future modifications in DimensionSizes().
Scott Worley [Wed, 26 Oct 2011 02:21:16 +0000 (19:21 -0700)]
Make DimensionSizes() more resilient against dimension reordering.
Scott Worley [Tue, 25 Oct 2011 07:36:12 +0000 (00:36 -0700)]
Tweak flags
Scott Worley [Tue, 25 Oct 2011 07:27:28 +0000 (00:27 -0700)]
gofmt
Scott Worley [Tue, 25 Oct 2011 07:22:40 +0000 (00:22 -0700)]
Add a lot of code that isn't exercised yet.
Scott Worley [Mon, 24 Oct 2011 14:57:12 +0000 (07:57 -0700)]
Index commodities by their name.
Also, use initial_funds and max_quantity in TradeValue()
Scott Worley [Mon, 24 Oct 2011 07:52:10 +0000 (00:52 -0700)]
Use pointers more and indexes less
Scott Worley [Mon, 24 Oct 2011 07:45:08 +0000 (00:45 -0700)]
FindBestTrades()
Scott Worley [Mon, 24 Oct 2011 07:01:36 +0000 (00:01 -0700)]
Convert local prices to a flat map
Scott Worley [Mon, 24 Oct 2011 05:59:13 +0000 (22:59 -0700)]
Planeteer 2: Data and data loading.