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
1 answer
147 views

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 (...
Zendorr's user avatar
  • 23
3 votes
0 answers
85 views

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 ...
user284985's user avatar
4 votes
1 answer
300 views

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, ...
Libo's user avatar
  • 75
5 votes
1 answer
482 views

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 ...
tacoshy's user avatar
  • 512
2 votes
1 answer
130 views

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? ...
sminkle's user avatar
  • 31
2 votes
0 answers
71 views

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
  • 165
3 votes
2 answers
274 views

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
8 votes
1 answer
152 views

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
  • 183
6 votes
1 answer
427 views

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
  • 185
3 votes
2 answers
327 views

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
  • 77
18 votes
3 answers
3k views

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
1k views

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
  • 165
2 votes
1 answer
109 views

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
  • 1,143
6 votes
1 answer
239 views

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
  • 1,143
3 votes
1 answer
313 views

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

15 30 50 per page
1
2 3 4 5
43