Skip to main content

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

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

File details

Details for the file hundredandten_automation_naive-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: hundredandten_automation_naive-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.12 {"installer":{"name":"uv","version":"0.11.12","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

Hashes for hundredandten_automation_naive-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 ef97b7712348e6af540de476aa3cbd4fdff3e1a0675a6424c66d48ae339dc8af
MD5 d4849137f43ddac6c28949de4952a637
BLAKE2b-256 de3c0f9dc98cbe045a2a29ea6f06e7f80ee8be97c62eb4569bfa5093be491551

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