Skip to content
← Back to Community
Byte: The Game
Profile icon
h
has Hacker Plan
timmy_i_chen

Play the game here!

Best played in a separate window. Requires a keyboard - sorry mobile users!

Byte: The Objective

In Byte, the goal is to generate every 8-bit number by flipping switches, one switch at a time.

Here's the catch: you can't generate the same number twice, so you'll have to be systematic with how you count!

(Hint: look up Grey Code)

There's a practice mode that will not end the game if you generate the same number. But the challenge mode is where it all counts!

Backstory

A few months ago the Repl.it team went to an escape the room as part of a team bonding activity. We were in the final room and each of us were spread among different puzzles.

One of the puzzles was a locked box with 8 switches. With not much time left and no clues to help us with the numbers, I did the only thing I could think of - brute force the crap out of the box. I got lucky, and it worked after a few dozen flips.

When we were debriefing afterwards, @turbio claimed he could get through all 256 combinations in a few minutes. I challenged him to do so, he accepted, and it was off to the races. Recently, @turbio and @basicer re-created the lockbox, and showed that it was indeed possible to get all the combinations within a few minutes. I believe at this time of writing @turbio's record is about 2 minutes.

Because physical programming is not my forte and @phoopio and I wanted to add more features, we made this sweet web-based game to simulate the box (sorry @turbio!)

Credits and Acknowledgements

@kognise for water.css
@turbio
and @basicer for inspiration
@phoopio
for finding patterns within grey code

Voters
Profile icon
RashadAbilov
Profile icon
awesome10
Profile icon
Wilke000
Profile icon
mat1
Profile icon
MATHyou
Profile icon
ash15khng
Profile icon
AppleiPad556
Profile icon
noah427
Profile icon
Zavexeon
Profile icon
pyelias
Comments
hotnewtop
Profile icon
Steven_The_GuyT

How many unique numbers are possible for 8 bit? My highest was 254 for 8-bit(practice mode of course :)

Profile icon
MysticalBilly

256 (0 - 255)

Profile icon
Steven_The_GuyT

@MysticalBilly NOOOOO I WAS SO CLOSE AND THEN I GAVE UP lol xd rip me

Profile icon
AmeliaBlackwell

weirdly proud that I managed to do the 3 bit challenge

Profile icon
XavierDD

@timmy_i_chen You think mobile users can't play because of no keyboard? Turns out I have a keyboard module/ bluetooth keyboard.

Profile icon
timmy_i_chen

@XavierDD Whoops. Fair - you got me :P

Profile icon
XavierDD

@timmy_i_chen I saw the red dot notification thinking it were for the python game I posted.

Profile icon
ReshiramWolfu

6.639999999999903 seconds for the easy mode

Profile icon
SimonB

I got all 255 in 144 seconds (practice mode of course).

Profile icon
timmy_i_chen

@SimonB Hey that's really good! What kind of pattern did you follow?

Profile icon
SimonB

@timmy_i_chen
Spam...

Profile icon
AidenWaterman

I got all 255 in 320 seconds by counting in binary
so button-mashing is faster

Profile icon
timmy_i_chen

@AidenWaterman I'll add a guide for counting greycode soon ;) Greycode can be real fast if you can get the sequence down.

Profile icon
WSBIBD

stop spamming me on my GMAIL [email protected]_i_chen

Profile icon
timmy_i_chen

@WSBIBD bruh whos spamming you

Profile icon
Zavexeon

This is really unique. I've never seen a game like this. ^w^
It is hard for me though since I just have an impulse to mash buttons.

Profile icon
algore

an idea for the mobile users is making it so the bits are a clickable button that do the same thing as the asd ghjkl

Profile icon
Murzikal

dude this is cool