Share your repls and programming experiences

← Back to all posts
Simple Python Tic Tac Toe
Russ2969 (1)

This is a simple python Tic Tac Toe game. Instructions are in the game. If you feel like I should add or change anything or you find a bug I need to fix, please comment saying so. Please enjoy!

Updates:
This area will have any updates for changes or fixes I've made.
11/28/20: I added the ability to input choices either as letter then number or number then letter and the in-game instructions were changed to suit this. I also slightly changed how the validity of a space is found, although it plays the same for the player.

Comments
hotnewtop
HolyN (5)

High, great game. I found a small bug: If you try to input the number before the letter the game breaks.

I hope it helps.

Russ2969 (1)

@HolyN Thank you for bringing this up! I intended the answer to be input as letter, then number, but I went ahead and added your idea. Please enjoy and if you find any other problems, please tell me!

HolyN (5)

@Russ2969 Awesome. I'm glad that helped.
I did my own approach to the TIC TAC TOE. If you like, please, check it out and let me know your comments. I'm new to coding ;)

Russ2969 (1)

@HolyN Sorry for the delayed reply, but I'd love to look at your game! Thank you for your feedback!

Russ2969 (1)

@HolyN Hey, I just checked your Tic Tac Toe and you did an amazing job! For someone who considers themselves new to coding, your work looks great.

HolyN (5)

@Russ2969 Thank you! I just update the code for that game. It was my first official code ever in python. And wanted to revisit it.
I include players' names and a "Play Again?" question at the end. XD
The game text is in Spanish. But comments are in English.

Russ2969 (1)

@HolyN I tried it out and your thing seemed really nice. The board seems much nicer and the addition of replaying was also a nice touch. The gameplay was also simple enough that, as someone with only a very basic knowledge of Spanish, could play it. Really well done!

HolyN (5)

@Russ2969 Thank you very much. Your feedback is much appreciated. I've been learning to code for just a couple of months. But I really enjoy it. It's a really rewarding feeling to understand why something doesn´t work and learn how to fix it. So far, I have been doing simple text-based games but hopefully, I will be trying things with more complexity soon.
Have a great weekend!

Russ2969 (1)

@HolyN that’s amazing! You really are great at coding, I hope you continue to grow as a developer and see great success. You have a great weekend as well!

[deleted]

Cool! Deserves an upvote!

Russ2969 (1)

@dhruvkumarrajan Thank you! For something that only took an hour or two, I think this turned out pretty well.

[deleted]

@Russ2969
Yeah, its awesome! :)

JaspiDiceYT (0)

Can do the same move multiple times.