class monopoly{
card: String[] = new Array();
a: number[] = new Array();
faststep():void{
this.card[ 1 ]=" GO ";
this.card[ 2 ]=" 地中海通り ";
this.card[ 3 ]=" 共同基金 ";
this.card[ 4 ]=" バルティック通り ";
this.card[ 5 ]=" 所得税 ";
this.card[ 6 ]=" リーディング鉄道 ";
this.card[ 7 ]=" オリエンタル通り ";
this.card[ 8 ]=" チャンス ";
this.card[ 9 ]=" バーモント通り ";
this.card[ 10 ]=" コネチカット通り ";
this.card[ 11 ]=" 刑務所、刑務所見学 ";
this.card[ 12 ]=" セントチャールズプレース ";
this.card[ 13 ]=" 電力会社 ";
this.card[ 14 ]=" ステーツ通り ";
this.card[ 15 ]=" バージニア通り ";
this.card[ 16 ]=" ペンシルバニア鉄道 ";
this.card[ 17 ]=" セントジェームスプレース ";
this.card[ 18 ]=" 共同基金 ";
this.card[ 19 ]=" テネシー通り ";
this.card[ 20 ]=" ニューヨーク通り ";
this.card[ 21 ]=" フリーパーキング ";
this.card[ 22 ]=" ケンタッキー通り ";
this.card[ 23 ]=" チャンス ";
this.card[ 24 ]=" インディアナ通り ";
this.card[ 25 ]=" イリノイ通り ";
this.card[ 26 ]=" B&O 鉄道 ";
this.card[ 27 ]=" アトランティック通り ";
this.card[ 28 ]=" ベントノール通り ";
this.card[ 29 ]=" 水道会社 ";
this.card[ 30 ]=" マービンガーデン ";
this.card[ 31 ]=" GO TO JAIL ";
this.card[ 32 ]=" パシフィック通り ";
this.card[ 33 ]=" ノースキャロライナ通り ";
this.card[ 34 ]=" 共同基金 ";
this.card[ 35 ]=" ペンシルバニア通り ";
this.card[ 36 ]=" ショートライン鉄道 ";
this.card[ 37 ]=" チャンス ";
this.card[ 38 ]=" パークプレース ";
this.card[ 39 ]=" 物品税 ";
this.card[ 40 ]=" ボードウォーク ";
}
move(s:number):void{
var n1,n2,m1,m2:number;
n1=6*Math.random();
m1=Math.floor(n1)+1;
n2=6*Math.random();
m2=Math.floor(n2)+1;
this.a[s]=this.a[s]+m1+m2;
if(this.a[s]>40)this.a[s]=this.a[s]-40;
}
}
最終更新:2016年11月20日 09:46