Advertisement

drawing lines in SDL

Started by December 29, 2024 08:54 PM
7 comments, last by Alberth 2 weeks ago

I want draw a line in SDL this is new to me so I am unsure of how to start.

Which version of SDL?

Are you planning on learning 3D graphics?

Advertisement

I found out how to draw a line, thx

Which method did you use to solve your problem?

I am working on a simple little tic tac toe game using sdl my only problem is how to implement the computer player

you can't implement minimax by drawing lines in SDL.

Dev careful. Pixel on board.

Advertisement

yes I know

pbivens67 said:
my only problem is how to implement the computer player

Make it play at a random valid position at first, and improve from there.

Optimal play (as in, aiming for the shortest way to winning) is a solved problem, but it's so good that you have no chance at all (especially if it plays first). Thus I think it should play lass than optimal, for the player to have fun.

Advertisement