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

Danielle's Tic Tac Toed/Toad #9

Open
wants to merge 55 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
3db67cc
Initial file structure and working test file
dschrimm Dec 13, 2016
fd1da0c
WIP: initialize player with identifier
dschrimm Dec 13, 2016
940d904
added separate files for Player
dlaguerta Dec 13, 2016
a9543d6
make player actually work
dlaguerta Dec 13, 2016
a19f60c
working tests, building the empty board
dlaguerta Dec 13, 2016
4e44d26
working on test for checking empty spots
dlaguerta Dec 13, 2016
4123a12
working test to check if space is occupied
dschrimm Dec 13, 2016
008c056
add game initialize and place marker tests and functionalities
dschrimm Dec 13, 2016
358fbef
added specs and functionality to turn function for toggling players a…
dlaguerta Dec 14, 2016
80aff75
pseudocoded the rest of the turn function
dlaguerta Dec 14, 2016
f7938e6
oops here's the rest of the code
dlaguerta Dec 14, 2016
1f5ac53
add test and functionality to place marker only if space is empty
dschrimm Dec 14, 2016
285b430
passing test for row winner, but not for column
dlaguerta Dec 14, 2016
f5f31ed
wrote functionality for finding winners, going to refactor
dlaguerta Dec 14, 2016
0197459
refactor checkWin
dschrimm Dec 14, 2016
2d1a899
throws error when game is won. WIP: checkwin error message
dschrimm Dec 14, 2016
30ec621
found bug in Player 2 when initializing new game
dlaguerta Dec 14, 2016
a837aa5
wrote the logic for a tied game
dlaguerta Dec 14, 2016
ec63565
finished logic for running tictactoe
dlaguerta Dec 14, 2016
4ab3a06
created file stubs
dlaguerta Dec 16, 2016
bd63932
working on html
dlaguerta Dec 16, 2016
e4dfe4b
added more stuff to html, still working on structure
dlaguerta Dec 16, 2016
2e2f926
add table with spaces to fill with spaceviews
dschrimm Dec 16, 2016
5dfe4a3
add new game button
dschrimm Dec 16, 2016
c044157
add foundation columns for player info
dschrimm Dec 16, 2016
7f3c5dc
view files set up
dschrimm Dec 16, 2016
200e6ff
comment imports/exports so that project compiles
dschrimm Dec 16, 2016
c7a27c1
attempt at making board have events
dschrimm Dec 19, 2016
77e9583
server starting successfully, working on rendering board and space views
dlaguerta Dec 19, 2016
6d19803
added render to initialize
dlaguerta Dec 19, 2016
ea755a8
added click handling for each cell in our board table
dlaguerta Dec 19, 2016
b8d84bb
board identifies cell that was clicked
dschrimm Dec 19, 2016
efebd7c
WIP: CSS
dschrimm Dec 19, 2016
78a32eb
successful game board spacing
dschrimm Dec 19, 2016
50eeab3
displays no hover after cell has been clicked
dschrimm Dec 19, 2016
9867558
Move model files and update import statements
dschrimm Dec 19, 2016
8ccae0e
Move tic tac toe model to game in models folder and update import sta…
dschrimm Dec 19, 2016
5af368c
Convert board to Backbone model
dschrimm Dec 19, 2016
b8b848a
Convert player to Backbone model
dschrimm Dec 19, 2016
801c2b7
change player initializer to take in options
dschrimm Dec 19, 2016
64dc58a
Change game to Backbone model
dschrimm Dec 19, 2016
331e05a
Use dot notation in Player initializer
dschrimm Dec 19, 2016
0583bf6
File name changes for consistency
dschrimm Dec 19, 2016
798816c
create game and board instances to be passed in as models
dschrimm Dec 20, 2016
7b54a05
Change table ids to match coordinates
dschrimm Dec 20, 2016
d008c44
Click handler passes coordinates to ApplicationView
dschrimm Dec 20, 2016
c3607b3
Turn is called with each click and winner/ties/occupied spaces are de…
dschrimm Dec 20, 2016
7a35c0c
Square color changes with player. WIP: Last square chage color
dschrimm Dec 20, 2016
31533b0
Displays color of last square
dschrimm Dec 21, 2016
b8f23d9
New game feature functioning
dschrimm Dec 21, 2016
cb3e38e
Toad and toes added with static box size
dschrimm Dec 21, 2016
e0b9e76
Show appropriate current player and hide current player when game ends
dschrimm Dec 21, 2016
dcf67c6
Successfully posting game results to API
dschrimm Dec 22, 2016
d94ba0e
Shows correct current player marker when occupied spot is selected, c…
dschrimm Dec 22, 2016
2bd636f
WIP: fetching past games
dschrimm Dec 22, 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
48 changes: 48 additions & 0 deletions build/css/app.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
table {
border-collapse: separate;
border-spacing: 7px 7px;
max-width: 600px;
table-layout: fixed;
}

tr {
height: 8em;
}

td {
border-radius: 14px;
margin: 20px;
background-color: #78bec5;
margin: 10px;
width: 50px;
height: 50px;
font-size: 4em;
text-align: center;
}

td:hover {
background-color: #3d4250;
}

p {
font-size: 3em;
}

.player-one {
background-color: rgb(173, 66, 92);
}
.player-one:hover {
background-color: rgb(173, 66, 92);
}

.player-two {
background-color: rgb(42, 129, 198);
}

.player-two:hover {
background-color: rgb(42, 129, 198);
}

#past-games {
text-align: center;
}
Loading