funprog / funbot

MIT License
5 stars 2 forks source link

기존 dicebot과 동일한 로직 구현 #5

Closed jwChung closed 8 years ago

jwChung commented 8 years ago

아래와 같은 onReceive 함수 구현

// msg: 4D6
// 리턴결과: 1,4,2,1
onReceive(msg: String): String{
  if(valid) "결과: " + roll().mkString(",")
  else "오류입니다" 
}

def roll (x:Int, y:Int): Seq[Int] = ???
jwChung commented 8 years ago

@myeesan PR #22 에서 제기한 이슈가 남아있지만 현재의 #5 와 직접 관련이 없기에 이 이슈를 닫습니다.