- Fork and clone the TicTacToe-101 Repo
- Use Live-Server to open this folder in the browser.
- Open your Chrome inspector tool and select the Console tab.
- Deselect the "Select an element in the page to inspect" tool - so you don't have highlights chasing your cursor.
- Click on the top-left box...what happens in the console?
- Notice the notes on the far right:
scripts.js: 20
,scripts.js: 43
, andscripts.js: 44
. These tell you at which line of code this log was generated. - Go find the lines these logs came from in the
scripts.js
file. - Go to the
index.html
file and find line 22:<td id='top-left' onclick="handleClick(this)" ></td>
- The
onclick
method calls thehandleClick()
function in thescripts.js
file and passes itself, the<td>
element to it. - Don't move on until you understand how that works.
- The
- Now read each of the green comment lines to start piecing together how this app works.
- After you have a general understanding find the
// @TODO
comments and fix the problems described. - Go to the HTML file and create all the rows you need for a complete Tic Tac Toe board.
- When you've finished create a Pull Request (PR) on the original repo and turn in the URL of that PR.
tictactoe-101's Introduction
tictactoe-101's People
Forkers
claytonberger robpwatkins fifitaung monica-suarez hverduzco1987 meredithdavis23 joshuaklingle nicolepate tommyhampton haroldmp jonathanh95130 moniqueholmes86 sylvia-png jasonmcgee0715 zltrain williamrharper williamperezjr davidcastillo4 juan-rod jamiecaudle devinhodge colemichaelj parmerwill fidelis0788 dillon7peterson acodereader shelby-jean jayswilder mpustejovsky sophiahope jeffgulick ulypanda enriqueoce capatterson1970 barbaroreyes cmcallegan porshah austinskrobar arielholman jacoblynch99 irscode t-eldridge davidstephenss destinyfsetzer kevinvalias michaelscoggins aca-web101 jetersdk willmcclure tcannetti austinbeal joseee177 acook0321 clairesheek g-geo stanleymmusial barrettsmith6 lanegarner nblack0917 nlewis989 keithakritselis rockman4417 marywenzel alexanderalban david-hebert brightonyoung mconnely jared-coats24 priscillamartinez jeffastringer brandonperry-co tommybivens14 benabaron jdotson23 nicholasmoran2001 eyokoo fumeng33 ttaylor75 sammydunn jeffmcrockett lucyalverson91 cesarrrc cullenfields jamesmessina andrewbrewer22 cdu4333 ericcoker18 saraashleyhs claxb tenefra davidcastilllo racmct idominikbrame michael-fares tevin-foster mayra-tellez lucyalverson jankmajesty kc-hrt kiffykowboyRecommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.