jklemon17 / microverse-tic-tac-toe Goto Github PK
View Code? Open in Web Editor NEWOOP practice with tic tac toe
OOP practice with tic tac toe
Great work guys! I ran the game on my machine and played abit, the logic is Ok. I have some suggestions on how we can improve a couple of things:
Style guide, style guide, style guide! Rubocop is your friend ๐.
I think we can improve the project README file, to allow people looking at this understand how to:
We need to split the code into its constituent parts and not have everything in one codefile. For instance, give each class its own file and require
it where it is needed.
We can use the recommended project structure as follows:
a. Put all the classes that have noting to do with running the game in a lib
folder.
b. Put all the classes that run the game in a bin
folder
Right now, I have to run this command to run the game ruby tic-tac-toe.rb
. I think we can make it easier for users to run the game by making tic-tac-toe.rb
executable. Here is a good guide on how to achieve this.
I feel this method should return a boolean. And be named something along the lines of game_over?
. Reason is, its easier to read game.game_over?
than game.game_over == 'win'
We can work on these for now, then do another review later. Thoughts?
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.