Happening Now

Warmups

APR 30th - JUN 25th

Win up to $250

Coming soon

Trials

JUN 26th - JUL 24th

Win up to $500

Finals

JUL 25th - AUG 28th

Win up to $1,000

Top Competitors

Name

School

Total Pts.

  1. formatjam

    Purdue Univ.

    245.15pts

  2. Ward_Beullens

    ---

    239.63pts

  3. Haggis

    ---

    226pts

  4. hua

    Univ. of Florida

    216.26pts

  5. RazorStorm

    Univ. of California, Berkeley

    211.12pts

view more

Top Schools

School

Avg.Pts

Students

  1. San Jose State Univ.

    58.39pts

    1

  2. Univ. of Kentucky

    55.06pts

    3

  3. MVSR ENGINEERING COLLEGE

    50pts

    1

  4. Univ. of Florida

    47.03pts

    4

  5. Penn State

    43.94pts

    1

view more

Tic-Tac-Toewiki article

Objective:

Manage to place the respective marks in horizontal, vertical, or diagonal row to win the game

Rules:

  1. The X player usually goes first.
  2. The player who succeeds in placing three respective marks in a horizontal, vertical, or diagonal row wins the game.

Input format:

  • The first line in the input will be an integer. 1 or 2.
  • If the first line is 1, then you are the first player and all 1's on the board belong to you.
  • If the first line is 2, then you are the second player and all 2's on the board belong to you.
  • The following 3 lines define the board state. Each line contains 3 inetgers. The characters can be either (1, 2, or -1) 1 means the box position is occupied by the first player. 2 means the box position is occupied by the second player. -1 means the box is not yet occupied.
  • Output format:

  • 2 integers( row column ) separated by a single space, which specifies the position of the board you want to make your move. ( 0 indexed )
  • Sample Input

    1
    -1 -1 -1
    -1 -1 -1
    -1 -1 -1

    Sample Output

    0 0
    *Prize money stated above is awarded to those currently enrolled in a US or Canadian university (or to those just entering / graduating this year). An additional, separate prize pool, consisting of awards exactly half that of the collegiate prize pool, will be given to those who do not qualify for the collegiate prize pool. For example, the top scoring non-collegiate Anti-chess winner will be awarded $125.