startrek: continue clean up
authorAlan Cox <alan@linux.intel.com>
Tue, 13 Mar 2018 21:39:09 +0000 (21:39 +0000)
committerAlan Cox <alan@linux.intel.com>
Tue, 13 Mar 2018 21:39:09 +0000 (21:39 +0000)
commit509e055981d5acae003435e57fd3268ecb1616a4
tree5db381d571b0f2ca9a5c7d8a844d4a0bf828cceb
parent3ea5f9e0efb4dd933405eb73715f9611976c65e6
startrek: continue clean up

There are corner cases on the torpedo tracking and where the computer solution
is wrong. The whole positioning logic is a bit messed up and I think the
tracking corner cases are due to that. Also of course Klingons are in integer
positions whereas presumably they should be at 0.5/0.5 because they are
notionally in the middle of the square.

Would it make sense to just Bresenham the movement and torpedo logic ?
Applications/games/startrek.c