Skip to main content

No project description provided

Project description

🎯 Jogo da Adivinhação (CLI)

PyPI version Python 3.13+ License: MIT

Jogo direto no terminal: você pensa em um número entre 1 e 63 e o programa descobre qual é só fazendo algumas perguntas.


Instalação

Linux/Mac (bash)

pip install jogo-da-adivinhacao-renan-martins

Windows (PowerShell)

pip install jogo-da-adivinhacao-renan-martins

Como executar

Depois de instalar, é só rodar:

jogo-adivinha

Como jogar

  1. Pense em um número entre 1 e 63
  2. Responda s ou n para cada cartela que aparecer
  3. Veja O programa vai adivinhar seu número com poucas perguntas

Atualização

Para atualizar para a versão mais recente:

pip install --upgrade jogo-da-adivinhacao-renan-martins

Como funciona?

O jogo usa representação binária dos números:

  • Cada cartela representa um bit específico
  • Suas respostas "montam" o número em binário

Exemplo: Se você pensou em 13:

  • Binário: 1101
  • Temos 3 bits ligados (1) e 1 bit desligado (0)
  • Olhando da direita para esquerda:
    • Cartela 1 (1): Sim
    • Cartela 2 (2): Não
    • Cartela 3 (4): Sim
    • Cartela 4 (8): Sim
  • Somando os primeiros valores das cartelas respondidas com "Sim": 1 + 4 + 8 = 13

Links úteis


Autor

Renan Martins

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jogo_da_adivinhacao_renan_martins-0.1.10.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file jogo_da_adivinhacao_renan_martins-0.1.10.tar.gz.

File metadata

  • Download URL: jogo_da_adivinhacao_renan_martins-0.1.10.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.12.3 Linux/5.15.167.4-microsoft-standard-WSL2

File hashes

Hashes for jogo_da_adivinhacao_renan_martins-0.1.10.tar.gz
Algorithm Hash digest
SHA256 c290d9c5b90e68b2001bf0155ac9fd8570b506516ce519278868d8ad4efbce1c
MD5 3f4777ed530d7355afb405b3dfa039b6
BLAKE2b-256 da3c9c3d47014ec6b87fc486da90c43f31df4c12e2f5795c9fc9d994afcede31

See more details on using hashes here.

File details

Details for the file jogo_da_adivinhacao_renan_martins-0.1.10-py3-none-any.whl.

File metadata

File hashes

Hashes for jogo_da_adivinhacao_renan_martins-0.1.10-py3-none-any.whl
Algorithm Hash digest
SHA256 446adbeb5f642690e312dc02b021b175cb18e3e27ac3f7e998db6c832a371440
MD5 efeb2aa708049475cb4e41d6ae41ff9b
BLAKE2b-256 8864f8a4150db4efa0545ce595393a41f9e366660d7035584e4ba96343b856f5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page