[Bally Sports North] Tic-Tac-Toe, Fiala->Bonino->Kaprizov to set the Wild record for points by a rookie. twitter.com/BallySportsNO…
πŸ‘︎ 140
πŸ’¬︎
πŸ‘€︎ u/kekwspam
πŸ“…︎ Apr 20 2021
🚨︎ report
[Wild] Soucy, Zuccarello, and Kaprizov connect for a beautiful tic tac toe just 11 seconds after Zuccarello ties it up twitter.com/sbnationnhl/s…
πŸ‘︎ 238
πŸ’¬︎
πŸ‘€︎ u/BradyH4
πŸ“…︎ Feb 23 2021
🚨︎ report
Zucker, Staal and Zuccarello team up to score a tic-tac-toe goal for the Wild streamable.com/af4fg
πŸ‘︎ 363
πŸ’¬︎
πŸ‘€︎ u/libra_newgod
πŸ“…︎ Dec 06 2019
🚨︎ report
I have never been so triggered by a game of tic-tac-toe before v.redd.it/qvf27imffd481
πŸ‘︎ 16k
πŸ’¬︎
πŸ‘€︎ u/WiggilinJigle
πŸ“…︎ Dec 08 2021
🚨︎ report
Tic tac toe
πŸ‘︎ 8k
πŸ’¬︎
πŸ‘€︎ u/Deep-Jump-803
πŸ“…︎ Dec 29 2021
🚨︎ report
πŸ‘︎ 15k
πŸ’¬︎
πŸ‘€︎ u/OG_Aedeen
πŸ“…︎ Dec 15 2021
🚨︎ report
To play tic-tac-toe, one needs to have...

Tactics.

πŸ‘︎ 5
πŸ’¬︎
πŸ‘€︎ u/Wisd_Om
πŸ“…︎ Nov 12 2021
🚨︎ report
Upgraded Tic Tac Toe, Gobblet Gobblers v.redd.it/wai2t3z32y181
πŸ‘︎ 16k
πŸ’¬︎
πŸ‘€︎ u/regian24
πŸ“…︎ Nov 26 2021
🚨︎ report
playing Tic Tac Toe in tf2
πŸ‘︎ 7k
πŸ’¬︎
πŸ‘€︎ u/WATEROVATE
πŸ“…︎ Nov 15 2021
🚨︎ report
Wild go tic-tac-toe to beat Pekka Rinne gfycat.com/ScholarlyPleas…
πŸ‘︎ 270
πŸ’¬︎
πŸ‘€︎ u/50in15
πŸ“…︎ Feb 27 2015
🚨︎ report
Three years ago today, Juice recorded Purple Moncler, Bandit, Come & Go, Tic Tac Toe, Codeine Guzzler, Xo, Singalong, Do The Most, Lotti Lotti, & Big Dog
πŸ‘︎ 1k
πŸ’¬︎
πŸ‘€︎ u/ThisIsntSantana7
πŸ“…︎ Nov 29 2021
🚨︎ report
I made a Tic-Tac-Toe game with 3642 lines of code and I'm sorry.

I posted on this subreddit asking for help on a tic tac toe game that was 3642 lines of code and I got flamed (in a good way).

Thank you.

I had sculped an effigy of inefficiency and I have been ushered into the world with a fresh perspective. I did my best and reduced the code by a factor of 10 to 380 lines of code. It most likely can be cleaned up further but it did the job.

Here's the code. I believe it is impossible to beat. Give it a try, if you win tell me.

Thanks for the help guys.

https://github.com/M0pps/Tic-Tac-Toe.py.git

πŸ‘︎ 641
πŸ’¬︎
πŸ‘€︎ u/M0pps
πŸ“…︎ Nov 17 2021
🚨︎ report
Hashtag or Sharp or Tic-Tac-Toe
πŸ‘︎ 12k
πŸ’¬︎
πŸ‘€︎ u/meezersqueezer
πŸ“…︎ Oct 12 2021
🚨︎ report
πŸ‘︎ 1k
πŸ’¬︎
πŸ‘€︎ u/OG_Aedeen
πŸ“…︎ Dec 16 2021
🚨︎ report
you just lost at tic-tac-toe to this man levert v.redd.it/qqevoycfx5b81
πŸ‘︎ 91
πŸ’¬︎
πŸ‘€︎ u/N-A-S-
πŸ“…︎ Jan 12 2022
🚨︎ report
Upgraded Tic Tac Toe, Gobblet Gobblers v.redd.it/wai2t3z32y181
πŸ‘︎ 3k
πŸ’¬︎
πŸ“…︎ Nov 26 2021
🚨︎ report
Tic Tac Toe board for my niece. First time doing hand cut dovetails reddit.com/gallery/rhs7ec
πŸ‘︎ 535
πŸ’¬︎
πŸ‘€︎ u/trippical
πŸ“…︎ Dec 16 2021
🚨︎ report
Why you should code Battleship after Tic Tac Toe!

After completing Tic Tac Toe recently I decided to code Battleship after my girlfriend said it would be too hard.

I will first explore what I learned, then use that knowledge to explain why I believe Battleship would be an excellent choice after programming Tic Tac Toe.

What I learned.

  1. I rely too much on lists and dictionaries which bloats my code. This causes hundreds upon hundreds of lines of code that is coded differently, which would make my code more efficient and readable.
  2. I stayed in my comfort zone too much (especially as a beginner) which, after some contemplation, lead me to believe that this caused the issue identified in (1).
  3. General increase of proficiency and familiarity with python and how to think through problems.

Why you should code Battleship after Tic Tac Toe.

Expansion of previous knowledge:

  1. The interface/screen. Like Tic Tac Toe, Battleship requires a screen that users can look at to be able to make decisions and play. Unlike Tic Tac Toe, however, Battleship has two screens that you need to juggle and change according to computer moves and player moves. Furthermore, since you are somewhat familiar with printed screens and interacting with the screen due to Tic Tac Toe, this allows you to take on the challenge of a battleship screen and its elements more effectively whilst providing an added challenge.

Opportunities to learn new things:

  1. Complexity. The different parts of Battleship (broken down below) provide opportunities for different types of problems to solve. Problems such as ship generation, ship placement, overlapping ships, computer hunting/targeting, player hits, and misses, all require solutions that vary and provide challenges to possible underdeveloped
  2. Identification of areas of knowledge that need work. As specified above I realized that I relied on lists and dictionaries to cover inadequacies in knowledge. This led me to sources that can shore up those inadequacies.

Fun!

  1. Self-explanatory. If you had fun with Tic Tac Toe, you would probably have fun with this too.

Questions to ask yourself.

  1. How do I create a screen that can display user ships?
  2. How can I program a computer to generate a RANDOM layout for the 5 ships and their correct lengths within the screen parameters without overlapping?
  3. How can I store that layout for future use?
  4. How can I code a way for the user to layout their ships on the board within the screen parameters without overlapping?
  5. How can the user choose wh
... keep reading on reddit ➑

πŸ‘︎ 90
πŸ’¬︎
πŸ‘€︎ u/M0pps
πŸ“…︎ Dec 23 2021
🚨︎ report
ChIlD vIolEntLy dEstRoYs cOmpUteR aFteR lOsiNg tIc tAc tOe v.redd.it/j80p7eyp4oa81
πŸ‘︎ 280
πŸ’¬︎
πŸ‘€︎ u/asher_0703
πŸ“…︎ Jan 09 2022
🚨︎ report
[ANA 0 - (1) WSH] - Tom Wilson scores his 100th career goal on a tic-tac-toe play off a faceoff
πŸ‘︎ 138
πŸ’¬︎
πŸ‘€︎ u/mdkss12
πŸ“…︎ Dec 07 2021
🚨︎ report
My friend, who knows almost nothing about python, tried to make an "at LEAST functional" game of tic-tac-toe.
def tic_tac_toe():
    print("      |     |     ")
    print("   1  |  2  |  3  ")
    print(" _____|_____|_____")
    print("      |     |     ")
    print("   4  |  5  |  6  ")
    print(" _____|_____|_____")
    print("      |     |     ")
    print("   7  |  8  |  9  ")
    print("      |     |     ")
    a1 = "1"
    a2 = "2"
    a3 = "3"
    b1 = "4"
    b2 = "5"
    b3 = "6"
    c1 = "7"
    c2 = "8"
    c3 = "9"
    x1 = input("witch spot")
    x1 = int(x1)

    if int(x1) == 1:
        a1 = "x"
    elif int(x1) == 2:
        a2 = "x"
    elif int(x1) == 3:
        a3 = "x"
    elif int(x1) == 4:
        b1 = "x"
    elif int(x1) == 5:
        b2 = "x"
    elif int(x1) == 6:
        b3 = "x"
    elif int(x1) == 7:
        c1 = "x"
    elif int(x1) == 8:
        c2 = "x"
    elif int(x1) == 9:
        c3 = "x"
    else:
        print('bad value')
        exit()

    def draw_tic_board(a1='-', a2='-', a3='-', b1='-', b2='-', b3='-', c1='-', c2='-', c3='-'):
        print("      |     |     ")
        print("   " + a1 + "  |  " + a2 + "  |  " + a3 + "  ")
        print(" _____|_____|_____")
        print("      |     |     ")
        print("   " + b1 + "  |  " + b2 + "  |  " + b3 + "  ")
        print(" _____|_____|_____")
        print("      |     |     ")
        print("   " + c1 + "  |  " + c2 + "  |  " + c3 + "  ")
        print("      |     |     ")

    board = draw_tic_board(a1=a1, a2=a2, a3=a3, b1=b1, b2=b2, b3=b3, c1=c1, c2=c2, c3=c3)

    o1 = input("next player")
    o1 = int(o1)
    if o1 == x1:
        print("alredy taken")
        exit()
    elif int(o1) == 1:
        a1 = "o"
    elif int(o1) == 2:
        a2 = "o"
    elif int(o1) == 3:
        a3 = "o"
    elif int(o1) == 4:
        b1 = "o"
    elif int(o1) == 5:
        b2 = "o"
    elif int(o1) == 6:
        b3 = "o"
    elif int(o1) == 7:
        c1 = "o"
    elif int(o1) == 8:
        c2 = "o"
    elif int(o1) == 9:
        c3 = "o"
    else:
        print('bad value')
        exit()

    board = draw_tic_board(a1=a1, a2=a2, a3=a3, b1=b1, b2=b2, b3=b3, c1=c1, c2=c2, c3=c3)

    x2 = input("next player")
    if x2 == x1 | o1:
... keep reading on reddit ➑

πŸ‘︎ 185
πŸ’¬︎
πŸ‘€︎ u/breadmp4
πŸ“…︎ Dec 16 2021
🚨︎ report
[Highlight] Kaprizov and Zuccarello play a little tic tac toe behind the net and Kirill finishes with the easy goal streamable.com/7qqkvh
πŸ‘︎ 1k
πŸ’¬︎
πŸ‘€︎ u/DrWolves
πŸ“…︎ Nov 11 2021
🚨︎ report
πŸ‘︎ 278
πŸ’¬︎
πŸ‘€︎ u/bigmemegod12
πŸ“…︎ Dec 26 2021
🚨︎ report
Sir, the aliens demand our greatest champion to face them in a tic-tac-toe match. Who shall be sent?
πŸ‘︎ 5
πŸ’¬︎
πŸ‘€︎ u/Iron-Waffle
πŸ“…︎ Jan 06 2022
🚨︎ report
Has anyone ever played tic tac toe on their thighs or just me reddit.com/gallery/rupa3c
πŸ‘︎ 36
πŸ’¬︎
πŸ‘€︎ u/alcoholicsuwucide
πŸ“…︎ Jan 03 2022
🚨︎ report
Tic Tac Toe, three in a rowπŸ’Š
πŸ‘︎ 13
πŸ’¬︎
πŸ‘€︎ u/pillzintheregal
πŸ“…︎ Dec 23 2021
🚨︎ report
Coding a Fully 3D Tic-Tac-Toe Cube with Three JS v.redd.it/p92e9wlc8h181
πŸ‘︎ 315
πŸ’¬︎
πŸ‘€︎ u/SuboptimalEng
πŸ“…︎ Nov 24 2021
🚨︎ report
Coding a 3D Tic-Tac-Toe with Three JS v.redd.it/7bo5ndptpo081
πŸ‘︎ 527
πŸ’¬︎
πŸ‘€︎ u/SuboptimalEng
πŸ“…︎ Nov 20 2021
🚨︎ report
[P] uttt.ai: AlphaZero-like solution for playing Ultimate Tic-Tac-Toe in the browser

tl;dr I developed AI solution (MCTS + NN) inspired by AlphaZero for playing Ultimate Tic-Tac-Toe game in the browser. You can try it yourself here: https://uttt.ai.

Why?

Ever since I started working in Machine Learning 5 years ago, I have always wanted to do some cool project for my portfolio. Reading scientific papers gave me plenty of ideas, but only after I read AlphaZero preprint I knew: this is it!

AlphaZero is a third paper in AlphaGo, AlphaGo Zero, AlphaZero, MuZero sequence. In AlphaZero paper Deepmind generalizes previous work so that AI can learn through self-play not only how to master Go, but also Chess and Shogi. I had read previous papers, but it was AlphaZero specifically that sparked my imagination. Probably because I love simple and elegant engineering solutions and AlphaZero is mostly about that.

I discovered Ultimate Tic-Tac-Toe and implemented AlphaZero in early 2018. After a few weeks of work I realized it's not going to be an easy ride. There were two major problems that essentially made me forget about this project for a long time.

Firstly, although Ultimate Tic-Tac-Toe (UTTT) looks easier than Chess or Go, it is still quite a challenging game. The average length for UTTT game is somewhere between 40 and 50 plies. The average number of legal actions per position is somewhere around 7 (my estimate from self-play data). It is difficult setup for a side-project. One of the key factors enabling AlphaZero success is massive computing power (5000 TPU v1 for self-play and 64 TPU v2 for training). I had to figure out much cheaper way to develop interestingly good AI under my personal budget.

Secondly, when I envisioned deploying AlphaZero in the browser I had zero knowledge of web development and frontend in general. Which meant I had to find some time to learn it. Not easy if you already have a full-time job and other stuff going on in your life. I decided to put the whole project on hold and said to myself: "maybe one day there will be better time for this..."

Fast-forward to 2021. I left my job and decided to spend a year on a career break, pursuing my interests. I realized that I finally had enough time and resources to conquer this project. I learned the basics of web browsers, HTML, CSS, JavaScript and React. I bought a desktop PC. I've managed to incrementally redesign AlphaZero self-play training into something more executable on my co

... keep reading on reddit ➑

πŸ‘︎ 74
πŸ’¬︎
πŸ‘€︎ u/arnowaczynski
πŸ“…︎ Dec 10 2021
🚨︎ report
Upgraded Tic Tac Toe v.redd.it/zudxxiieta171
πŸ‘︎ 170k
πŸ’¬︎
πŸ‘€︎ u/Harman1796
πŸ“…︎ May 25 2021
🚨︎ report
[MTL 0-(1) PIT] Crosby completes a tic-tac-toe play with Rust and Guentzel for his first of the year, opening the scoring streamable.com/ioak4d
πŸ‘︎ 273
πŸ’¬︎
πŸ‘€︎ u/nopClip
πŸ“…︎ Nov 19 2021
🚨︎ report
anyone know who leaked mclaren drive(stop and stare/tic tac toe)?

i’ve been looking for weeks and had no luck. and if anyone knows someone who could help me that’d be good too, any help is appreciated and thank u in advance

πŸ‘︎ 5
πŸ’¬︎
πŸ‘€︎ u/lucas652
πŸ“…︎ Jan 03 2022
🚨︎ report
Tic Tac Toe board for my niece. First time doing hand cut dovetails reddit.com/gallery/rhsn0t
πŸ‘︎ 49
πŸ’¬︎
πŸ‘€︎ u/trippical
πŸ“…︎ Dec 16 2021
🚨︎ report
[CBJ 2-(5) STL] Pavel Buchnevich finishes a game of tic-tac-toe with Robert Thomas for his second of the game streamable.com/2wbsgn
πŸ‘︎ 110
πŸ’¬︎
πŸ‘€︎ u/SamTheRam28
πŸ“…︎ Nov 28 2021
🚨︎ report
Coyotes go tic-tac-toe to make it 2-1 streamable.com/3zvt1f
πŸ‘︎ 58
πŸ’¬︎
πŸ‘€︎ u/ThatIsNaseer
πŸ“…︎ Dec 16 2021
🚨︎ report
Kayna tic tac toe
πŸ‘︎ 54
πŸ’¬︎
πŸ‘€︎ u/SeanTheHunter2
πŸ“…︎ Dec 17 2021
🚨︎ report
Kotkaniemi puts the puck in the net as the Canes go tic-tac-toe streamable.com/hro9kk
πŸ‘︎ 139
πŸ’¬︎
πŸ“…︎ Nov 26 2021
🚨︎ report
Code review: Tic tac toe

Hi all

I have completed tic tac toe for The Odin Project and would appreciate any feedback you might have.

GitHub: https://github.com/parradam/tic-tac-toe

Live demo: https://parradam.github.io/tic-tac-toe/

Any thoughts or advice would be much appreciated. Thank you!

πŸ‘︎ 6
πŸ’¬︎
πŸ“…︎ Jan 03 2022
🚨︎ report
I have never been so triggered by a game of tic-tac-toe before v.redd.it/qvf27imffd481
πŸ‘︎ 136
πŸ’¬︎
πŸ‘€︎ u/Less_Local_1727
πŸ“…︎ Dec 09 2021
🚨︎ report
Vs me in Tic Tac Toe
πŸ‘︎ 128
πŸ’¬︎
πŸ‘€︎ u/TicTacToeEnjoyer
πŸ“…︎ Dec 10 2021
🚨︎ report
any 1 want to play tic tac toe? i already made the first move
πŸ‘︎ 140
πŸ’¬︎
πŸ‘€︎ u/dumbbychh
πŸ“…︎ Dec 05 2021
🚨︎ report
"Tic-Tac-Toe" featuring Bill Pullman, Norm Macdonald, Will Ferrell, Cheri Oteri and Mark McKinney on "Saturday Night Live", 1996 + Norm's commentary about the sketch on "N.M. Live", 2016. v.redd.it/ane013vm5c281
πŸ‘︎ 149
πŸ’¬︎
πŸ‘€︎ u/Bubbly-Incident
πŸ“…︎ Nov 28 2021
🚨︎ report
Tic Tac Toe , Three in a Row v.redd.it/nk48jbk0r0581
πŸ‘︎ 75
πŸ’¬︎
πŸ‘€︎ u/LukeOnDahPhone
πŸ“…︎ Dec 12 2021
🚨︎ report
My daughter plays tic-tac-toe with her furry potato v.redd.it/mc5c9o1epov71
πŸ‘︎ 968
πŸ’¬︎
πŸ‘€︎ u/AA82nd
πŸ“…︎ Oct 25 2021
🚨︎ report
Help With Play Again Function Tic Tac Toe

Everything works apart from the play again function. It cannot reset all variables and restart the game. https://replit.com/join/grlkneltti-pp-12bd-739113

#include <iostream> #include <cstdlib>

using namespace std; char matrix[3][3]= {'1','2','3','4','5','6','7','8','9'}; char player = 'X'; int n; char yn;

void Draw(){ system("clear"); cout<<"Tic Tac Toe v1.0 \n"<<endl;

for(int i=0;i&lt;3;i++)
{
  for(int j=0;j&lt;3;j++)
  {
    cout&lt;&lt;matrix[i][j]&lt;&lt;" ";
  }
  cout&lt;&lt;endl;
} 

} void Input(){ int a; cout<< "It's "<< player << "'s turn." <<" Press a number on the from the board: "; cin>>a;

if(a==1){
  if(matrix[0][0] == '1'){
    matrix[0][0] = player;
  }
  else {
  cout&lt;&lt;"There is already a number there! Try Again!"&lt;&lt;endl;
  Input();
  }

}else if(a==2){
  if(matrix[0][1] == '2'){
    matrix[0][1] = player;
  }
  else {
    cout&lt;&lt;"There is already a number there! Try Again!"&lt;&lt;endl;
    Input();
  }
}else if(a==3){
  if(matrix[0][2] == '3'){
    matrix[0][2] = player;
  }else {
    cout&lt;&lt;"There is already a number there! Try Again!"&lt;&lt;endl;
    Input();
  }
  
}else if(a==4){
  if(matrix[1][0] == '4'){
    matrix[1][0] = player;
  }
  else {
    cout&lt;&lt;"There is already a number there! Try Again!"&lt;&lt;endl;
    Input();
  }
}else if(a==5){
  if(matrix[1][1] == '5'){
    matrix[1][1] = player;
  }else {
    cout&lt;&lt;"There is already a number there! Try Again!"&lt;&lt;endl;
    Input();
  }
}else if(a==6){
  if(matrix[1][2] == '6'){
    matrix[1][2] = player;
  }else {
    cout&lt;&lt;"There is already a number there! Try Again!"&lt;&lt;endl;
    Input();
  }
}else if(a==7){
  if(matrix[2][0] == '7'){
    matrix[2][0] = player;
  }else {
    cout&lt;&lt;"There is already a number there! Try Again!"&lt;&lt;endl;
    Input();
  }
}else if(a==8){
  if(matrix[2][1] == '8'){
    matrix[2][1] = player;
  }else {
    cout&lt;&lt;"There is already a number there! Try Again!"&lt;&lt;endl;
    Input();
  }

}else if(a==9){
  if(matrix[2][2] == '9'){
    matrix[2][2] = pl
... keep reading on reddit ➑

πŸ‘︎ 2
πŸ’¬︎
πŸ‘€︎ u/Burning_Legend
πŸ“…︎ Jan 08 2022
🚨︎ report
[WPG 0 - (6) MIN] Matt Dumba finishes the tic-tac-toe to extend the blowout v.redd.it/g0qlo0kjr0281
πŸ‘︎ 184
πŸ’¬︎
πŸ‘€︎ u/xSampleTextx
πŸ“…︎ Nov 26 2021
🚨︎ report
Why Battleship should be your next project after Tic Tac Toe!

After completing Tic Tac Toe recently I decided to code Battleship after my girlfriend said it would be too hard.

I will first explore what I learned, then use that knowledge to explain why I believe Battleship would be an excellent choice after programming Tic Tac Toe.

What I learned.

  1. I rely too much on lists and dictionaries which bloats my code. This causes hundreds upon hundreds of lines of code that is coded differently, which would make my code more efficient and readable.
  2. I stayed in my comfort zone too much (especially as a beginner) which, after some contemplation, lead me to believe that this caused the issue identified in (1).
  3. General increase of proficiency and familiarity with python and how to think through problems.

Why you should code Battleship after Tic Tac Toe.

Expansion of previous knowledge:

  1. The interface/screen. Like Tic Tac Toe, Battleship requires a screen that users can look at to be able to make decisions and play. Unlike Tic Tac Toe, however, Battleship has two screens that you need to juggle and change according to computer moves and player moves. Furthermore, since you are somewhat familiar with printed screens and interacting with the screen due to Tic Tac Toe, this allows you to take on the challenge of a battleship screen and its elements more effectively whilst providing an added challenge.

Opportunities to learn new things:

  1. Complexity. The different parts of Battleship (broken down below) provide opportunities for different types of problems to solve. Problems such as ship generation, ship placement, overlapping ships, computer hunting/targeting, player hits, and misses, all require solutions that vary and provide challenges to possible underdeveloped
  2. Identification of areas of knowledge that need work. As specified above I realized that I relied on lists and dictionaries to cover inadequacies in knowledge. This led me to sources that can shore up those inadequacies.

Fun!

  1. Self-explanatory. If you had fun with Tic Tac Toe, you would probably have fun with this too.

Questions to ask yourself.

  1. How do I create a screen that can display user ships?
  2. How can I program a computer to generate a RANDOM layout for the 5 ships and their correct lengths within the screen parameters without overlapping?
  3. How can I store that layout for future use?
  4. How can I code a way for the user to layout their ships on the board within the screen parameters without overlapping?
  5. How can the user choose wh
... keep reading on reddit ➑

πŸ‘︎ 8
πŸ’¬︎
πŸ‘€︎ u/M0pps
πŸ“…︎ Dec 23 2021
🚨︎ report

Please note that this site uses cookies to personalise content and adverts, to provide social media features, and to analyse web traffic. Click here for more information.