Install gnubik by entering the following commands in the terminal:
sudo apt update sudo apt install gnubik
Description:
3D Rubik's cube game
GNUbik is an interactive, graphical, single player puzzle. This free program renders an image of a cube, like that invented by Erno Rubik. You have to manipulate the cube using the mouse. When each face shows only one colour, the game is solved. . It uses Gtk+ and/or X11 and Mesa / OpenGL.
Homepage: http://www.gnu.org/software/gnubik/
Version: 2.4.3-2
Section: universe/games