I think yes you can since rubric group can be represented as grid word environment see this [link][1] from GitHub they attempted solving using dqn [1]: https://github.com/sekharcvs/RubiksCube