baba-is-auto
C++17 Baba Is You simulator
Loading...
Searching...
No Matches
RandomAgent.hpp
Go to the documentation of this file.
1// Copyright (c) 2020-2026 Chris Ohk
2
3// I am making my contributions/submissions to this project solely in our
4// personal capacity and am not conveying any rights to any intellectual
5// property of any third parties.
6
7#ifndef BABA_IS_AUTO_RANDOM_AGENT_HPP
8#define BABA_IS_AUTO_RANDOM_AGENT_HPP
9
11
12namespace baba_is_auto
13{
19class RandomAgent final : public IAgent
20{
21 public:
23 virtual ~RandomAgent() = default;
24
28 Direction GetAction(const Game& state) override;
29};
30} // namespace baba_is_auto
31
32#endif
Game class.
Definition Game.hpp:25
IAgent class.
Definition IAgent.hpp:21
RandomAgent class.
Definition RandomAgent.hpp:20
Direction GetAction(const Game &state) override
virtual ~RandomAgent()=default
Default virtual destructor.
Definition IAgent.hpp:14
Direction
An enumerator for identifying the direction.
Definition GameEnums.hpp:119