⭕❌ Noughts And Crosses ONLINE ❌⭕
An offline and online game created using Python and Pymongo
What is this?
This is a noughts and crosses game made using Python.
There are 3 gamemodes:
- Play against the computer (offline)
- Play against a friend (offline)
- Play against someone online (online)
More information about each of these gamemodes will be explained later in this post.
noughts are always first
How do I play Noughts And Crosses?
Have you been living under a rock? xD
The definition from Google is this:
Tic-tac-toe, noughts and crosses, or Xs and Os, is a paper-and-pencil game for two players, X and O, who take turns marking the spaces in a 3×3 grid. The player who succeeds in placing three of their marks in a horizontal, vertical, or diagonal row is the winner.
In other terms, you and another person take
alternate goes to place either a
naught or a
cross. Once you have placed your counter, it cannot be changed until the end of the game where the board is wiped clean.
The winner is the first person who places three of their counters in a row either horizontally, vertically or diagonally.
"Play against the computer" mean?
This gamemode is a human vs a computer.
You will choose where you go and then the computer will decide where to go.
🙏 At the moment, the computer takes a
random guess and so it's moves aren't calculated. If you would like to have an
hard etc mode then please upvote and comment 😄 🙏
"Play against a friend" mean?
This gamemode is a human vs a human.
So it doesn't have to be a friend
🔥🔥🔥 if you don't have any 🔥🔥🔥
🙏 Please comment any features that you would like to see in this gamemode! 🙏
"Play against someone online" mean?
This gamemode is a human vs a human but they don't have to be at the same computer.
This was only made possible using MongoDB which I love 🥰🥰🥰
🙏 Again, please comment any features that should be in this gamemode! 🙏
- Global leaderboard
- See anybody else's stats
- Background timer so that you don't wait forever for someone to join that game xD
- Ability to see and change account settings
That's all for now, I can make a tutorial if you would like to know how to make "online" games using Pymongo.
I use Pymongo to stimulate an online presence but all that happens is that it makes several calls to an online database and trades data.
I have been working on this
online mode for a while now, so an upvote would be awesome!
Please inform me of any errors that you find, I've spent a few hours trying to eradicate them 😅
Ping me on repl discord
@Zeliktric and if I respond then I will play with you 🙃
GG @SwaroopBappanad for beating me xD
Hello, i am currently working on a project that has similar interface with it. Mainly being the login and attempted online communication. I was wondering if you would like to join my team for a little bit, and help me out? I was just wondering cause you have managed to do it successfully but i am still struggling. https://repl.it/teams/join/yldpasaoeixeoadyxdtoeuixjkiwyufh-DreamVTechno There is the link. ^-^
I feel like there's just not enough people playing this for online play though. (By that I mean like to join your public game in a few seconds, or even a few minutes. The online play thing is still really cool though, great job!)