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.
637 questions
2
votes
1
answer
147
views
A Tic-Tac-Toe prototype written in SFML and C++
I'm a beginner in C++, and I tried to implement some basic skeleton for a game of Tic-Tac-Toe using SFML 3.0.0.
The thing is, it contains some main logic:
Place figures (...
3
votes
0
answers
85
views
Advice on decomplecting and decoupling my tic tac toe implementation
I am hoping to find out what you think about my implementation of tic-tac-toe.
It is complete and working as expected with many tests, but the logic in the main module where I have the play-game main ...
4
votes
1
answer
300
views
Tic-Tac-Toe Console Game in Java
I recently started learning Java and decided to create a project to practice. I developed a console-based tic-tac-toe game. I also wrote tests for some of the classes, not because they were necessary, ...
5
votes
1
answer
482
views
Tic Tac Toe with only the 3 last moves
I wrote a Tic-Tac-Toe game that unlike the normal TTT only saves the last 3 moves. That means, that the first move will be removed on the 4th move and so on.
To not necessarily extend the description ...
2
votes
1
answer
130
views
another first tic-tac-toe game
I made this tic-tac-toe game in c# after learning the language around a week ago. Can somebody tell me if this code is good or bad?
...
2
votes
0
answers
71
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&...
3
votes
2
answers
274
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....
8
votes
1
answer
152
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 ...
6
votes
1
answer
427
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.
...
3
votes
2
answers
327
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 ...
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 ...
5
votes
2
answers
1k
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, ...
2
votes
1
answer
109
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:
...
6
votes
1
answer
239
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 ...
3
votes
1
answer
313
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 ...