mirror of
https://github.com/DavidGailleton/42-Push_Swap.git
synced 2026-01-27 08:41:58 +00:00
Compare commits
1 Commits
e947183aab
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 1235516c09 |
@@ -40,7 +40,7 @@ static void print_disorder(t_stacks *stacks)
|
|||||||
|
|
||||||
static void print_algo(t_stacks *stacks)
|
static void print_algo(t_stacks *stacks)
|
||||||
{
|
{
|
||||||
secure_write(2, "[bench] algo: ", 14);
|
secure_write(2, "[bench] strategy: ", 18);
|
||||||
if (stacks->algo == 0)
|
if (stacks->algo == 0)
|
||||||
{
|
{
|
||||||
secure_write(2, "Adaptive", 8);
|
secure_write(2, "Adaptive", 8);
|
||||||
|
|||||||
@@ -30,9 +30,9 @@ void flags(t_stacks *stacks)
|
|||||||
{
|
{
|
||||||
if (stacks->algo == 1)
|
if (stacks->algo == 1)
|
||||||
simple(stacks);
|
simple(stacks);
|
||||||
if (stacks->algo == 1)
|
else if (stacks->algo == 2)
|
||||||
medium(stacks);
|
medium(stacks);
|
||||||
if (stacks->algo == 1)
|
else if (stacks->algo == 3)
|
||||||
complex(stacks);
|
complex(stacks);
|
||||||
else
|
else
|
||||||
adaptive(stacks);
|
adaptive(stacks);
|
||||||
|
|||||||
Reference in New Issue
Block a user