mirror of
https://github.com/DavidGailleton/42-Push_Swap.git
synced 2026-01-27 00:41:57 +00:00
trying some opti start to opti
This commit is contained in:
@@ -77,18 +77,7 @@ void push_range_to_b(t_stacks *stacks, t_tab *one_preset, int range)
|
||||
{
|
||||
while (one_preset->nb_in > 0)
|
||||
{
|
||||
if (wich_path(stacks, one_preset->max_range, range, 'b'))
|
||||
{
|
||||
while (!in_range(stacks->b->value, one_preset->max_range, range))
|
||||
rb(stacks);
|
||||
}
|
||||
else
|
||||
{
|
||||
while (!in_range(stacks->b->value, one_preset->max_range, range))
|
||||
{
|
||||
rrb(stacks);
|
||||
}
|
||||
}
|
||||
normal_move_path(stacks, one_preset, range);
|
||||
sort_little_pile(stacks);
|
||||
one_preset->nb_in--;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user