Arcade › Cofre
Cofre
About Cofre
How to play
Play right here in your browser without an account or download. Follow the controls shown in the game, and use Play fullscreen for a larger view.
Reviews & feedback
Join Discord ↗No reviews yet. Be the first to share one.
Make your own game
Cofre was built by Maynes Martinez Velazquez with the Cinevva game creator: describe the game you want in chat, watch it get built, and play it in your browser minutes later.
Remix Cofre opens the real game in the creator and forks its actual files, chat and design doc, so you start from the code rather than from a description.
Read the build brief for Cofre
Cinevva's analyzer read this game's design doc and its source, then wrote the brief below. "Make your own" hands it to the game creator as your opening message, so you start from a real spec rather than a one-line idea.
Recreate “Cofre,” a Portuguese-language, single-screen, UI-driven safe-cracking logic puzzle. This is not a 3D scene: show a centered, vertically arranged web-game panel against a very dark teal/green radial-gradient background. The panel is about 480px wide at most, dark translucent green-charcoal with a thin muted green border, rounded corners, subtle inset highlight and deep shadow. Use warm ivory text, muted sage-gray secondary text, and antique gold accents. At the top center place small uppercase, widely tracked gold text “DESAFIO DE SEGURANÇA,” then the large bold title “COFRE,” then the subtitle “Descubra o código secreto de 4 dígitos.” Below it draw a prominent circular safe dial: thick bronze/gold rim, dark green radial-gradient metal face, shadows, and small gold index marks at top and right. In its center is a rounded, nearly black inset digital display with four character slots, initially represented by four muted dots (·); entered digits glow pale gold in a monospaced font. Under the dial, center a short instructional/status message in muted gray, with important phrases highlighted in gold/strong weight. Provide a tactile numeric keypad in a compact three-column grid: rows 1 2 3, 4 5 6, 7 8 9, then a backspace key (⌫), 0, and “Limpar.” Buttons are rounded dark sage-charcoal with fine green-gray outlines, bold ivory numerals, and gold utility-key labels; show a pressed-state scale/shade effect. Below, place two wide side-by-side buttons: highlighted bronze-gold “Testar código” and dark green-gray “Novo cofre.” At the bottom, add a fine divider and a tracked uppercase attempt counter in muted gray, formatted “TENTATIVAS 0 / 8”; below it, display a compact scrollable history of guesses and feedback, with newest guess first. Add small unobtrusive helper text “Use o teclado numérico ou os botões na tela” when there is room. Keep the whole panel responsive and vertically centered, tightening spacing on short screens. Gameplay: at the start and whenever “Novo cofre” is pressed, generate a fresh random secret consisting of exactly four different digits chosen from 0–9, clear the current entry and guess history, reset attempts to 0, and return to the locked/playing state. The secret is never shown during play. Players enter digits with the on-screen keypad or physical number keys. Accept no repeated digit in the current guess, and ignore extra input after four digits. Backspace removes only the last entered digit; “Limpar” empties the current guess. The display uses dots for unfilled positions. When four distinct digits have been entered, update the message to say “Código pronto. Toque em Testar código.” The player has up to eight submitted guesses. Pressing “Testar código” with fewer than four digits does not spend an attempt and instead prompts “Digite 4 dígitos diferentes antes de testar.” A valid submission increments the counter and adds a history row showing attempt number and the four-digit guess, plus two counts: digits in the correct position and digits present in the secret but in a different position. Use wording like “N na posição certa · M em outra posição.” Also show a summary status with remaining attempts. A correct guess (four exact positions) wins: show an unlocked indicator and “Cofre aberto!” with the number of attempts, and disable further testing. On the eighth incorrect guess, lose: show a locked indicator, state that attempts are exhausted, reveal the secret code, and tell the player to choose “Novo cofre.” After each valid guess, clear the entry display for the next guess. “Novo cofre” remains the way to start over. Enter submits, and Backspace works from the keyboard. The interface and all game text should remain in Brazilian Portuguese; do not add movement, enemies, animation-heavy gameplay, extra clues, or other mechanics.