Skip to content

Commit

Permalink
Deployed 9b97fbe with MkDocs version: 1.5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Unknown committed Nov 8, 2023
0 parents commit b4e28da
Show file tree
Hide file tree
Showing 118 changed files with 37,629 additions and 0 deletions.
Empty file added .nojekyll
Empty file.
819 changes: 819 additions & 0 deletions 404.html

Large diffs are not rendered by default.

1,186 changes: 1,186 additions & 0 deletions animal_shogi/index.html

Large diffs are not rendered by default.

3,200 changes: 3,200 additions & 0 deletions api/index.html

Large diffs are not rendered by default.

1,014 changes: 1,014 additions & 0 deletions api_usage/index.html

Large diffs are not rendered by default.

Binary file added assets/2048_dark.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/2048_light.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
64 changes: 64 additions & 0 deletions assets/_mkdocstrings.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@

/* Avoid breaking parameter names, etc. in table cells. */
.doc-contents td code {
word-break: normal !important;
}

/* No line break before first paragraph of descriptions. */
.doc-md-description,
.doc-md-description>p:first-child {
display: inline;
}

/* Max width for docstring sections tables. */
.doc .md-typeset__table,
.doc .md-typeset__table table {
display: table !important;
width: 100%;
}

.doc .md-typeset__table tr {
display: table-row;
}

/* Defaults in Spacy table style. */
.doc-param-default {
float: right;
}

/* Keep headings consistent. */
h1.doc-heading,
h2.doc-heading,
h3.doc-heading,
h4.doc-heading,
h5.doc-heading,
h6.doc-heading {
font-weight: 400;
line-height: 1.5;
color: inherit;
text-transform: none;
}

h1.doc-heading {
font-size: 1.6rem;
}

h2.doc-heading {
font-size: 1.2rem;
}

h3.doc-heading {
font-size: 1.15rem;
}

h4.doc-heading {
font-size: 1.10rem;
}

h5.doc-heading {
font-size: 1.05rem;
}

h6.doc-heading {
font-size: 1rem;
}
Binary file added assets/animal_shogi_dark.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/animal_shogi_light.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/backgammon_dark.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/backgammon_light.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/bridge_bidding_dark.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/bridge_bidding_light.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/chess_dark.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/chess_light.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/connect_four_dark.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/connect_four_light.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
113 changes: 113 additions & 0 deletions assets/favicon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/gardner_chess_dark.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/gardner_chess_light.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 25 additions & 0 deletions assets/generate_gif.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import os
import sys
import jax
import pgx
from pgx.experimental.utils import act_randomly

os.makedirs("tmp", exist_ok=True)

env_id: pgx.EnvId = sys.argv[1]
color_theme = sys.argv[2]
env = pgx.make(env_id, auto_reset=True)
init = jax.jit(env.init)
step = jax.jit(env.step)

rng = jax.random.PRNGKey(9999)

states = []
rng, subkey = jax.random.split(rng)
state = init(subkey)
# while not state.terminated.all():
for i in range(50):
state.save_svg(f"tmp/{env_id}_{i:03d}.svg", color_theme=color_theme)
rng, subkey = jax.random.split(rng)
action = act_randomly(subkey, state.legal_action_mask)
state = step(state, action)
22 changes: 22 additions & 0 deletions assets/generate_gif.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#! /bin/bash
set -e

# light theme
rm -rf tmp
python3 generate_gif.py $1 light
cd tmp
inkscape --export-type=png *.svg
convert *.png "$1"_light.gif
mv "$1"_light.gif ../
cd ..

# dark theme
rm -rf tmp
python3 generate_gif.py $1 dark
cd tmp
inkscape --export-type=png *.svg
convert *.png "$1"_dark.gif
mv "$1"_dark.gif ../
cd ..

rm -rf tmp
Binary file added assets/go-19x19_dark.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/go-19x19_light.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/go_dark.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/go_light.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/hex_dark.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/hex_light.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
113 changes: 113 additions & 0 deletions assets/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit b4e28da

Please sign in to comment.