mirror of
https://github.com/QuilibriumNetwork/ceremonyclient.git
synced 2026-02-22 02:47:26 +08:00
16 lines
179 B
Go
16 lines
179 B
Go
// -*- go -*-
|
|
//
|
|
// Rock, Paper, Scissors
|
|
|
|
package main
|
|
|
|
func main(g, e int8) string {
|
|
if g == e {
|
|
return "-"
|
|
}
|
|
if (g+1)%3 == e {
|
|
return "evaluator"
|
|
}
|
|
return "garbler"
|
|
}
|