forked from minetest/minetest
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Normalizes mouse action space for gym checker
- Loading branch information
Showing
2 changed files
with
12 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,11 @@ | ||
import minetester | ||
import gymnasium as gym | ||
from gymnasium.utils.env_checker import check_env | ||
|
||
env = gym.make("Minetest-v0") | ||
|
||
check_env(env.unwrapped) | ||
# Note: render check is skipped because it creates | ||
# a new environment for each render_mode without incrementing | ||
# the environment and server ports | ||
# TODO implement automatic port incrementation and check render | ||
check_env(env.unwrapped, skip_render_check=True) |