Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tic Tac Toe - Rachel Pavilanis #7

Open
wants to merge 38 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
f32d8f9
Blank files for game and game.spec
Dec 12, 2016
ec1587b
Blank files for game and game.spec
Dec 12, 2016
d997503
Wrote first failing test
Dec 12, 2016
29747bf
First test to see if the game board first row works
Dec 12, 2016
c38a5ed
added beginning of a board
rpavilanis Dec 12, 2016
1e94c87
The game board starts out as a blank array of arrays
Dec 12, 2016
504816d
Added playerX and playerO
Dec 13, 2016
d52746e
Winner function accurately checks an empty board
Dec 13, 2016
4267265
Added switch statement for drawing the symbol X or O
Dec 13, 2016
b5706d9
Switch statement now prevents players from selecting a spot that is a…
Dec 13, 2016
0bafcb0
Removed the active attribute from player, because it's no longer needed
Dec 13, 2016
ea1046d
Testing count function
Dec 13, 2016
fe3cb04
Wrote a boardReset function and test that you can't put a symbol in a…
Dec 13, 2016
d7b271a
All Tuesday work
Dec 13, 2016
5d2d49b
Divided count function into a countX function and countO function to …
Dec 14, 2016
8a85222
Tests for the countX and countO functions included in the count tests
Dec 14, 2016
af8a955
Tests for the tie function
Dec 14, 2016
102ae74
announceWinner function
Dec 14, 2016
69e7882
Added a couple tests with invalid input for spot
Dec 14, 2016
3e94fdc
created basic folder structure and stub files for models collections …
rpavilanis Dec 16, 2016
834dbd0
added foundation.css, added css folder and app.css, created basic htm…
rpavilanis Dec 16, 2016
823f728
added basic board to html file and css styling.
rpavilanis Dec 16, 2016
0c28b1f
removed app.js file
rpavilanis Dec 16, 2016
3939a00
adjusted board so it was correct width, adjusted styling to fit with …
rpavilanis Dec 16, 2016
701529b
added connections between files and also restructured files a bit fur…
rpavilanis Dec 16, 2016
104674f
added click event and checked with console_log that it works when a s…
rpavilanis Dec 16, 2016
9ee0f61
play and drawSymbol functions generally working - alternates between …
rpavilanis Dec 20, 2016
8e0f183
added modal functionality - working on styling of it next.
rpavilanis Dec 20, 2016
c14c0cf
player turn-taking is now working - simplified .play function
rpavilanis Dec 20, 2016
3c1a8d2
removed all count functions - unneeded now
rpavilanis Dec 20, 2016
de86d8c
dealt with ties - this is now working correctly
rpavilanis Dec 20, 2016
a629d0d
formatted modal so text is in center - still need a play again button…
rpavilanis Dec 20, 2016
ddaf702
fixed board and winner functions and index.html to make work with api…
rpavilanis Dec 21, 2016
5862654
adjusted formatting of board and outcome to fit API request - still n…
rpavilanis Dec 21, 2016
08f86cc
fixed countX function in case of ties to fit with new board model. ad…
rpavilanis Dec 21, 2016
6b0c14c
had to do more refactoring to get post to work. changed and added a f…
rpavilanis Dec 21, 2016
87be4f5
clicking on box causes page to reload.
rpavilanis Dec 21, 2016
fcc5c83
started working on vanilla javascript tic tac toe in game.js file
rpavilanis Dec 21, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
75 changes: 75 additions & 0 deletions build/css/app.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
@import url('https://fonts.googleapis.com/css?family=Lato|Orbitron');
/**************************/
/* Header */
/**************************/

h2 {
font-family: 'Orbitron';
text-align: center;
}

/**************************/
/* Board */
/**************************/
* {
margin: 0 auto;
padding: 2% 0 0 0;
}

body {
background-color: #F3F3F3;
}

table tr:nth-of-type(even) {
background-color: transparent !important;
}

table {
border-collapse: collapse;
border-spacing: 0;
border-style: hidden;
}

#board {
width: 30%;
padding: 0px;
margin: 0 auto;
margin-top: 10%;
}

#board tr td {
width: 80px;
height: 80px;
border: 1px solid #1c1c1c;
font-family: 'Lato';
font-size: 2em;
text-align: center;
background-color: #F3F3F3;
}

#board tr td:hover {
background: #E600B8;
cursor: pointer;
}

/**************************/
/* Modal */
/**************************/


.game-results-styling {
z-index: 10;
position: fixed;
width: 50%;
height: 50%;
top: 15%;
left: 25%;
background-color: #999b9a;
color: #401FF3;
text-align: center;
padding-top: 10%;
border: 1em solid #33F3D6;
font-size: 2em;
display: none;
font-family: 'Orbitron';
}
Loading