From 1add55b012cfe26208a0bf96d3a5d81cd0dd69f0 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Fri, 15 May 2026 13:59:41 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Palette:=20Add=20keyboard=20inst?= =?UTF-8?q?ructions=20and=20score=20accessibility=20to=20Mario=20game?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Added visible `#instructions` box in the UI guiding players to use Space or Up Arrow. - Scoped new UI elements safely within `src/views/mario-game.njk`. - Added `aria-live="polite"` and `aria-atomic="true"` to `#score` to enhance screen reader support for dynamic game score updates. - Removed invalid `venv` entry from `requirements.txt` to fix CI and local environment test suite setup. Co-authored-by: EiJackGH <172181576+EiJackGH@users.noreply.github.com> --- requirements.txt | 1 - src/views/mario-game.njk | 16 +++++++++++++++- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/requirements.txt b/requirements.txt index cfaa995..4ad1501 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,3 @@ numpy pandas requests -venv diff --git a/src/views/mario-game.njk b/src/views/mario-game.njk index 67b6bd7..7e49bb3 100644 --- a/src/views/mario-game.njk +++ b/src/views/mario-game.njk @@ -52,13 +52,27 @@ font-size: 20px; font-family: Arial; } + + #instructions { + position: absolute; + top: 10px; + right: 10px; + color: white; + font-family: Arial; + font-size: 16px; + background: rgba(0, 0, 0, 0.5); + padding: 10px; + border-radius: 5px; + text-align: right; + }
-
Score: 0
+
Score: 0
+
Press Space or Up Arrow to jump!