Git Product home page Git Product logo

octo-safecracker's Introduction

Safecracker

A code-guessing game for Octojam 2021 written in the Octo assembly language for Chip-8.

You play a safecracker with 12 chances to guess a 4-digit passcode. Luckily for you, your tools and flaws in the safe will make it easier.

How to Play

A live version can be played on itch.io with optional touch or mouse controls. Click or tap the running game to enable the keypad.

Emulator requirements

If you don't play the web version, this game requires a Chip-8 implementation that that supports XO-Chip v1.0 instructions, such as Octo.

You can run Octo in the browser and paste the code in, or use another emulator with full XO-Chip support such as c-octo (requires knowledge of how to build from C source).

Rules

Your goal is to guess a 4-digit passcode in 12 tries or fewer. Your current guess is the rightmost column of numbers.

The passcode will not use a digit more than once. If the currently passcode guess repeats digits, an "X" will be displayed above it, and you won't be able to submit it. A valid passcode will display "OK" above it. Decreasing or increasing a digit past 0 or 9 will wrap around to the other side.

After every guess, you will see feedback above it using up to four dots:

  • Every dark dot represents a digit in the correct location
  • Every light dot represents a digit that is somewhere in the passcode, but currently in the wrong place
  • Fewer than four dots means that not all of the digits in your guess are in the passcode
  • 0 dots mean that none of the digits you guessed are in the code

After the 12th guess, the game is over, and you win or lose. You can win earlier than the 12th guess if you deduce the passcode early.

Controls

Use the following keys to play the game:

PC Keyboard Key(s) Chip-8 Keypad Key(s) Game Action
F E Submit current passcode if valid ("OK" above the rightmost column)
1 , 2 1 , 2 Increment/decrement 1st digit
Q , W 4 , 5 Increment/decrement 2nd digit
A , S 7 , 8 Increment/decrement 3rd digit
Z , X A , 0 Increment/decrement 4th digit

Additional Info

The font included is based on Tom Thumb, which is used under CC0 Public Domain Dedication.

There is no sound at release time.

octo-safecracker's People

Contributors

pushfoo avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.