Skip to main content

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

Release files for gkvalves 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gkvalves 1.0.2
File Size Uploaded
gkvalves-1.0.2.tar.gz 42.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for gkvalves 1.0.2
File Interpreter ABI Platform
gkvalves-1.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 72.4 kB

Release files / gkvalves-1.0.2.tar.gz

Download URL gkvalves-1.0.2.tar.gz
Size 42.2 kB
Tags Source
SHA-256 checksum
How to use checksums
89b26b348e5e723d9d411594c67c20b0d9517e241e4249a6dbac825b42a1f421
BLAKE2b-256 checksum
How to use checksums
6607c352431b79fdd9a1932fdac383955574f577ede52812871f91e4f471bd8f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.4

Release files / gkvalves-1.0.2-py3-none-any.whl

Download URL gkvalves-1.0.2-py3-none-any.whl
Size 30.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
159ea449d9892b537a57a0d2ee1150109827e8b067fb23d9610fc797efb48860
BLAKE2b-256 checksum
How to use checksums
bd3f7e6414a1316f318178a9c1f6a8b2bc2b0c3775a1f51d936ac52f02826259
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.4

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page