RHIT-XPrize / rhit-xprize-blocksworld

0 stars 0 forks source link

Ai database storage #46

Closed Lewis-Kelley closed 6 years ago

Lewis-Kelley commented 6 years ago

The AI game now successfully stores all actions to the database. Note that this does not seek to change the schema, though many of the refactors should help with that.

There were some changes to the formatting of the output, but I don't think they are necessarily very drastic. I would spend more time looking at the format now, but I feel that is better saved for when we are actually formatting this data to be more usable on the whole.

Also, this commit makes several breaking changes to the coop mode (such as completely removing the ability for the blocks to be draggable). See #47.

Sample output (from the ibmdb:timeandlocation column) with newlines added for readability:

{
     "Gesture 03/20/2018 18:52:27 (15.8664%,50.3074%)",
     "Instruction 03/20/2018 18:52:29 03/20/2018 18:52:30 1222 D",
     "Movement Block id: block2 Letter: D Color: blue 03/20/2018 18:52:30 (446.717px,88.0333px) (8.380554577136298,50.43667115764625)",
     "Instruction 03/20/2018 18:52:32 03/20/2018 18:52:34 1479 Flip D",
     "Flip Block id: block2 Letter: D Color: blue 03/20/2018 18:52:34 (8.380554577136298,50.43667115764625)"
}
kgroble commented 6 years ago

Seems good, definitely better organized now and net removal is always nice.