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

File metadata

  • Download URL: hundredandten_automation_naive-0.0.5-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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 5a0370682b1e36da84fb1b8a3a15acd441de3d3251af8f6cdfa5fb2c8841e222
MD5 fc670a5fe793537869aca32574e38e75
BLAKE2b-256 aa63b2e2115f40dd0c4d9ff5864fa9ef93152bc3eb2ea71fd0e6c32959e2ad39

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