Common library for Quarto-Games projects.
Project description
Quarto
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
- Player A chooses a piece (from the 16 available) and gives it to Player B.
- Player B places the piece on any empty square, then selects a new piece (from the remaining 15) and gives it to Player A.
- 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:
- Placement: Choose 1 of up to 16 (later fewer) empty squares.
- 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file quarto_lib-3.1.2.tar.gz.
File metadata
- Download URL: quarto_lib-3.1.2.tar.gz
- Upload date:
- Size: 7.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
abf3e6e67139e1e95d79ffef78ec5ec716039bccf434e2b81cc92db0cdfaf574
|
|
| MD5 |
fdfb2e51a78ea057e5bf868d3205a34d
|
|
| BLAKE2b-256 |
300a26d1fe2d3a36d6b0847c1367df226bc3f39a06822d4ad0d67455f2d06a09
|
Provenance
The following attestation bundles were made for quarto_lib-3.1.2.tar.gz:
Publisher:
publish.yml on patapelada/quarto-lib
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
quarto_lib-3.1.2.tar.gz -
Subject digest:
abf3e6e67139e1e95d79ffef78ec5ec716039bccf434e2b81cc92db0cdfaf574 - Sigstore transparency entry: 239253079
- Sigstore integration time:
-
Permalink:
patapelada/quarto-lib@316a3a29898714d2c98206a47485fff1b8cac161 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/patapelada
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@316a3a29898714d2c98206a47485fff1b8cac161 -
Trigger Event:
workflow_run
-
Statement type:
File details
Details for the file quarto_lib-3.1.2-py3-none-any.whl.
File metadata
- Download URL: quarto_lib-3.1.2-py3-none-any.whl
- Upload date:
- Size: 9.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9ff50cc9c72a473e36e93e76befc68305438b8ee33b9125743884071520fe9d8
|
|
| MD5 |
8c154a3c78a18f52dae7f6d5c43fd35f
|
|
| BLAKE2b-256 |
45218f71e2236a933eb9e9e50d4d8bb451da4eafbd8a8475c69d9b440b3e158c
|
Provenance
The following attestation bundles were made for quarto_lib-3.1.2-py3-none-any.whl:
Publisher:
publish.yml on patapelada/quarto-lib
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
quarto_lib-3.1.2-py3-none-any.whl -
Subject digest:
9ff50cc9c72a473e36e93e76befc68305438b8ee33b9125743884071520fe9d8 - Sigstore transparency entry: 239253097
- Sigstore integration time:
-
Permalink:
patapelada/quarto-lib@316a3a29898714d2c98206a47485fff1b8cac161 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/patapelada
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@316a3a29898714d2c98206a47485fff1b8cac161 -
Trigger Event:
workflow_run
-
Statement type: