{"id":134,"date":"2025-07-19T10:28:28","date_gmt":"2025-07-19T10:28:28","guid":{"rendered":"https:\/\/cullyeducation.co.uk\/?page_id=134"},"modified":"2026-04-07T14:31:16","modified_gmt":"2026-04-07T14:31:16","slug":"rhifs-favourite-games","status":"publish","type":"page","link":"https:\/\/cullyeducation.co.uk\/?page_id=134","title":{"rendered":"Rhif&#8217;s Favourite Games"},"content":{"rendered":"\n<p>Rhif loves to play <a href=\"https:\/\/dduarte.github.io\/numberle\/\">Numberle<\/a>.  Discover the 5 digit number before your friends to win. <\/p>\n\n\n\n<div class=\"wp-block-buttons is-content-justification-center is-layout-flex wp-container-core-buttons-is-layout-a89b3969 wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/dduarte.github.io\/numberle\/\">Play Numberle<\/a><\/div>\n<\/div>\n\n\n\n<p>Use &#8216;Rhif&#8217;s Tips&#8217; to help you beat other players to the answer!<\/p>\n\n\n\n<!DOCTYPE html>\n<html>\n<head>\n  <title>Numberle Game<\/title>\n<\/head>\n<body>\n  <h1>Can you guess the number?<\/h1>\n  <p>Guess the number between 1 and 100:<\/p>\n  <input type=\"number\" id=\"guessInput\">\n  <button onclick=\"checkGuess()\">Guess<\/button>\n  <p id=\"feedback\"><\/p>\n  <p id=\"attempts\">Attempts: 0<\/p>\n\n  <script>\n    let randomNumber = Math.floor(Math.random() * 100) + 1;\n    let attempts = 0;\n\n    function checkGuess() {\n      const guessInput = document.getElementById(\"guessInput\");\n      const feedback = document.getElementById(\"feedback\");\n      const attemptsElement = document.getElementById(\"attempts\");\n\n      const guess = parseInt(guessInput.value);\n\n      if (isNaN(guess) || guess < 1 || guess > 100) {\n        feedback.textContent = \"Please enter a valid number between 1 and 100.\";\n        return;\n      }\n\n      attempts++;\n      attemptsElement.textContent = \"Attempts: \" + attempts;\n\n      if (guess === randomNumber) {\n        feedback.textContent = \"Congratulations! You guessed the number!\";\n        guessInput.disabled = true;\n      } else if (guess < randomNumber) {\n        feedback.textContent = \"Too low!\";\n      } else {\n        feedback.textContent = \"Too high!\";\n      }\n\n      guessInput.value = \"\"; \/\/ Clear the input after each guess\n    }\n  <\/script>\n<\/body>\n<\/html>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Rhif loves to play Numberle. Discover the 5 digit number before your friends to win. Use &#8216;Rhif&#8217;s Tips&#8217; to help you beat other players to the answer! Numberle Game Can you guess the number? Guess the number between 1 and 100: Guess Attempts: 0<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":131,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-134","page","type-page","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/cullyeducation.co.uk\/index.php?rest_route=\/wp\/v2\/pages\/134","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cullyeducation.co.uk\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/cullyeducation.co.uk\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/cullyeducation.co.uk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cullyeducation.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=134"}],"version-history":[{"count":34,"href":"https:\/\/cullyeducation.co.uk\/index.php?rest_route=\/wp\/v2\/pages\/134\/revisions"}],"predecessor-version":[{"id":737,"href":"https:\/\/cullyeducation.co.uk\/index.php?rest_route=\/wp\/v2\/pages\/134\/revisions\/737"}],"up":[{"embeddable":true,"href":"https:\/\/cullyeducation.co.uk\/index.php?rest_route=\/wp\/v2\/pages\/131"}],"wp:attachment":[{"href":"https:\/\/cullyeducation.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=134"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}