Getting Started
How to Run Path-to-Zero
GitHub Codespaces
GitHub account required, no Julia installation required
- Navigate to the following GitHub page and click the "Code" button.
- Click the "Codespaces" tab.
- Click the "Create codespace on main" button.
- Once the codespace is created, you can start the game by running the following command in the command line:
bash run_game.sh
or
make start_game
- Navigate to
localhost:8000
in your web browser to access the game, or use ctrl+click (or cmd+click on Mac) on the URL that appears in the terminal.
You can configure and set up prebuilds for your own fork of the game to speed up the process of launching the codespace. For more information, see the GitHub documentation.
By default, all accounts have a GitHub Codespaces spending limit of $0 USD, which prevents users from creating or opening codespaces once their personal compute time limits are exceeded. However, if you have set up spending limits, please remember to stop the codespace when you are done playing the game to avoid incurring charges. See here for more information.
Local Installation
Install Julia: We recommend following the Julia installation guide.
Clone the repository: You can clone the repository by typing the following command in your command line:
git clone https://github.com/PrincetonZEROLab/Path-to-Zero.git
cd Path-to-Zero
If Git is not installed, you can download the repository as a zip file by clicking the "Code" button on the GitHub page and then clicking the "Download ZIP" button.
- Install the game: To install the game, type the following command in your command line:
julia -e 'import Pkg; Pkg.activate("."); Pkg.instantiate()'
- Run the game: To run the game, use the following commands:
On Linux/MacOS:
bash run_game.sh
On Windows:
julia --project -q -i -e "using Pkg; Pkg.precompile(); using GenieFramework; Genie.loadapp(); up();"
- Launch the game: Open your web browser and go to
http://localhost:8000/
to access the game.
How to Play Path-to-Zero
For detailed game instructions, please refer to the Game play instructions section of the manual.