Tic Tac Toe (now with versus ai mode!!)
CodingCactus (2433)

The classic game of Tic Tac Toe

2 Modes:

  • CPU; play against computer (now with three difficulty settings)
    • Easy
    • Hard
    • Impossible
      • If you manage to beat impossible mode please comment with
        proof and how you did it.
  • 2 Player; play with friends

Aim of the game:

  • Get 3 of your symbols in a row

How to play:

  • Enter coordinate of place that you would like put your symbol (1,1 (column, row))

Thanks to:

But mainly extremely large thanks to @Coder100 for explaining them!!

Have fun and if you do: make sure to upvote! :)

edit: Now has colours :)

edit 2: Now has difficulty levels :)

Edit 3: Now has Impossible difficulty level :)

You are viewing a single comment. View All

I wa thinking, maybe add more intelligence in the artificial intelligence? Try making the computer smarter, and make it control what it does.

CodingCactus (2433)

@CodeABC123 I'm not really sure on how to do that, would it just be adding more possibilities to the CPU and making it more proactive?


So it’s kind of like this:
So, maybe
AI = O , P1 = X


Mane you can teach the computer to add the symbol where it is needed most, in this case, the bottom left. If you want to go another step, you can make the computer predict what the person will do next.
Hope that makes sense.

CodingCactus (2433)

@CodeABC123 The computer already would go bottom left, because it must protect from the player winning


Then make it predict what the person would do next. @CodingCactus

CodingCactus (2433)

OK, I'll try and do that tomorrow. Thanks for the suggestion @CodeABC123