Hi all,
I'm dealing with a QML ping pong game.
https://imgur.com/a/oE8QmAv
It now works very well. At the beginning, the ball starts moving automatically from the center of the table towards the right (five times, then the turn changes to the left side this time) and when the right/left paddle hits it, it reflects towards the opposite direction approaching the other paddle.
If a paddle hits the ball while moving downwards, the ball follows that direction and moves downwards, and the same for upwards as well.
Now it's partly boring, because the player must play with both paddles, that is, he is his opponent too!
To make the game more realistic, we need to have one of the paddles play the game automatically, just like any other simple computer games we've ourselves played on a single player mode.
Now what's your idea for that goal please? Since QML can use C++ code, can I use AI in C++ to do the job? If so, how to start learning it in C++ please?