Skip to content

haetze/server_2_2048

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 

Repository files navigation

server_2_2048

Simple Game server that allows local programs to connect to it and implement a GUI for the game without needed to write the logic themself.

The Protocol

Messages you can send

  • "new n\n" (n is a number that represents the dimensions of the square)
  • "right\n"
  • "left\n"
  • "up\n"
  • "down\n" In all cases the directions says which direction the slide is going in. For example "right\n" is a swipe from left to right.
  • exit Stops the game.

Messages you receive

  • "Empty\n", no game has been started
  • "Lost n\n", the game is over and you can't make a move any more. n is the number of points achieved.
  • [None...];....;[None..]; Messages that represent the state of the game board. None means the field is empty. Some(n) means n is on the board at that plays.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages