-
Dotty - scala compiler
Moved to github
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Jokenpo{ | |
def banzai(j1, j2) | |
{ | |
if (j1 == j2) return "empate" | |
[ | |
pedra: "tesoura", | |
papel: "pedra", | |
tesoura :"papel" | |
].find { k, v -> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const assert = require('assert') | |
it ("primeiro caso - R2", () => { | |
assert.equal ( pula('R2') , 2 ) | |
}) | |
it ("segundo caso - R3", () => { | |
assert.equal ( pula('R3') , 3 ) | |
}) |
Outros links aqui
OlderNewer