Tic Tac Toe Quest

Jul 29, 2026 Last reply: vor 1 Monat 5 Replies
Jump to replies (5)

Write a program that calculates the number of possible ways to win a Tic Tac Toe round and the number of possible undecided rounds. Don't show the code here immediately but after some days. Just show the results. C and C++ are allowed since the solution will be very similar.


Possibly a very famous assignment for students doing computer science. But I have never ever written a game.

I recommend the exercise. It's quite different from the "normal" type of programming we do in every day programming. At least, those of us who don't work at gaming companies.

In comp.lang.c, I recommend starting with /SDL Game Development/ by Shaun Mitchell. I prefer that book over the lazy fu tutorial, or what- ever it's called.

It should be trivial to port the code to SDL3.

That said, my professional game development "career" if we can use that term, was limited to C# in then-Unity. Since then, Unity has changed license terms, so I can't recommend it anymore.

Maybe I'll make a commercial game in SDL one of these years.

There's no C# group that I know of, so I'll add comp.theroy instead.

Not at all. You seem to believe in /beautiful mathematics/. Why don't you prove some linear algebra then? What is your favorite linear algebra textbook?

I don't need to subscribe to more newsgroups, but I'll keep those in mind, thank you.

You spelled VAXen wrong. I was not aware of any gaming VAXen. Is there already a VAX in the Raspberry form factor?

I haven't watched those videos yet. In the mean time, you can have a screenshot of my VAX emulator project. It's written in C and C++, so almost on topic here.

formatting link

I believe I did not share this screenshot before on comp.lang.c.

Johann | email: invalid -> com | http://www.myrkraverk.com/blog/ I'm not from the Internet, I just work there. | via Easynews.com

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required