thomasahle / TrinityProject

A mindblowing trainbased game for entire family
http://thomasahle.github.com/TrinityProject/
GNU General Public License v3.0
8 stars 3 forks source link

Add a way to check if the game is finished to allow better win/lose checking. #32

Closed MattPellegrini closed 12 years ago

MattPellegrini commented 12 years ago

This means: Checking for deadlocks. Checking that the trains match the goal and not just that the goal is a prefix of the trains arriving. E.g. 1-2-3-4 should not be a solution to 1-2-3

MattPellegrini commented 12 years ago

Done, I think the only way you can win/lose a game without the game telling you correctly is if you manage to get a prefix of the goal into the goal component. The only way to fix this would be to have the goal component have a time out, when it asks the UILevel to check if any trains are still to come, if not it should fail, if yes it should reset it's timer. However this is not really necessary as it should be obvious to the user that then haven't succeeded.

thomasahle commented 12 years ago

I think this could be closed now?

MattPellegrini commented 12 years ago

Yup