/PotatoParty

Repo of the big project of 2048 game

Primary LanguageJava

potato

PotatoParty

Repo of the big project of 2048 game
A java-based application with ultra light client app to play a 2048 game. The game model is set on a server
Made by @Karuskrokro && @DaftSpirit

How to configure the game

You just have to update the server IPV4 address in the two classes :

  • LauncherClient.java line 23 :
InetAddress.getByName("localhost"), 9090);
  • LauncherServer.java line 11 :
new Thread(new Server(InetAddress.getByName("localhost"), 9090, worker)).start();

How to build the game

You have to make 2 runnable .jar files

  • One with a run configuration with LauncherServer.java for the server side
    $> javac -classpath . *.java
    $> jar cvfm PotatoPartyServer.jar META-INF/MANIFEST.MF *.class
    $> java -cp ./PotatoPartyServer.jar pp.server.LauncherServer  
  • One with a run configuration with LauncherClient.java for the client side
    $> javac -classpath . *.java
    $> jar cvfm PotatoPartyClient.jar META-INF/MANIFEST.MF *.class
    $> java -cp ./PotatoPartyClient.jar pp.client.LauncherClient  

How to launch a game

Simply run the server wherever you want and then run as many clients as you want anywhere =)

Sources

Have potato fun !

potato