반응형
블로그 이미지
개발자로서 현장에서 일하면서 새로 접하는 기술들이나 알게된 정보 등을 정리하기 위한 블로그입니다. 운 좋게 미국에서 큰 회사들의 프로젝트에서 컬설턴트로 일하고 있어서 새로운 기술들을 접할 기회가 많이 있습니다. 미국의 IT 프로젝트에서 사용되는 툴들에 대해 많은 분들과 정보를 공유하고 싶습니다.
솔웅

최근에 올라온 글

최근에 달린 댓글

최근에 받은 트랙백

글 보관함

카테고리


반응형

이 글은 Korean Traditional board game "Yutnori" 윷놀이를 소개하는 Alexa Skill에서 사용할 image들을 모아 놓은 글 입니다.




  

              Malpan (말판)





  • 1 flat side up = 1 piece moves 1 space. This is called a pig or Doh.





  • 2 flat sides up = 1 piece moves 2 spaces. This is called a dog or Ge.





  • 3 flat sides up = 1 piece moves 3 spaces. This is called a sheep or Girl.


  • 4 flat sides up = 1 piece moves 4 spaces. This is called a cow or Yut.



Alexa Skill 에서 사용할 description 들


// Used when user asks for help.

var HelpMessage = "Here are some things you can say to learn more about Yutnori - the Korean traditional board game: How do I play? Tell me about the Mo. How do I win? Give me a tip!";


// Used when the skill is opened.

var welcomeMessage = "Yutnori Helper. You can ask how to set up the game, about an individual piece, what the rules are, how to win, or for a Yutnori tip. Which will it be?";


// We are using this after every piece of information has been read out by Alexa, however this is also used as a repromt string.

var repromtMessage = "Here are some things you can ask for: ";


// Describing the game overview.

var overviewMessage = "The word Yut translates to sticks or lots and Nori means game. Four tokens or Mal are moved around a cloth game board called a Malpan. Instead of modern dice, 4 Yut sticks, each having one flat side and one round side are cast to control the movement of the tokens. Grab the 4 sticks in one hand and let them fall onto the table. Once you get the hang of it, reading the throw of the sticks to determine your move is easy. Here’s how it works.";


// Describing how to set the game up.

var setupMessage = "The game board \"Malpan\" is made of cloth. The layout of the 29 spaces or stations on the board can be either in a square or round configuration. The round geometry of the game board is symbolic of the cosmos. The large station in the center denotes the North Star with the 28 stations around it signifying the constellations. At path intersections, there are 5 stations that are larger than the rest. When a token lands on one of these stations, a player may take a short cut through the center of the board. ";


// Describing how to win the game.

var goalMessage = "The game is played between two partners or two teams who play in turns, sometimes it is played with more teams. There is no limit in the number of participants in a game, which means that the game can be played by a considerable group. When played with large groups it is not uncommon for some group members never to cast the sticks: they still participate discussing the strategy. The game is won by the team who brings all their mals home first, that is complete the course with all their mals. A course is completed if a mal passes the station where the game is started (cham-meoki). Landing on cham-meoki is no finish, but any score going \"beyond\" this station completes a home run. Yut is often played for three or more wins. ";


var repromts = [

    "Which would you like to know: a Yutnori tip or how to win?",

    "Tell me the name of an individual Mal to learn more about it.",

    "Which would you like to know: how to set up the game or what the rules are?"];


var pieces = [

    { key: "doh", imageLarge: "", imageSmall: "", value: "Doh. 1 flat side up. 1 piece moves 1 space. This is called a pig or Do." },

    { key: "ge", imageLarge: "", imageSmall: "", value: "Ge. 2 flat sides up. 1 piece moves 2 spaces. This is called a dog or Gae." },

    { key: "girl", imageLarge: "", imageSmall: "", value: "Girl. 3 flat sides up. 1 piece moves 3 spaces. This is called a sheep or Girl." },

    { key: "yut", imageLarge: "", imageSmall: "", value: "Yut. 4 flat sides up. 1 piece moves 4 spaces. This is called a cow or Yut." },

    { key: "mo", imageLarge: "", imageSmall: "", value: "Mo. 4 round sides up. 1 piece moves 5 spaces. This is called a horse or Mo." },

];



// To handle different names of the Mals
function GetPiece(value) {
    //console.log("in GetPiece");
    switch (value.toLowerCase().trim()) {
        case "do":
        case "doh":
        case "pig":
            return "Doh";
        case "gae":
        case "Ge":
        case "Ke":
        case "dog":
            return "Ge";
        case "Geol":
        case "Geul":
        case "Girl":
        case "sheep":
            return "Girl";
        case "yut":
        case "cow":
            return "Yut";
        case "horse":
        case "Mo":
        return "Mo";
        default:
            return "Mo";
    }
}







반응형