Skip to main content

Generalized Geography Game Solver

Project description

Generalized Geography Game Solver

Install

$ pip install generalized-geography

Example

import generalized_geography as gg
graph = gg.UnlabeledMultiDiGraph()
graph.add_edges_from([(0, 1), (0, 1), (1, 2), (2, 3),
                     (3, 0), (1, 2), (2, 3), (0, 2)])
solver = gg.DEGSolver(graph)
solver.completely_classify()
print(solver.winlose)
# {0: 1, 1: 0, 2: 1, 3: 0}

Documentation

RDG

Directed Edge/Vertex Geography with Repetitions

DEG

Directed Edge Geography

DVG

Directed Vertex Geography

Two Step DEG

Directed Vertex Geography with Two Step Moves

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

generalized-geography-0.0.8.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

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

generalized_geography-0.0.8-py3-none-any.whl (20.3 kB view details)

Uploaded Python 3

File details

Details for the file generalized-geography-0.0.8.tar.gz.

File metadata

  • Download URL: generalized-geography-0.0.8.tar.gz
  • Upload date:
  • Size: 8.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.4

File hashes

Hashes for generalized-geography-0.0.8.tar.gz
Algorithm Hash digest
SHA256 bab2e6af868a7536aa2d3acb7ad52dd0861eb5e7cf4508538ba6a1d1d3d5b970
MD5 b220fa6ddba069ffb565604d5666f801
BLAKE2b-256 3b06a07094a591f3c261a1b5c109dccbb8b2679ca5693d53755757a56f364998

See more details on using hashes here.

File details

Details for the file generalized_geography-0.0.8-py3-none-any.whl.

File metadata

File hashes

Hashes for generalized_geography-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 011e4acfa5c9a7d5e4ef6d470896b7a8cdbe7ab56b59a65f7a0414930be26072
MD5 83741fb42457f1ade4a574a9624e409f
BLAKE2b-256 315b1fb56c81c5113c24047a0b07a7007134ee31f3cf34d19f3ff2c4deb6bb96

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