Skip to main content

Questions tagged [tic-tac-toe]

A game, also known as "Noughts and Crosses", in which players take turns placing marks on a 3 × 3 grid in an attempt to form a line of three consecutive marks. You can also use this tag for variants of the game.

2 votes
0 answers
23 views

Tic Tac Toe CLI in Clojure

I wrote a command line tic tac toe game in Clojure. I've broken this post into three sections: Feedback Requests, Gameplay, and Code Feedback Requests I'm looking for feedback on: How "idiomatic&...
cgoates's user avatar
  • 175
3 votes
2 answers
117 views

First tic tac toe game. want to see if valid or needs improvement

Just finished my first java class that taught me all the way up to oop and abstract classes. Decided to start some projects over the summer. Started with tic tac toe since it sounded fairly easy to do....
bruh's user avatar
  • 31
4 votes
1 answer
49 views

Haskell 2-player TicTacToe terminal game

I want to get better at functional programming so I started with this simple 2-player TicTacToe game. Next I want to add a simple min-max algorithm to make it a 1-player game, but before that I'd like ...
Peter's user avatar
  • 141
6 votes
1 answer
394 views

Tic Tac Toe Basic C implementation

Is my implementation idiomatic? Does it suffer from any undefined behaviour? Any pointers/tips would be greatly appreciated. Particularly, I think that the winner function could be improved. ...
wed1may's user avatar
  • 195
3 votes
2 answers
232 views

Tic-tac-toe OOP Minimax Algorithm

I wrote a module that I intend to use in my next tic-tac-toe project. All it is is a class that stores the boardstate along with some methods/properties. The biggest thing is the minimax alg. As shown ...
flakpm's user avatar
  • 97
18 votes
3 answers
3k views

A tic-tac-toe game in C

I am (trying) to learn the C programming language for fun with my father's book "The C Programming Language". I tried writing a tic-tac-toe game in C. I have no professional experience, so ...
Uriel's user avatar
  • 183
5 votes
2 answers
977 views

another Tic-Tac-Toe Game

I have a bit of experience in programming but not that much. I was trying to create a TicTacToe Game in Javascript. I was doing my best to have a good structure. I was thinking about using classes, ...
Cats's user avatar
  • 61
2 votes
1 answer
61 views

Text-based tic-tac-toe in bash (continued)

I wrote this two-player tic-tac-toe program in bash. To make a move, you enter a number between 1 and 9 which corresponds to the square: ...
sbottingota's user avatar
6 votes
1 answer
174 views

Text based tic-tac-toe in bash

I wrote this two player tic-tac-toe program in bash. To make a move you enter a number between 0 and 8 which corresponds to the square: 0|1|2 3|4|5 6|7|8 This is ...
sbottingota's user avatar
3 votes
1 answer
235 views

Beginner C# console TicTacToe program

I've been learning to program in C# for a couple months and wanted some feedback regarding a project I completed. Criticism and constructive feedback is what I'm after, so bring it on! I know there ...
Unlived172's user avatar
4 votes
2 answers
144 views

Beginner's attempt at TicTacToe

This is my attempt at making a basic TicTacToe game to play against another human player or a computer controlled opponent. The project was a lot harder for me than I initially thought it would be! I ...
Reslashd's user avatar
5 votes
1 answer
209 views

Tic-tac-toe with JS

I am a beginner and was hoping for some honest feedback on my js code. I struggled quite a bit on this, I did ask gpt to explain some concepts which I find it’s good for but wrote it all myself. <...
FeDev's user avatar
  • 61
3 votes
1 answer
125 views

Simple Tic-tac-toe in Python

I am a beginner programmer who coded a simple Tic-tac-toe in Python for practice. Any feedback, especially regarding best practices and tidying up the code, is appreciated. ...
smwt's user avatar
  • 187
3 votes
1 answer
243 views

GUI Tic Tac Toe game with UNBEATABLE AI players

This is an updated version of my Tic Tac Toe game with AI players, it is related to GUI Tic-Tac-Toe game with six AI players - part 1: the UI. But that question is more than two weeks old and no one ...
Ξένη Γήινος's user avatar
2 votes
0 answers
142 views

GUI Tic-Tac-Toe game with AI, part 3: control and logic

This is the last part of the series of posts about my GUI Tic Tac Toe game, the previous two question are GUI Tic-Tac-Toe game with six AI players - part 1: the UI and GUI Tic-Tac-Toe game with six AI ...
Ξένη Γήινος's user avatar

15 30 50 per page
1
2 3 4 5
43