Eiffel-2048 is an Eiffel implementation of the popular game 2048. The implementation is written entirely in Eiffel, using Design by Contract. It is developed in the context of a course of distributed software engineering.
2048 2048 is a popular web game created by [Gabriele Cirulli] gabriele, where you must combine tiles of the same number repeatedly until you get a tile with the number 2048.
Eiffel-2048 is a student project with the following goals:
- Learn and explore the programming language Eiffel.
- Learn and use correctly the [Design by Contract] Design-by-contract approach.
- Learn and work using the following software development processes:
- EiffelStudio
- GitHub
- AngularJS (soon)
- Game Class
- Test Class
- Binaries
- Wiki
The core of the game is already implemented. The game is playable right now through the binaries provided in the [alpha release] alpha-release. The functionalities currently missing or being implemented are:
- User management with saved games.
- Client-Server architecture.
- Web interface.
- Download the binaries provided by the [alpha release] alpha-release.
- Execute the downloaded binary.
- File -> Open project -> Add project
- Select the file "eiffel-2048.ecf" (In Action select Compile) and press Open button.
- When finish the compile process you can run the program using the run button in EiffelStudio (or using the file in the folder EIFGENs\eiffel-2048\W_code).
- To play the game, press w, a, s, d (followed by a return) to move the tiles up, left, down and right respectively.
- In a movement, each pair of colliding tiles with the same number will combine. Continue doing this until you get the 2048 tile or you don't have any move available.
- You win the game when you get the 2048 tile.
- You lose the game when you can't move in any direction.
- To quit, press q (and return) to close the application.