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.4-py3-none-any.whl.

File metadata

  • Download URL: hundredandten_automation_naive-0.0.4-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

Hashes for hundredandten_automation_naive-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 29708a88d642c94209a9363726518d19e1afce785c87d7a8e9552cd18f751a40
MD5 95e60f08258b8d4222afcc3c6d2166fb
BLAKE2b-256 84553982a3ccdcfed8fa7caf853c677cd0df33dff72ed6b28d0a6187a0e15f47

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