From 40e2f8bc74ee67d27eda541b565a26f67b1d3db7 Mon Sep 17 00:00:00 2001 From: Mike Reaney Date: Sat, 15 Nov 2025 15:11:12 +0000 Subject: [PATCH 1/6] Improve hints for Pizza Pi exercise - Update hints to match current instructions - Correct pi reference and rounding guidance - Provide consistent, accurate non-spoiler hints --- exercises/concept/pizza-pi/.docs/hints.md | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/exercises/concept/pizza-pi/.docs/hints.md b/exercises/concept/pizza-pi/.docs/hints.md index 2f724d18..3712ae94 100644 --- a/exercises/concept/pizza-pi/.docs/hints.md +++ b/exercises/concept/pizza-pi/.docs/hints.md @@ -6,23 +6,22 @@ ## 1. A Dough Ratio -- PHP has [a built-in constant][pi-constant] for pi (π) -- When it comes to rounding, PHP provides [numeric functions][numeric-functions] +- This task uses basic arithmetic with addition and multiplication. ## 2. A Splash of Sauce -- When rounding up, PHP provides a [numeric function][numeric-functions]. +- To ensure a whole number of cans, you'll need to round up. PHP provides [numeric functions][numeric-functions] that can help. ## 3. Some Cheese, Please -- For cubing a number, there is a [built-in exponentiation function][arithmetic-operations]. +- You can cube a number using the [exponentiation operator][arithmetic-operations]. +- You’ll need to round the result down; PHP has a [numeric function][numeric-functions] for that. +- PHP also provides a [built-in function][pi-function] for pi (π) ## 4. A Fair Share -- This part requires using a function you may not have come across before, the [modulo -function][arithmetic-operations] (`%`). - This function gives you the remainder of the division between two numbers. +- Use the [modulo operator][arithmetic-operations] (`%`) to get the remainder after division. [arithmetic-operations]: https://www.php.net/manual/en/language.operators.arithmetic.php -[pi-constant]: https://www.php.net/manual/en/function.pi.php +[pi-function]: https://www.php.net/manual/en/function.pi.php [numeric-functions]: https://www.php.net/manual/en/ref.math.php From c6d7a4ce72954e3345ed0919f57ae09d2441e370 Mon Sep 17 00:00:00 2001 From: Mike Reaney Date: Sat, 15 Nov 2025 16:56:58 +0000 Subject: [PATCH 2/6] Update exercises/concept/pizza-pi/.docs/hints.md Co-authored-by: mk-mxp <55182845+mk-mxp@users.noreply.github.com> --- exercises/concept/pizza-pi/.docs/hints.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exercises/concept/pizza-pi/.docs/hints.md b/exercises/concept/pizza-pi/.docs/hints.md index 3712ae94..7750f3a9 100644 --- a/exercises/concept/pizza-pi/.docs/hints.md +++ b/exercises/concept/pizza-pi/.docs/hints.md @@ -6,7 +6,7 @@ ## 1. A Dough Ratio -- This task uses basic arithmetic with addition and multiplication. +- You can solve this task using basic arithmetic operators for addition and multiplication. ## 2. A Splash of Sauce From d0e7e05ab60f8bcb8452605674d119dc2a2cf6ca Mon Sep 17 00:00:00 2001 From: Mike Reaney Date: Sat, 15 Nov 2025 16:57:26 +0000 Subject: [PATCH 3/6] Update exercises/concept/pizza-pi/.docs/hints.md Co-authored-by: mk-mxp <55182845+mk-mxp@users.noreply.github.com> --- exercises/concept/pizza-pi/.docs/hints.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/exercises/concept/pizza-pi/.docs/hints.md b/exercises/concept/pizza-pi/.docs/hints.md index 7750f3a9..7269e3ff 100644 --- a/exercises/concept/pizza-pi/.docs/hints.md +++ b/exercises/concept/pizza-pi/.docs/hints.md @@ -10,7 +10,8 @@ ## 2. A Splash of Sauce -- To ensure a whole number of cans, you'll need to round up. PHP provides [numeric functions][numeric-functions] that can help. +- To ensure a whole number of cans, you'll need to round up. +- PHP provides [numeric functions][numeric-functions] that can help. ## 3. Some Cheese, Please From 93a9829957e3ab9bc440b8ceda4916d491238925 Mon Sep 17 00:00:00 2001 From: Mike Reaney Date: Sat, 15 Nov 2025 16:59:16 +0000 Subject: [PATCH 4/6] Update exercises/concept/pizza-pi/.docs/hints.md Co-authored-by: mk-mxp <55182845+mk-mxp@users.noreply.github.com> --- exercises/concept/pizza-pi/.docs/hints.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/exercises/concept/pizza-pi/.docs/hints.md b/exercises/concept/pizza-pi/.docs/hints.md index 7269e3ff..5ddfbc73 100644 --- a/exercises/concept/pizza-pi/.docs/hints.md +++ b/exercises/concept/pizza-pi/.docs/hints.md @@ -16,7 +16,8 @@ ## 3. Some Cheese, Please - You can cube a number using the [exponentiation operator][arithmetic-operations]. -- You’ll need to round the result down; PHP has a [numeric function][numeric-functions] for that. +- To ensure a whole number of pizzas, you’ll need to round down. +- PHP provides [numeric functions][numeric-functions] that can help. - PHP also provides a [built-in function][pi-function] for pi (π) ## 4. A Fair Share From 8974474126f3e31f646785a0751e890350c8efa6 Mon Sep 17 00:00:00 2001 From: Mike Reaney Date: Sat, 15 Nov 2025 17:23:30 +0000 Subject: [PATCH 5/6] Update exercises/concept/pizza-pi/.docs/hints.md Co-authored-by: mk-mxp <55182845+mk-mxp@users.noreply.github.com> --- exercises/concept/pizza-pi/.docs/hints.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exercises/concept/pizza-pi/.docs/hints.md b/exercises/concept/pizza-pi/.docs/hints.md index 5ddfbc73..7262ff99 100644 --- a/exercises/concept/pizza-pi/.docs/hints.md +++ b/exercises/concept/pizza-pi/.docs/hints.md @@ -18,7 +18,7 @@ - You can cube a number using the [exponentiation operator][arithmetic-operations]. - To ensure a whole number of pizzas, you’ll need to round down. - PHP provides [numeric functions][numeric-functions] that can help. -- PHP also provides a [built-in function][pi-function] for pi (π) +- PHP has a [built-in constant][pi-constant] for pi (π). ## 4. A Fair Share From 877e24def1f02e3684afcca7a0e09fc6ffa90704 Mon Sep 17 00:00:00 2001 From: Mike Reaney Date: Sat, 15 Nov 2025 17:23:38 +0000 Subject: [PATCH 6/6] Update exercises/concept/pizza-pi/.docs/hints.md Co-authored-by: mk-mxp <55182845+mk-mxp@users.noreply.github.com> --- exercises/concept/pizza-pi/.docs/hints.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exercises/concept/pizza-pi/.docs/hints.md b/exercises/concept/pizza-pi/.docs/hints.md index 7262ff99..bb8cbb37 100644 --- a/exercises/concept/pizza-pi/.docs/hints.md +++ b/exercises/concept/pizza-pi/.docs/hints.md @@ -25,5 +25,5 @@ - Use the [modulo operator][arithmetic-operations] (`%`) to get the remainder after division. [arithmetic-operations]: https://www.php.net/manual/en/language.operators.arithmetic.php -[pi-function]: https://www.php.net/manual/en/function.pi.php +[pi-constant]: https://www.php.net/manual/en/function.pi.php [numeric-functions]: https://www.php.net/manual/en/ref.math.php