gym icon indicating copy to clipboard operation
gym copied to clipboard

Wrong segment of 1 tile

Open NotAnyMike opened this issue 5 years ago • 2 comments

Sometimes a weird segment with very few tiles is created

Before trying to solve this, given that this error is very rare, implement:

  • [x] save maps
  • [x] load maps

Also i would be nice if:

  • [x] Think a way of knowing when the error happens in order to automatically save the map

We can use the closest commit before 8th may in the Take_center env

NotAnyMike avatar Apr 04 '19 17:04 NotAnyMike

The solution was simple, mainly it happened with only one track (when the other track is not useful and gets eliminated) in that case, we just check if there the next and previous tiles match, if not it is deleted. In the case where the extra tiles occur in the second track, it only happens when the rest got removed, thus if the second track is shorter than 5, then delete the whole second track.

This was checked over 200 random tracks, and it appeared only once.

NotAnyMike avatar May 09 '19 18:05 NotAnyMike

Looks like the porblem is solved, but still checking out if it is still out there

NotAnyMike avatar Jun 17 '19 10:06 NotAnyMike