This commit is contained in:
adrienmalin 2019-01-15 18:18:59 +01:00
parent a69ade5438
commit 4f8a301cde

@ -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: