#2048 in Idris
Author: Guannan Wei
This project aims to learn & show dependent type programming in Idris.
I implemented two versions of game 2048:
2048.idrshows how to achieve it in Idris just using traditional type system.
2048-dependent.idris the version using dependent type. The most important data structure is dependent list
Vect, and it also utilize built-in proof to ensure pre-conditions and post-conditions are satisfied.
You should have installed Idris (version 0.11 or later), see Idris Documentation.
make allto compile both two versions,
make 2048to compile ordinary version,
make 2048-depto compile the dependent type version.
How to play
wand press enter for move up,
afor move left,
sfor move down,
dfor move right,
qto quit the game.