baba-is-auto
C++17 Baba Is You simulator
Loading...
Searching...
No Matches
baba_is_auto::Preprocess Class Reference

Preprocess class. More...

#include <Preprocess.hpp>

Static Public Member Functions

static std::vector< float > StateToTensor (const Game &game)
 

Static Public Attributes

static constexpr int TENSOR_DIM = 16
 The dimension of the tensor. (14 + 2)
 

Detailed Description

Preprocess class.

This class contains utility functions for preprocess.

Member Function Documentation

◆ StateToTensor()

static std::vector< float > baba_is_auto::Preprocess::StateToTensor ( const Game game)
static

Converts the game state to the tensor.

Parameters
gameThe game state.
Returns
The converted tensor.

Member Data Documentation

◆ TENSOR_DIM

constexpr int baba_is_auto::Preprocess::TENSOR_DIM = 16
staticconstexpr

The dimension of the tensor. (14 + 2)


The documentation for this class was generated from the following file: