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.9.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.9.tar.gz.

File metadata

  • Download URL: jogo_da_adivinhacao_renan_martins-0.1.9.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.9.tar.gz
Algorithm Hash digest
SHA256 e773b46d0cc9b0510de135853624cf33af12eae69ecb887deb937485cb9fa05a
MD5 a5f3429dc67895fd4862428ae39b4430
BLAKE2b-256 92a566cad36967eeb739ff55b851598ea58b7d19a913bf1d56e68c6f443de109

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jogo_da_adivinhacao_renan_martins-0.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 907ce780909139d9a9ab7e9739ee5d39b6bd5c40a8520bc425390227572a3141
MD5 d513216d52f22e63994a3e55b5030f56
BLAKE2b-256 b0d7715da2a0f81ec2b6d8667b50ff08a85cd86991e68a9d608bb4c2f13e46c0

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