This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var tiles = document.getElementsByClassName('tile'); | |
| //get array of board tiles by className | |
| var buttons = document.getElementsByClassName('button'); | |
| //get array of buttons by className | |
| var state = [0, 0, 0, 0, 0, 0, 0, 0, 0]; | |
| // 0 will be the empty tile | |
| var game = true; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| Programming Challenge Description: | |
| Write a program that squares an integer and prints the result. | |
| Input: | |
| Your program should read lines from standard input. Each line will contain a positive integer. | |
| Output: | |
| For each line of input, print to standard output the square of the number. Print out each result on a new line. | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Page Title</title> | |
| </head> | |
| <body> | |
| <div id="page-wrap"> |