Skip to content

Commit

Permalink
up image
Browse files Browse the repository at this point in the history
  • Loading branch information
fauzisho committed May 17, 2024
1 parent 89c4026 commit 621d36e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

This repository contains the implementation of a Connect Game Environment using OpenAI's Gym and Pygame for rendering. The environment supports various game modes like Connect 4 and includes features like GUI display, avatar support for players, and different modes of player interaction (human, random).


![demo.png](demo.png)

## Table of Contents

- [Description](#description)
Expand Down
Binary file added demo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion run_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def run_game_env():

while not env.is_done and env.current_step < env.max_steps:
try:
move = env.set_players(player_1_mode='random', player_2_mode='random')
move = env.set_players(player_1_mode='human_gui', player_2_mode='random')
observations, rewards, done, _, info = env.step(move)
env.render(mode='terminal_display')
env.render(mode='gui_update_display')
Expand Down

0 comments on commit 621d36e

Please sign in to comment.