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.
Tic Tac Toe Quest
Jul 29, 2026
Last reply: vor 4 Stunden
11 Replies
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.
Gaming programming and related graphics are very related to cartoons, animation, robotics and puppeteering (muppets). :)
It's like shuffling playing cards.
rec.toys.lego, comp.sys.raspberry-pi alt.fan.starwars japan.anime comp.robotics.misc
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.
Computer graphics and A.I. in some ways are just mathematics, beautiful or not.
And gaming theories in economics and maybe medicine notably vaccines? :)
You spelled VAXen wrong. I was not aware of any gaming VAXen. Is there already a VAX in the Raspberry form factor?
LOL!
I wouldn't think it would take much to write a VAX emulator to run on a Pico..
In a Time of Universal Deceit, Telling the Truth Is a Revolutionary Act.
- George Orwell
I think you mixed up my reply with another thread about VAX and maybe "VAXen".
I and my classmate did write a simple line editor using Pascal in a VAX environemnt (VAX/VMS?). My copy of its source codes were lost.
I knew another classmate doing a final-year project using VAX as well, about converting a distribution graph back to a spreadsheet.
vax pascal - Google 搜尋
formatting link
vax/vms - Google 搜尋
formatting link
@~@ Simplicity is Beauty! Remain silent! Drink, Blink, Stretch!
/ v \ May the Force and farces be with you! Live long and prosper!!
/( _ )\ https://sites.google.com/site/changmw/
^ ^ https://github.com/changmw/changmw
The game is afoot... Meow...
For your curiosities:
VAX vs Raspberry Pi - Which is Faster? - ShopTalk! - YouTube
formatting link
I Bought a $200K VAX on eBay – Now It Runs My Smart Lights! - YouTube
formatting link
Don't Tell My Wife! I bought ANOTHER $100K VAX on eBay! - YouTube <>
formatting link
>
@~@ Simplicity is Beauty! Remain silent! Drink, Blink, Stretch!
/ v \ May the Force and farces be with you! Live long and prosper!!
/( _ )\ https://sites.google.com/site/changmw/
^ ^ https://github.com/changmw/changmw
The game is afoot... Meow...
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
More power to your elbow on that one!
New Socialism consists essentially in being seen to have your heart in
the right place whilst your head is in the clouds and your hand is in
someone else's pocket.
Join the Discussion
Have something to add? Share your thoughts — no account required.
Didn't find your answer?
Ask the community — no account required