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

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
JacksonPhilips (45)

The input threw me off...For example, I put in:
2, 1
Because x goes first, y comes after.
But it put it under 1, 2 instead.
Otherwise, great game!

CodingCactus (2432)

@JacksonPhilips I changed it after a suggestion, It now works like a graph's coordinates (along the corridor, up the stairs (X,y))

JacksonPhilips (45)

@CodingCactus Oh, okay

I just noticed (column, row). Sorry for wasting your time :P

CodingCactus (2432)

@JacksonPhilips Its alright, which do you think is better (x,y or y,x). I want to make it as intuitive as possible

JacksonPhilips (45)

@CodingCactus In my personal opinion, (x, y) is more natural to me. But, if you want to keep it, that's fine too.

CodingCactus (2432)

@JacksonPhilips X,y is what it is at the moment

CodingCactus (2432)

@JacksonPhilips sorry, but is it possible for you to send the actual image rather than the link, because that website is blocked by my parents because apparently it is a social networking site.

JacksonPhilips (45)

@CodingCactus Can't really do that.. sorry.

But, it's kinda like this:

 1 2 3
1
2
3
select which one
2,1
 1 2 3
1  x
2
3 o
CodingCactus (2432)

@JacksonPhilips hmm, it it should be clearing the screen after each input:

so that only one game board is shown.

JacksonPhilips (45)

@CodingCactus It does clear.

Sorry about that, I forgot you could add files. :facepalm:

CodingCactus (2432)

@JacksonPhilips oh ok, it was just that your thing from earlier showed two on screen, but realise that had to be like that.

Anyway, do think it should be more like one of these

 1 2 3
3
2
1

1
2
3 
  1 2 3

3
2
1
   1 2 3