Naive strategy player for the game Hundred and Ten
Project description
hundredandten-automation-naive
Naive baseline automation strategy for the card game Hundred and Ten.
This package implements a simple rule-based player that operates entirely on GameState with no direct engine dependency. It accepts a GameState and returns an AvailableAction following a hard-coded strategy.
from hundredandten.state import GameState
from hundredandten.automation import naive
# construct a game state
available_action = naive.action_for(game_state)
print(available_action)
Exports
action_for(state: GameState) -> AvailableAction
Returns the naive player's suggested action for the current game state. Covers all phases: bidding, trump selection, discard, and trick play.
This is the only public API. Pass it directly to EngineAdapter.action_for as the decision function.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
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 hundredandten_automation_naive-0.0.3-py3-none-any.whl.
File metadata
- Download URL: hundredandten_automation_naive-0.0.3-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d97e08d7eb494de6121c657d7f35b88f6847ed22f52d96c03dda25a72a856e9f
|
|
| MD5 |
448921f6c5ee0f799d94ff5cc6bac974
|
|
| BLAKE2b-256 |
f36867b80edc901baba1d921d7ee244278cebc0d6b36603d1a1338fccbbae6b7
|