Page 436 - 완) I MDP 프로젝트 작품 보고서(전체과 1학년)1.6
P. 436
Shellgame - Place.js (그냥 문자열이 담겨있음)
var ShellGame;
(function (ShellGame) {
(function (Place) {
Place[Place["Left"] = 0] = "Left";
Place[Place["Middle"] = 1] = "Middle";
Place[Place["Right"] = 2] = "Right";
})(ShellGame.Place || (ShellGame.Place = {}));
var Place = ShellGame.Place;
})(ShellGame || (ShellGame = {}));
Shellgame - Position.js(Position 객체 생성)
var ShellGame;
(function (ShellGame) {
var Position = (function () {
function Position(x, y) {
this.x = x;
this.y = y;
}
Object.defineProperty(Position.prototype, "X", {
get: function () {
return this.x;
},
set: function (x) {
this.x = x;
},
enumerable: true,
configurable: true
});
Object.defineProperty(Position.prototype, "Y", {
get: function () {
return this.y;
},
set: function (y) {
this.y = y;
},
- 429 -