amazons

Amazons

The Game of the Amazons is a two-player abstract strategy game invented in 1988 by Walter Zamkauskas of Argentina. The game is played by moving pieces and blocking the opponents from squares, and the last player able to move is the winner.

Roadmap

amazons_env

amazons_env.raw_env inherits from pettingzoo.AECEnv. As action masking is not implemented, it includes a random_action method to generate a random (valid) action. Note that this method relies on brute force and can be computationally expensive.

import amazons_env
env = amazons_env.env()
env.reset()

for agent in env.agent_iter():
    observation, reward, termination, truncation, info = env.last()

    if termination or truncation:
        action = None
    else:
        action = env.unwrapped.random_action()

    env.step(action)

env.close()

For the moment, amazons_env.raw_env has the following limitations:

Requirements

Reference