Is it possible to make this game?

I want to try to do something like the image that I am going to attach. That you can play alone against the game and that you have intelligence to play fairly well. And I also want to know if you can somehow do the same but play against a friend. Can this be done?

Example of game on scrGame1 screen in the project

But it’s better to use canvas