On Github webplatformz / challenge-pitch-reveal
Huge package ecosystem
Lightweight
npm start
A lot of good packages ~260k - 667 per day(maven 121) front- and backend compared to maven easy and lightweight super easy startPrototypal Inheritance
No static types
Nonverbose Syntax
modules with prototypes and factories instead of classes no type guarantees -> more unit tests more concise syntax (arrow functions, object literal...)Bot, what is your name?
{
"type" : "REQUEST_PLAYER_NAME"
}
Here are your cards. Good luck.
{
"type" : "DEAL_CARDS",
"data" : [{
"number" : 13,
"color" : "SPADES"
}, {
"number" : 9,
"color" : "DIAMONDS"
},
...
]
}
{
"type" : "REQUEST_TRUMP"
}
{
"type" : "BROADCAST_TRICK"
}
Sprache
Trumpf, Wyse, Stich, Stöck, Undeufe, Obenabe
{
"type" : "REQUEST_TRUMPF"
}
There are bot skeletons ready to use in Java 8 and JavaScript.
They are not very smart, but they can play.
function onRequestCard() {
let cardToPlay = this.getRandomCard();
this.api.playCard(cardToPlay);
}
function onRequestCard() {
let handCard = this.giveValidCardFromHand();
this.handcards.splice(this.handcards.indexOf(handCard), 1);
this.client.send(handCard));
}