All about flooble | fun stuff | Get a free chatterbox | Free JavaScript | Avatars    
perplexus dot info

Home > Games
Tic Tac Toe (Posted on 2002-09-27) Difficulty: 3 of 5
A computer science teacher poses his students a problem.

"I want you write a computer program that plays tic-tac-toe legally and runs through ALL the possible combinations of the game, and finds out the total."

The students settle down to work..

An hour later, a student gets up and proclaims "I've got it! The number of possible combinations in a game is 344,242."

At which point another student quickly replies, "I haven't finished yet, but I'm sure Fred made a mistake in his program."

Why?

(Tic Tac Toe = Noughts and Crosses)

See The Solution Submitted by Cheradenine    
Rating: 3.5455 (11 votes)

Comments: ( Back to comment list | You must be logged in to post comments.)
Games Comment 14 of 14 |
Games have been a popular source of entertainment for centuries, offering a wide range of activities that appeal to various interests. From traditional board games to modern video games, there is something for everyone. Online gaming has also surged in popularity, with platforms offering interactive experiences and opportunities to connect with players from around the world. For example, many users enjoy platforms like 1win connexion, which provide a seamless connection for gaming enthusiasts to participate in a variety of casino-style games, sports betting, and more. These online options have transformed the gaming landscape, making it easier than ever to enjoy your favorite games from the comfort of your home.
  Posted by JamesYawn on 2024-12-24 11:29:58
Please log in:
Login:
Password:
Remember me:
Sign up! | Forgot password


Search:
Search body:
Forums (0)
Newest Problems
Random Problem
FAQ | About This Site
Site Statistics
New Comments (7)
Unsolved Problems
Top Rated Problems
This month's top
Most Commented On

Chatterbox:
Copyright © 2002 - 2025 by Animus Pactum Consulting. All rights reserved. Privacy Information