]> git.scottworley.com Git - planeteer/commit
More haphazard development
authorScott Worley <sworley@chkno.net>
Thu, 27 Oct 2011 05:37:32 +0000 (22:37 -0700)
committerScott Worley <sworley@chkno.net>
Thu, 27 Oct 2011 05:37:32 +0000 (22:37 -0700)
commite346cb3782a1bfd09dd52b8ad65a96ea96105aa4
tree1f947e79e9e8b931cf642c4d707a8aa561c1508b
parent544108c4d2c99c98bdf7566a23e5996127c8fe8e
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).
planeteer.go