TicTacToe checker X78723


Statement
 

pdf   zip

html

Input

The input will consist of three lines containing three characters (X, O or _) each.

Output Depending on the previously indicated rules, the output will consist in a single line indicating either

- NOT VALID - PLAYING - IT’S A TIE - X WON - O WON

Public test cases
  • Input

    XXX
    XOO
    XOO
    

    Output

    X WON
    
  • Input

    X__
    OOO
    OOO
    

    Output

    NOT VALID
    
  • Information
    Author
    HP CodeWars
    Language
    English
    Official solutions
    Python
    User solutions
    Python