♻️ Nettoie un peu le jour 17

This commit is contained in:
Clement Desmidt 2021-12-17 10:53:00 +01:00
parent 28f7ae790f
commit 4c8a42d80a
2 changed files with 0 additions and 12 deletions

View File

@ -9,7 +9,6 @@ $target = ['x_min' => $x_min, 'x_max' => $x_max, 'y_min' => $y_min, 'y_max' => $
function increment(&$x, &$y, &$x_velocity, &$y_velocity)
{
$current_x = $x;
$x += $x_velocity;
$y += $y_velocity;
if ($x_velocity > 0) $x_velocity -= 1;
@ -26,11 +25,6 @@ function check($x, $y, $target)
$y <= $target['y_max'];
}
$x = 0;
$y = 0;
$x_velocity = 6;
$y_velocity = 9;
$max = 0;
for ($i = 1; $i < abs($target['x_min']); $i++) {
$tmp_max = 0;

View File

@ -9,7 +9,6 @@ $target = ['x_min' => $x_min, 'x_max' => $x_max, 'y_min' => $y_min, 'y_max' => $
function increment(&$x, &$y, &$x_velocity, &$y_velocity)
{
$current_x = $x;
$x += $x_velocity;
$y += $y_velocity;
if ($x_velocity > 0) $x_velocity -= 1;
@ -26,11 +25,6 @@ function check($x, $y, $target)
$y <= $target['y_max'];
}
$x = 0;
$y = 0;
$x_velocity = 6;
$y_velocity = 9;
$possibilities = [];
for ($i = 0; $i <= abs($target['x_max']); $i++) {
for ($j = -abs($target['y_min']); $j <= abs($target['y_min']); $j++) {