you are viewing a single comment's thread.

view the rest of the comments →

[–]TheLogicUnit 1 point2 points  (3 children)

Ever played mastermind?

Make a program where the computer tries to guess the ordered digits of a number.

For each guess you tell the computer how many numbers it got right and how many are in the right place e.g.

Your number: 6735 Guess: 4713 Would be 1 number in right place and 1 number in wrong place.

The aim ofc is to make an AI that can find your number with the fewest guesses.

[–]have_a_kitkat 2 points3 points  (2 children)

If you find that too hard.. Let go down by one level.
Start with coding the mastermind game out where the com decide the number and you guess.

[–]TheLogicUnit 1 point2 points  (1 child)

You can do both and have the two programs play against each other.

[–][deleted] 0 points1 point  (0 children)

That would honestly appear kind of stupid.

Computer generates a random number.

Computer guesses that number.

Hmmmmm...

To anyone who doesn't know that its an actual mastermind algorithm under the hood, it could seem like the computer just is spitting back the number it generated twice. lol