Only capture valid keyboard input #2

Closed
opened 2023-12-03 22:57:35 +01:00 by sacha · 1 comment
Owner

At a crucial moment with robots next to the player and you accidentally pressed r instead of t you die.

  • The keyboard input is taken
  • Key pressed doesn't do a thing
  • The robot move one round
  • You die

Potential solution: Build a parser that validates input by looping through <-game.keypresses until it founds something that is accepted

At a crucial moment with robots next to the player and you accidentally pressed `r` instead of `t` you die. - The keyboard input is taken - Key pressed doesn't do a thing - The robot move one round - You die Potential solution: Build a parser that validates input by looping through `<-game.keypresses` until it founds something that is accepted
sacha added this to the Initial Release milestone 2023-12-03 23:59:46 +01:00
sacha added the
🔧 Development
label 2023-12-04 00:04:23 +01:00
sacha added the
🪲 Bug
label 2023-12-04 00:32:15 +01:00
Author
Owner

PEBKAC 😒

PEBKAC 😒
sacha closed this issue 2023-12-05 23:31:16 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: golang/rowboz#2
No description provided.