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

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
EthanCulp2 (4)

@CodingCactus I have some suggestions. If it ends in a draw, it doesn't end the game, it just keeps asking us for input and says all input is invalid. Also, you should make the coordinate system go x,y not y,x

CodingCactus (2483)

@EthanCulp2 Why wouldn't I want it to end the game? I'll do the xy thing

Edit: done x,y thing

CodingCactus (2483)

@EthanCul2 oh, did you mean that sometimes it doesn't end the game in a draw. I am aware of that scenario and am trying to fix it

Edit: It should be fixed now, please let me know if you see it again.

EthanCulp2 (4)

Yes I did mean that, thanks. Just curious, what scenarios would cause the game not to end in a draw? @CodingCactus

CodingCactus (2483)

@EthanCulp2 sometimes the and statements didn't have the correct brackets on the cpu input, causing it to place its marker on a square which had already been placed on, which stopped it coming to draw (for some reason?). But should be fixed now (hopefully). I haven't experienced the problem again yet