This is a port of the popular tile game by Gabriele Cirulli written in Elixir. This repo is a medium for me to experiment with Elixir, Phoenix & OTP, to demonstrate my engineering abilities, and so my wife can play her favorite game ad-free.
The game uses LiveView, which isn't ideal for this type of game, but wanted to use this as a sandbox for my personal learning and enjoyment. That said, if you have a decent internet connection, you shouldn't really notice any latency.
Want to go ahead and jump in? Play the game online.
If you would prefer to run the game locally:
- Clone this repo with
git clone git@github.com:drewfravert/2048.git - Setup the application environment with
mix setup - Add
game.localas an alias tolocalhostin your/etc/hostsfile - Start the server with
mix phx.server - Visit
https://game.local:4001in your browser.
- Leaderboard
- Recap of played games
- Live observation of ongoing games
If you have questions or would like to request a new feature, you may reach me at drew@fravert.org.
Licensed under the MIT License.