Esteban Manchado Velázquez
769abf8014
Add a link to the online version
5 years ago
Esteban Manchado Velázquez
6dc2c02ad4
Use assoc-in when the updated value is known beforehand
6 years ago
Esteban Manchado Velázquez
be3126d290
Small refactoring / code simplification
One of the loop bindings in move-{left,right} was constant, so
replace that with a let binding (if needed).
6 years ago
Esteban Manchado Velázquez
adeec59263
Add README file
6 years ago
Esteban Manchado Velázquez
6e3c11273d
Restarting the game resets both board and flags
6 years ago
Esteban Manchado Velázquez
07335a8144
Have a proper, almost-empty initial board
6 years ago
Esteban Manchado Velázquez
3987593b77
Allow the player to keep playing after winning
6 years ago
Esteban Manchado Velázquez
d2afd2a9df
End game improvements
* Factor out some common code in end game messages
* Handle the "restart" event so the game can be restarted
6 years ago
Esteban Manchado Velázquez
59cf16bce7
Mark private functions as private
6 years ago
Esteban Manchado Velázquez
85123d368b
Make 10% of extra tiles be 4, not 2
6 years ago
Esteban Manchado Velázquez
042e5aebcb
Fix tile styling
6 years ago
Esteban Manchado Velázquez
090903fb5a
Remove annoying animations
The animations are annoying because, as React/Om is taking care
of the DOM updating, tiles are different after moving.
6 years ago
Esteban Manchado Velázquez
4991bf30dc
Simple end of game implementation
* Make a simplistic implementation of both winning and losing
* This implementation allows the game to continue below the
overlay, and doesn't have a restart option
* The code is also suboptimal, needs refactoring
6 years ago
Esteban Manchado Velázquez
f14277c980
Implements movements-left? function
6 years ago
Esteban Manchado Velázquez
79dc1d684e
Rename core_test to board_test
6 years ago
Esteban Manchado Velázquez
765604ffae
First implementation of movement
Includes a somewhat simplistic implementation of adding a new tile
for every move.
6 years ago
Esteban Manchado Velázquez
5a44a00a7e
Always keep board as vectors when moving
6 years ago
Esteban Manchado Velázquez
ea30b4ea40
Fix tests by turning them to ClojureScript
* They're now run with Karma
* The React library is now downloaded and used locally
* The module ttfe.core now has an "init" function that must be
called from index.html, to avoid that the tests choke when they
can't "paint" the page
6 years ago
Esteban Manchado Velázquez
44c30cbed9
Rename to ttfe, add React/Om web UI (proof of concept)
6 years ago
Esteban Manchado Velázquez
9cc2381108
Implement vertical movement
6 years ago
Esteban Manchado Velázquez
7f20c6a63b
Implement left movement
6 years ago
Esteban Manchado Velázquez
ed0cda3a17
Initial commit: first move-right implementation
6 years ago