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

CDEG

Changeable Directed Vertex Geography

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.7.tar.gz (7.9 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.7-py3-none-any.whl (16.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: generalized-geography-0.0.7.tar.gz
  • Upload date:
  • Size: 7.9 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.7.tar.gz
Algorithm Hash digest
SHA256 f16c8655c9575deded620a40905c20d7d8df7ddd17facf38a57bb33b38fbeaea
MD5 a199343bcdb611950a08b3bea398bdae
BLAKE2b-256 05e8ab1a881171b93bfbb57ada3e5716dc4c116a24e0c7c702d4ffafb964f311

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for generalized_geography-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 1e3da163ebcd0d115f324d6d3980de9d3c833b0aeb56d523fa7dca3bfba88e10
MD5 5aa83ab1038a84dbbee7114434942896
BLAKE2b-256 719fc930959a07ca71b012f85f2843e8aabd27dce6bee9f4b2d1fa0a05ad9555

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