Skip to main content

Gorod Krovi valve step solver.

Project description

Gorod Krovi Valve Solver

During the Easter Egg of the Call of Duty: Black Ops 3 Zombies map Gorod Krovi, we need to solve one step that requires connecting all the valves so that the air can flow from the green-lit valve to the valve containing the cylinder.

Each valve is connected to three other valves as shown in the following image.

Valve Connections

We can view the valves as an Undirected Graph and the solution is to find a Hamiltonian Path (i.e: the path that visits each vertex exactly once) starting from the green-lit valve and finishing at the valve that contains the cylinder.

Installation

This package can be installed with pip.

pip install --upgrade gkvalves

Usage

Use the list subcommand to list all the available locations.

(0) Armory
(1) Department Store
(2) Dragon Command
(3) Supply Depot
(4) Infirmary
(5) Tank Factory

Use the solve subcommand to find a configuration that communicates all the valves. You must supply the location id (number between 0-5) of the green-lit valve and the valve that contains the cylinder.

# Find configuration for Armory (green) -> Department Store (cylinder)
$ gkvalves solve 0 1

Armory: 1
Department Store: This is the ending valve.
Dragon Command: 2
Supply Depot: 3
Infirmary: 3
Tank Factory: 1

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

gkvalves-1.0.2.tar.gz (42.2 kB view details)

Uploaded Source

Built Distribution

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

gkvalves-1.0.2-py3-none-any.whl (30.2 kB view details)

Uploaded Python 3

File details

Details for the file gkvalves-1.0.2.tar.gz.

File metadata

  • Download URL: gkvalves-1.0.2.tar.gz
  • Upload date:
  • Size: 42.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for gkvalves-1.0.2.tar.gz
Algorithm Hash digest
SHA256 89b26b348e5e723d9d411594c67c20b0d9517e241e4249a6dbac825b42a1f421
MD5 e79dce034b27daa227c17aec3ea77a7d
BLAKE2b-256 6607c352431b79fdd9a1932fdac383955574f577ede52812871f91e4f471bd8f

See more details on using hashes here.

File details

Details for the file gkvalves-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: gkvalves-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 30.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for gkvalves-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 159ea449d9892b537a57a0d2ee1150109827e8b067fb23d9610fc797efb48860
MD5 360626a4aa85c5578d45437240bea96d
BLAKE2b-256 bd3f7e6414a1316f318178a9c1f6a8b2bc2b0c3775a1f51d936ac52f02826259

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