Skip to content

Elixir implementation of 2048 using tabletop library

Notifications You must be signed in to change notification settings

Catsuko/sliding-tiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sliding Tiles

Implemented using the tabletop library.

Playing a Game

Use the SlidingTiles.ConsoleClient module to play a game in your elixir console:

iex> SlidingTiles.ConsoleClient.main()

  -    -    -    -    -  
  -    -    -    -    -  
  -    2    -    -    -  
  -    -    -    -    -  

Input the direction you want to move the tiles:

  • (u)p
  • (d)own
  • (l)eft
  • (r)ight

After each move, a new tile will be added to the board. If two tiles with the same value slide into one or the other, they will combine which doubles their value!

The game ends when there are no possible moves left, try to get the highest value tile possible!

About

Elixir implementation of 2048 using tabletop library

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages