]> git.scottworley.com Git - planeteer/commit
Explicit -> implicit iteration.
authorScott Worley <sworley@chkno.net>
Sat, 26 Nov 2011 00:19:23 +0000 (16:19 -0800)
committerScott Worley <sworley@chkno.net>
Sat, 26 Nov 2011 00:19:23 +0000 (16:19 -0800)
commit0372f04533a4e361960bf2b662fb4492246f1a3d
tree429e60ecece6438571c86a5557cd41438f94441e
parentddef04ab661444f478e4602ba57784a4636f32ab
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.
planeteer.go