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.13.tar.gz (3.2 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.13.tar.gz.

File metadata

  • Download URL: jogo_da_adivinhacao_renan_martins-0.1.13.tar.gz
  • Upload date:
  • Size: 3.2 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.13.tar.gz
Algorithm Hash digest
SHA256 c10ae2bed8caa73b8f01cb9e224add3aa4b2f2590e49437d521de9e47bd95c08
MD5 2b96632175f9c14a6ac1b432c7265ff2
BLAKE2b-256 0d7741c9222bbbbe6bdd7d52f36b5bb07e9a73db18e606f331e02870b1eadd0a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jogo_da_adivinhacao_renan_martins-0.1.13-py3-none-any.whl
Algorithm Hash digest
SHA256 3ba05d25df2705b96a6cfb0cfad5f577d9c7409978b83533f1ee589d5d136302
MD5 837b2b931711a03cf808bc7d2aa9a7fe
BLAKE2b-256 73c005c6dde54a618795db50840849bf62b462b8dd40ae5cafaaeaecc93d3fff

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