Commit Graph

61 Commits (master)

Author SHA1 Message Date
lostheaven92 1a0a273171 Bug fix
Bug fix in the dialog box and game let number 0 be played
2016-11-01 01:25:26 +00:00
lostheaven92 1bf08df491 Final code refactoring
- Fast code refactoring to enhance near deadline of the project delivery
to enchance code readability. - Some minor optimizations of performance.
2016-11-01 01:08:07 +00:00
lostheaven92 4427d2fa9b Game over bug fix #2
Button and horizontal row inside dialog box were appended to the dialog
everytime the dialog was called. Fixed by "creating" the dialog in the
beggining of the game while it was hidden and then, when the game was
won, the dialog is showed
2016-10-31 01:32:07 +00:00
NoNameGuy 98255b83f2 Solved Bug
Disabled entering values after click OK on Dialog (when game is over)
2016-10-31 00:40:33 +00:00
Jessica Machado d76eff4b14 SUPER COMMIT (please read the description)
--> cleanBoard()
Bug fix, remove the green cells when starts a new game.

--> insertNumber()
Bug fix, just decrement the value of missing cells, if the cell had no
value before.
Bug fix, if the cells are green and the number of cells missing are
different of 0, so remove the color green of the cells.

--> animateCell()
Delete code, of unuseless animations.

--> checkGameOver()
Add code, for highlight cells to green, when the game is over.

--> removeHighlightGreen() -  NEW FUNCTION
Used for highlight the cells to green.
2016-10-25 20:22:57 +01:00
lostheaven92 8470b469bf Check game with animation
Check game with animation
2016-10-24 12:32:29 +01:00
lostheaven92 fb54600169 Game over verification
Game over verification
2016-10-24 12:28:05 +01:00
Jessica Machado 98e1fd9a1e Add Comments - function highlightGree()
Add comments and delete console.log().
2016-10-24 12:24:35 +01:00
Jessica Machado f3c74ae496 New Function - highlightGree()
Called in the gameOver().
2016-10-24 12:15:06 +01:00
lostheaven92 18f174a8f7 Fim do dialog
Fim do dialog
2016-10-24 11:54:49 +01:00
lostheaven92 98bd237e6a Add button to the dialog box
Add button to the dialog box
2016-10-24 11:18:35 +01:00
NoNameGuy ebd49e5930 Function Time
Function to calculate the time passed since beginning to end of game!
2016-10-24 11:15:58 +01:00
lostheaven92 187e1bafd5 Add a hr to the div of the "Game Won" message
Add a hr to the div of the "Game Won" message
2016-10-24 10:42:01 +01:00
Jessica Machado 20af1d5ed9 Original index.html
...
2016-10-24 10:27:04 +01:00
Jessica Machado 60148dd791 TESTE
TESTE
2016-10-24 10:26:04 +01:00
lostheaven92 094c5a4c3e Creation of the game won window
Creation of the game won window
2016-10-24 10:17:00 +01:00
lostheaven92 2ce336b874 Checking if there is conflicts
Check if there is conflicts, toggle conflicts, and stuff..
2016-10-23 16:12:33 +01:00
lostheaven92 111ab07d5a #4 Bug Fixed
Fixed the bug #4 ("Ao preencher a ultima célula do tabuleiro, o
tabuleiro animava todas as células ao mesmo tempo").
2016-10-22 15:53:22 +01:00
Jessica Machado 613d090a23 Conclusion of the selection of a number (point 6)
--> button events (buttons with number)
--> selectNumber (conclusion)
2016-10-21 00:07:35 +01:00
Jessica Machado d22938dfb8 Add Button Events (buttons with number)
-> Click event in the buttons with number.
-> New function selectNumber (TODO).
2016-10-20 19:51:18 +01:00
Jessica Machado 04ee358f8b Add Comments
- animateCell()
- animate()
2016-10-20 19:26:08 +01:00
lostheaven92 109436e593 #3 Bug Fixed
Fixed the bug #3 (Impedir o jogador de jogar "e" || "E" || + || - || .
|| , ).
2016-10-19 19:34:46 +01:00
lostheaven92 8bf6717a09 #2 Bug Fixed
Fixed the bug #2 (Impedir o jogador de colocar números se ainda não foi
feito NewGame).
2016-10-19 19:14:38 +01:00
lostheaven92 c202dead9f #1 Bug fixed
Fixed the bug #1 (Quando faço uma linha, e apago um elemento, a sua
classe não é eliminada).
2016-10-19 19:03:46 +01:00
lostheaven92 2ebfa6b17b Select a cell
Now a cell can be selected. When a cell is selected, its boarders become
red, when it is clicked again, its borders' color disappear.
2016-10-19 18:54:51 +01:00
lostheaven92 07aee0e8db Bug fixes
Fixed the bug of getArrayFromMatrixQuadrant().
Now cleanBoard correctly cleans "with-value" elements.
2016-10-18 23:48:25 +01:00
Jessica Machado 53e81d8ff8 Fix Changes of Merge
Delete random stuff.
2016-10-18 19:31:25 +01:00
Jessica Machado 888e88eff4 Merge remote-tracking branch 'origin/master'
# Conflicts:
#	js/main.js
2016-10-18 19:19:11 +01:00
Jessica Machado fd194ca344 New functions animeCell() and anime()
animeCell() --> anime just a cell
anime() --> anime a collection of elements
2016-10-18 19:16:31 +01:00
lostheaven92 8f1b6fc05d Added isFullQuadrant() and refactoring
- Implemented the "delete number" functionality
- Implemented some constants
- Implemented the getArrayFromMatrixQuadrant() function that given a row
and a column, returns in an array the elements' corresponding quadrant
in the matrix.
- Implemented the isFullQuadrant()
2016-10-18 19:13:50 +01:00
lostheaven92 e3dd714ecf Refactor again
Another refactor again.
2016-10-17 20:12:25 +01:00
lostheaven92 9aaccf79f8 Refactor
Little bit of code refactoring.
2016-10-17 19:41:29 +01:00
lostheaven92 5794584975 Added the isFullRow() and isFullCol() functions
Creation of the functions that allow the page to know if a row/column is
completed to animate it.
2016-10-17 19:35:13 +01:00
lostheaven92 ec7c9c42d5 Insert number functionality
- Insertion of number is now functional with GUI updating its class.
- Little refactoring
2016-10-17 18:08:47 +01:00
lostheaven92 9911d4b777 Create delay5Seconds() function
Encapsulation of the setTimeout function with 5 seconds delay.
2016-10-17 11:27:59 +01:00
NoNameGuy d69740d042 CallAPIRest
Init Table with number.
New game with different difficulty OK!
2016-10-17 11:03:30 +01:00
NoNameGuy 129e18dcbc Fix Errors
.
2016-10-17 10:26:17 +01:00
NoNameGuy 971137e248 Fix Photo & GET Request 2016-10-16 21:41:26 +01:00
Jessica Machado bda69354b0 Fix Index Error
O ficheiro index foi substituido pelo original.
2016-10-15 17:18:41 +01:00
lostheaven92 f30bac83b4 Change of project authors [FINISHED]
End of the implementation of the "authors of the project"
- Update of picture's size
- Update of students' name
- Update of students' number
2016-10-14 00:43:27 +01:00
lostheaven92 4293049cee Student's image fix
All student's images' size are now programmatically set by
changeImageSize()
2016-10-13 23:50:58 +01:00
Jessica Machado a864f2a524 Merge remote-tracking branch 'origin/master'
# Conflicts:
#	js/main.js
2016-10-13 23:43:11 +01:00
Jessica Machado 4a36048721 Info Author2 (TODO) 2016-10-13 23:42:20 +01:00
Jessica Machado 598b891bed Add Photo2 2016-10-13 23:39:56 +01:00
lostheaven92 846a14c238 Function to change student photo
Creation of the function changeStudentPhoto() to wrap image size.
2016-10-13 23:37:39 +01:00
NoNameGuy 82d2062fc4 MyPhoto
MyPhoto
2016-10-13 23:08:16 +01:00
lostheaven92 8460618415 Photo 1 changed
Change student's 1 photo.
2016-10-13 23:04:57 +01:00
NoNameGuy ce7616bb9a .
.
2016-10-13 22:57:17 +01:00
lostheaven92 28b0538d4e Merge branch 'master' of https://github.com/NoNameGuy/DADSudoku 2016-10-13 22:54:11 +01:00
lostheaven92 5a9c7d1bda Merge remote-tracking branch 'origin/master'
Conflicts:
	README.md
2016-10-13 22:54:02 +01:00