munnu / tictactoe Goto Github PK
View Code? Open in Web Editor NEWA tic tac toe game I built for fun. Compatible with Python 2.7 (verified)
A tic tac toe game I built for fun. Compatible with Python 2.7 (verified)
I made this program from scratch. Most of the read me is in the .py file itself. Look there if you must. The .py file is well documented, that's like my forte. It makes a 3x3 tic tac toe board... well, it's not a board but some blank spaces (see printBoard method). This game could have been done easily with functions, but I wanted to try my hand at doing it the OOP way. There may be a few glitches, but it's can be run and played with. The computer algorithm isn't intelligent, it does not monitor the player's moves in relation to its own... Specifically, it uses randint. This works well with 2.7, but some changes will need to be made for it to be compatible with 3.x. For instance, raw_input() should be changed to input(). With 3.x, we do not need encapsulation, so the int() that covers the raw_input is no longer needed as input() takes care of it. Print now requires parenthesis. Other than that, I cannot think of anything else. I really enjoyed programming this game.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.