This commit is contained in:
adrienmalin committed 2019-01-15 18:18:59 +01:00
1 parent a69ade5438
commit 4f8a301cde
1 file changed
+2
+2
View File
@@ -36,6 +36,8 @@ func possible_positions(initial_translations, movement):
position = initial_translations[i] + movement
if is_free_cell(position):
test_translations.append(position)
else:
break
if test_translations.size() == Tetromino.NB_MINOES:
return test_translations
else: