Key-bored is a fun fast-paced game testing your speed, focus, and coordination at your desk. In the game you open up a number of browsers and try your best to click and type the letter into browsers as they appear. The more letters you type, the higher your score, but be careful, a wrong keystroke will cost you a life. The game ends when you either run out of lives or the game time ends. Each game is 60 seconds from when you press start. Can you get the highest score?
The project is made up of a Nextjs front end and a Golang backend. We used Panfactum to bootstrap the repo to guarantee a quick and deterministic developer experience. The only utilities needed are nix, git, and direnv. To run the project from scratch:
- Install nix using the Determinate Nix Installer
- Run the following commands to install git and direnv through nix
nix profile install nixpkgs#git(You can skip if you already have git on your machine)nix profile install nixpkgs#direnv(You can skip if you already have direnv on your machine)
- Use git to clone the repo
- cd into the repo and run
direnv allow. This will download all the required binaries at the right versions to work in the repo. When you exit the directory they will be removed from your path, so no need to worry about any lingering side effects to your machine. - Open a new terminal and cd
packages/server - Run
go mod downloadfollowed bygo run .to start the server - Open a new terminal and cd
packages/client - Run
npm installfollowed bynpm run dev - Open
http://localhost:3000and you are ready to continue on to the How to play section
- Use the link provided on the homepage to open up a set of browsers. We recommend 4-6 for the best experience, but you're welcome to experiment and see what works well for you
- Press start. You should see each of the non-homepage browsers start to explode with letters
- Click on a browser to focus on it and then press a matching key on your keyboard to claim your points. But careful, wrong keystrokes or keystrokes to the wrong window will cost you a life
- The game ends and you can appreciate your high score and how far you've come
Playing alone is fun, but what's life without a little teamwork? Grab a friend and have one of you on the mouse while the other drives the keys for a co-op experience that will test your friendship!
- Linux
- MacOS
- Windows (via wsl)