Skip to main content

Common library for Quarto-Games projects.

Project description

Quarto

Test Release

Objective

To create a line of four pieces (horizontal, vertical, or diagonal) that share at least one common characteristic:

  • Color: light or dark
  • Shape: round or square
  • Height: tall or short
  • Top: solid or hollow

The twist: you choose the piece your opponent must place on the board.

Game Setup

  • Board: 4x4 grid (16 positions)
  • Pieces: 16 unique combinations of 4 binary characteristics (2⁴ = 16)

Gameplay Sequence

  1. Player A chooses a piece (from the 16 available) and gives it to Player B.
  2. Player B places the piece on any empty square, then selects a new piece (from the remaining 15) and gives it to Player A.
  3. Continue until someone forms a winning line or all squares are filled (draw).

Strategic Depth

Because you give your opponent their piece:

  • You try to avoid giving them a winning move
  • And you try to force them into giving you a winning opportunity

Game Complexity

Each turn involves two key decisions:

  1. Placement: Choose 1 of up to 16 (later fewer) empty squares.
  2. Piece selection: Choose 1 of the remaining unplaced pieces for the opponent.

Game Tree Size

Turn 1: 16 choices (piece to give)
Turn 3: 15 placements × 14 piece choices
Turn 2: 16 placements × 15 piece choices
...
Final Turn: Placement of the last piece

While not all paths are valid due to early wins, the maximum number of game states is large:

  • 16! piece placements × 16! orderings ≈ 2×10³⁶ possible games (theoretical upper bound)

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

quarto_lib-2.1.6.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

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

quarto_lib-2.1.6-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

Details for the file quarto_lib-2.1.6.tar.gz.

File metadata

  • Download URL: quarto_lib-2.1.6.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for quarto_lib-2.1.6.tar.gz
Algorithm Hash digest
SHA256 8f84695c36815caf2a3e19084dfb6b7d1323f85f5dcced4c5fea4870f7ec2208
MD5 45fc5a95c07a312a21d6e9bbc7a4ee63
BLAKE2b-256 d5138202d71b1c2d1d541509566c92fcb21ff80fa03a0ce073853436dce539c7

See more details on using hashes here.

Provenance

The following attestation bundles were made for quarto_lib-2.1.6.tar.gz:

Publisher: publish.yml on patapelada/quarto-lib

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file quarto_lib-2.1.6-py3-none-any.whl.

File metadata

  • Download URL: quarto_lib-2.1.6-py3-none-any.whl
  • Upload date:
  • Size: 9.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for quarto_lib-2.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 6c2fb4cb80b69a6935fd1c24e8663e5db1e730e08e1eeec30ef29e2be70e080d
MD5 eecc2b39dee936be4c510fc379c9d67f
BLAKE2b-256 af599a2f0e58567c73202d3a0a4b750429436c1e55343f7d952f28af267a316c

See more details on using hashes here.

Provenance

The following attestation bundles were made for quarto_lib-2.1.6-py3-none-any.whl:

Publisher: publish.yml on patapelada/quarto-lib

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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