Skip to content

Commit

Permalink
Update Algorithm WoLF-PHC for SMAC matrix game_PUBLIC.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Alekat13 authored Dec 12, 2020
1 parent a878fc3 commit 6d4cd51
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -237,10 +237,10 @@ def main():
env_info = env.get_env_info()
n_agents = env_info["n_agents"]
n_episodes = 3 # количество повторов
#Визуализация стратегии Вперед, Вперед
forward_both = np.array([[3, 3, 1, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1,
#Визуализация стратегии Вперед, Вперед; realtime=False
forward_both = np.array([[1, 1, 1, 1, 3, 1, 3, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1,
4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[3, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1,
[1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 1, 1, 1, 1, 1, 1, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1,
4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1]])
#Визуализация стратегии Прятаться, Прятаться
hide_both = np.array([[5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 1, 1, 1, 1,
Expand Down Expand Up @@ -305,4 +305,4 @@ def main():
main()




0 comments on commit 6d4cd51

Please sign in to comment.