passage du projet en eclipse compatible + ajout de ping + ajout de timeout + ajout verification client
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
package game;
|
||||
|
||||
import game.cards.Card;
|
||||
import game.deck.Deck;
|
||||
|
||||
public class DeckSerializer {
|
||||
public static String serializeDeck(Deck d)
|
||||
{
|
||||
StringBuilder str = new StringBuilder(d.getCards().size()*2);
|
||||
for(Card c : d.getCards())
|
||||
{
|
||||
str.append(c.toString()+",");
|
||||
}
|
||||
return str.toString();
|
||||
}
|
||||
|
||||
public static Deck deSerializeDeck(String g)
|
||||
{
|
||||
return null;
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user