Frame 1 (105 B)
fscommand ("allowscale", "false");
fscommand ("showmenu", "false");
fscommand ("trapallkeys", "true");
Frame 3 (8 B)
stop();
Frame 4 (196 B)
var song_sound = new Sound();
song_sound.attachSound("main_sound");
song_sound.start();
song_sound.setVolume(60);
song_sound.onSoundComplete = function () {
song_sound.start();
};
stop();
Frame 5 (8 B)
stop();
Instance of Symbol 2 MovieClip in Symbol 3 MovieClip [particle] Frame 1 (915 B)
onClipEvent (load) {
xMin = -100;
xMax = 100;
yMin = -100;
yMax = 100;
minSize = 10;
maxSize = 40;
easeFactor = 25;
randomX = ((Math.random() * (xMax - xMin)) + xMin) + _parent._x;
randomY = ((Math.random() * (yMax - yMin)) + yMin) + _parent._y;
randomSize = (Math.random() * (maxSize - minSize)) + minSize;
}
onClipEvent (enterFrame) {
distance = Math.sqrt(Math.pow(_parent._x - randomX, 2) + Math.pow(_parent._y - randomY, 2));
if (Math.abs(_parent._width - maxSize) > 1) {
_parent._width = _parent._width + ((randomSize - _parent._width) / 2);
_parent._height = _parent._height + ((randomSize - _parent._height) / 2);
}
if (distance > 3) {
_parent._x = _parent._x + ((randomX - _parent._x) / easeFactor);
_parent._y = _parent._y + ((randomY - _parent._y) / easeFactor);
_parent._alpha = _parent._alpha - (_parent._alpha / easeFactor);
} else {
_parent.removeMovieClip(this);
}
}
Symbol 14 MovieClip Frame 1 (14 B)
_root.stop();
Symbol 14 MovieClip Frame 2 (303 B)
All = int(_root.getBytesTotal());
loa = int(_root.getBytesLoaded());
ploaded = (100 * loa) / All;
pr._xscale = ploaded;
prest = 100 - ploaded;
tm = int(rem);
totaltxt = Math.floor(All / 1024) + " KB";
prtxt = int(ploaded) + "%";
loadedtxt = Math.floor(loa / 1024) + " KB";
resttxt = All - loa;
Symbol 14 MovieClip Frame 3 (69 B)
if (All == loa) {
gotoAndPlay (4);
} else {
gotoAndPlay (2);
}
Symbol 14 MovieClip Frame 15 (25 B)
_parent.play();
stop();
Symbol 18 MovieClip Frame 1 (77 B)
onRelease = function () {
getURL ("http://picasogames.com", "_blank");
};
Symbol 18 MovieClip Frame 85 (25 B)
_parent.play();
stop();
Instance of Symbol 24 MovieClip in Symbol 25 MovieClip Frame 1 (220 B)
on (release) {
_root.gotoAndStop("main_menu");
}
onClipEvent (load) {
title = "Skip";
stop();
}
on (release, rollOut, dragOut) {
gotoAndStop (1);
}
on (press) {
gotoAndStop (3);
}
on (rollOver) {
gotoAndStop (2);
}
Symbol 25 MovieClip Frame 161 (32 B)
_root.gotoAndStop("main_menu");
Symbol 31 MovieClip Frame 1 (8 B)
stop();
Instance of Symbol 35 MovieClip in Symbol 36 MovieClip Frame 1 (847 B)
on (press) {
startDrag (this, false, 0, 0, 0, 52.5);
this.isDragging = true;
}
onClipEvent (enterFrame) {
if (this._y >= 52) {
}
}
on (release, releaseOutside) {
stopDrag();
this.isDragging = false;
}
onClipEvent (load) {
maxSize = 20;
origSize = 15;
this.isDragging = false;
}
onClipEvent (enterFrame) {
if (this.isDragging) {
_root.song_sound.setVolume(100 - (this._y * 2));
}
if (this.hitTest(_parent._parent._parent._xmouse, _parent._parent._parent._ymouse)) {
if (Math.abs(maxSize - this._width) > 1) {
this._width = this._width + ((maxSize - this._width) / 2);
this._height = this._height + ((maxSize - this._height) / 2);
}
} else if (Math.abs(origSize - this._width) > 1) {
this._width = this._width - ((this._width - origSize) / 2);
this._height = this._height - ((this._height - origSize) / 2);
}
}
Symbol 37 MovieClip Frame 21 (65 B)
stop();
volume_control._alpha = 0;
sound_control._alpha = 100;
Instance of Symbol 28 MovieClip in Symbol 37 MovieClip Frame 21 (119 B)
onClipEvent (mouseMove) {
if (this.hitTest(_parent._parent._xmouse, _parent._parent._ymouse)) {
_parent.play();
}
}
Instance of Symbol 31 MovieClip "sound_control" in Symbol 37 MovieClip Frame 21 (257 B)
on (release) {
if (isSound) {
isSound = false;
this.gotoAndStop(2);
_parent._parent.song_sound.stop();
} else {
isSound = true;
this.gotoAndStop(1);
_parent._parent.song_sound.start();
}
}
onClipEvent (load) {
var isSound;
isSound = true;
}
Symbol 37 MovieClip Frame 22 (26 B)
sound_control._alpha = 0;
Symbol 37 MovieClip Frame 40 (67 B)
stop();
volume_control._alpha = 100;
sound_control._alpha = 100;
Instance of Symbol 28 MovieClip in Symbol 37 MovieClip Frame 40 (236 B)
onClipEvent (mouseMove) {
if (!this.hitTest(_parent._parent._xmouse, _parent._parent._ymouse)) {
_parent.play();
}
}
onClipEvent (load) {
if (!this.hitTest(_parent._parent._xmouse, _parent._parent._ymouse)) {
_parent.play();
}
}
Symbol 37 MovieClip Frame 41 (54 B)
volume_control._alpha = 0;
sound_control._alpha = 0;
Symbol 37 MovieClip Frame 60 (23 B)
gotoAndStop ("music");
Instance of Symbol 42 MovieClip in Symbol 43 MovieClip Frame 1 (530 B)
onClipEvent (load) {
minSize = 3.5;
maxSize = 4.5;
randomSize = (Math.random() * (maxSize - minSize)) + minSize;
easeFactor = (Math.random() * 25) + 25;
_width = randomSize;
_height = randomSize;
_alpha = ((Math.random() * 74) + 11);
max_alpha = _alpha;
min_alpha = Math.random() * 10;
half_alpha = (max_alpha - min_alpha) / 2;
t = 0;
w = (Math.random() * 1.5) + 0.5;
}
onClipEvent (enterFrame) {
t = t + 0.1;
_alpha = ((Math.sin(w * t) * half_alpha) + (max_alpha - half_alpha));
if (t > 360) {
t = 0;
}
}
Symbol 46 Button (49 B)
on (release) {
_root.gotoAndStop("help_menu");
}
Symbol 49 Button (52 B)
on (release) {
_root.gotoAndStop("credits_menu");
}
Symbol 52 Button (51 B)
on (release) {
_root.gotoAndStop("choose_menu");
}
Instance of Symbol 53 MovieClip in Symbol 56 MovieClip Frame 1 (242 B)
onClipEvent (load) {
_alpha = 0;
t = 0;
onEnterFrame = function () {
if (_alpha < 100) {
_alpha = (_alpha + 2);
} else {
onEnterFrame = function () {
t = t + 0.1;
_alpha = ((Math.sin(t) * 20) + 100);
};
}
};
}
Instance of Symbol 55 MovieClip in Symbol 56 MovieClip Frame 1 (134 B)
onClipEvent (load) {
_alpha = 0;
t = 0;
onEnterFrame = function () {
if (_alpha < 100) {
_alpha = (_alpha + 2);
}
};
}
Symbol 76 MovieClip Frame 1 (8 B)
stop();
Symbol 84 MovieClip Frame 10 (8 B)
stop();
Symbol 92 MovieClip Frame 1 (79 B)
var orig_x = this._x;
var orig_y = this._y;
stop();
name_txt = this._name;
Instance of Symbol 68 MovieClip in Symbol 92 MovieClip Frame 1 (672 B)
onClipEvent (load) {
maxSize = 40;
origSize = 20;
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent._xmouse, _parent._parent._ymouse)) {
if (_parent._parent.game.pl_can_act) {
if ((_parent._parent.game.cur_act == "place") || (_parent._parent.game.cap_selected != "")) {
if (Math.abs(maxSize - this._width) > 1) {
this._width = this._width + ((maxSize - this._width) / 2);
this._height = this._height + ((maxSize - this._height) / 2);
}
}
}
} else if (Math.abs(origSize - this._width) > 1) {
this._width = this._width - ((this._width - origSize) / 2);
this._height = this._height - ((this._height - origSize) / 2);
}
}
Instance of Symbol 70 MovieClip in Symbol 92 MovieClip Frame 1 (189 B)
onClipEvent (mouseDown) {
if (this.hitTest(_parent._parent._xmouse, _parent._parent._ymouse) && (_parent._parent.game.pl_can_act)) {
_parent._parent.MakeMove(_parent._name);
}
}
Instance of Symbol 75 MovieClip in Symbol 92 MovieClip Frame 7 (51 B)
onClipEvent (load) {
}
onClipEvent (enterFrame) {
}
Symbol 92 MovieClip Frame 9 (1.02 KiB) ●
if ((Math.abs(this._x - _parent[toCap]._x) > 3) || (Math.abs(this._y - _parent[toCap]._y) > 3)) {
if (this._x >= _parent[toCap]._x) {
this._x = this._x - Math.abs((this._x - _parent[toCap]._x) / 10);
} else {
this._x = this._x + Math.abs((this._x - _parent[toCap]._x) / 10);
}
if (this._y >= _parent[toCap]._y) {
this._y = this._y - Math.abs((this._y - _parent[toCap]._y) / 10);
} else {
this._y = this._y + Math.abs((this._y - _parent[toCap]._y) / 10);
}
this.prevFrame();
this.play();
} else {
this._x = orig_x;
this._y = orig_y;
_parent[toCap].gotoAndStop("cap_" + _parent.game.cur_turn);
if (_parent.game[_parent.game.cur_turn + "_control"] == "PL") {
_parent.MillsCheck(toCap, 1, true);
_parent.AllCheck(true, toCap);
} else if (_parent.game[_parent.game.cur_turn + "_control"] == "AI") {
_parent.MillsCheck(toCap, 1, true);
_parent.AI_AllCheck();
game.pl_can_act = true;
}
this.origCap = "";
this.toCap = "";
game.pl_can_act = true;
this.gotoAndStop("cap_blank");
}
Symbol 92 MovieClip Frame 13 (1 KiB)
if ((Math.abs(this._x - _parent[toCap]._x) > 3) || (Math.abs(this._y - _parent[toCap]._y) > 3)) {
if (this._x >= _parent[toCap]._x) {
this._x = this._x - Math.abs((this._x - _parent[toCap]._x) / 10);
} else {
this._x = this._x + Math.abs((this._x - _parent[toCap]._x) / 10);
}
if (this._y >= _parent[toCap]._y) {
this._y = this._y - Math.abs((this._y - _parent[toCap]._y) / 10);
} else {
this._y = this._y + Math.abs((this._y - _parent[toCap]._y) / 10);
}
this.prevFrame();
this.play();
} else {
this._x = orig_x;
this._y = orig_y;
_parent[toCap].gotoAndStop("cap_" + _parent.game.cur_turn);
if (_parent.game[_parent.game.cur_turn + "_control"] == "PL") {
_parent.MillsCheck(toCap, 2, true);
_parent.AllCheck(true, toCap);
} else if (_parent.game[_parent.game.cur_turn + "_control"] == "AI") {
_parent.MillsCheck(toCap, 2, true);
_parent.AI_AllCheck();
game.pl_can_act = true;
}
this.origCap = "";
this.toCap = "";
this.gotoAndStop("cap_blank");
}
Symbol 92 MovieClip Frame 15 (33 B)
_parent.game.pl_can_act = false;
Symbol 92 MovieClip Frame 32 (200 B)
if (_parent.game[_parent.game.cur_turn + "_control"] == "AI") {
}
if (_parent.game[_parent.game.cur_turn + "_control"] == "PL") {
}
_parent.game.pl_can_act = true;
this.gotoAndStop("cap_white");
Symbol 92 MovieClip Frame 35 (33 B)
_parent.game.pl_can_act = false;
Symbol 92 MovieClip Frame 52 (200 B)
if (_parent.game[_parent.game.cur_turn + "_control"] == "AI") {
}
if (_parent.game[_parent.game.cur_turn + "_control"] == "PL") {
}
_parent.game.pl_can_act = true;
this.gotoAndStop("cap_black");
Symbol 92 MovieClip Frame 55 (33 B)
_parent.game.pl_can_act = false;
Symbol 92 MovieClip Frame 65 (64 B)
_parent.game.pl_can_act = true;
this.gotoAndStop("cap_blank");
Symbol 92 MovieClip Frame 67 (33 B)
_parent.game.pl_can_act = false;
Symbol 92 MovieClip Frame 77 (64 B)
_parent.game.pl_can_act = true;
this.gotoAndStop("cap_blank");
Instance of Symbol 68 MovieClip in Symbol 94 MovieClip Frame 1 (672 B)
onClipEvent (load) {
maxSize = 40;
origSize = 20;
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent._xmouse, _parent._parent._ymouse)) {
if (_parent._parent.game.pl_can_act) {
if ((_parent._parent.game.cur_act == "place") || (_parent._parent.game.cap_selected != "")) {
if (Math.abs(maxSize - this._width) > 1) {
this._width = this._width + ((maxSize - this._width) / 2);
this._height = this._height + ((maxSize - this._height) / 2);
}
}
}
} else if (Math.abs(origSize - this._width) > 1) {
this._width = this._width - ((this._width - origSize) / 2);
this._height = this._height - ((this._height - origSize) / 2);
}
}
Instance of Symbol 70 MovieClip in Symbol 94 MovieClip Frame 1 (189 B)
onClipEvent (mouseDown) {
if (this.hitTest(_parent._parent._xmouse, _parent._parent._ymouse) && (_parent._parent.game.pl_can_act)) {
_parent._parent.MakeMove(_parent._name);
}
}
Instance of Symbol 68 MovieClip in Symbol 94 MovieClip Frame 1 (672 B)
onClipEvent (load) {
maxSize = 40;
origSize = 20;
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent._xmouse, _parent._parent._ymouse)) {
if (_parent._parent.game.pl_can_act) {
if ((_parent._parent.game.cur_act == "place") || (_parent._parent.game.cap_selected != "")) {
if (Math.abs(maxSize - this._width) > 1) {
this._width = this._width + ((maxSize - this._width) / 2);
this._height = this._height + ((maxSize - this._height) / 2);
}
}
}
} else if (Math.abs(origSize - this._width) > 1) {
this._width = this._width - ((this._width - origSize) / 2);
this._height = this._height - ((this._height - origSize) / 2);
}
}
Instance of Symbol 70 MovieClip in Symbol 94 MovieClip Frame 1 (189 B)
onClipEvent (mouseDown) {
if (this.hitTest(_parent._parent._xmouse, _parent._parent._ymouse) && (_parent._parent.game.pl_can_act)) {
_parent._parent.MakeMove(_parent._name);
}
}
Instance of Symbol 68 MovieClip in Symbol 94 MovieClip Frame 1 (672 B)
onClipEvent (load) {
maxSize = 40;
origSize = 20;
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent._xmouse, _parent._parent._ymouse)) {
if (_parent._parent.game.pl_can_act) {
if ((_parent._parent.game.cur_act == "place") || (_parent._parent.game.cap_selected != "")) {
if (Math.abs(maxSize - this._width) > 1) {
this._width = this._width + ((maxSize - this._width) / 2);
this._height = this._height + ((maxSize - this._height) / 2);
}
}
}
} else if (Math.abs(origSize - this._width) > 1) {
this._width = this._width - ((this._width - origSize) / 2);
this._height = this._height - ((this._height - origSize) / 2);
}
}
Instance of Symbol 70 MovieClip in Symbol 94 MovieClip Frame 1 (189 B)
onClipEvent (mouseDown) {
if (this.hitTest(_parent._parent._xmouse, _parent._parent._ymouse) && (_parent._parent.game.pl_can_act)) {
_parent._parent.MakeMove(_parent._name);
}
}
Instance of Symbol 68 MovieClip in Symbol 94 MovieClip Frame 1 (672 B)
onClipEvent (load) {
maxSize = 40;
origSize = 20;
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent._xmouse, _parent._parent._ymouse)) {
if (_parent._parent.game.pl_can_act) {
if ((_parent._parent.game.cur_act == "place") || (_parent._parent.game.cap_selected != "")) {
if (Math.abs(maxSize - this._width) > 1) {
this._width = this._width + ((maxSize - this._width) / 2);
this._height = this._height + ((maxSize - this._height) / 2);
}
}
}
} else if (Math.abs(origSize - this._width) > 1) {
this._width = this._width - ((this._width - origSize) / 2);
this._height = this._height - ((this._height - origSize) / 2);
}
}
Instance of Symbol 70 MovieClip in Symbol 94 MovieClip Frame 1 (189 B)
onClipEvent (mouseDown) {
if (this.hitTest(_parent._parent._xmouse, _parent._parent._ymouse) && (_parent._parent.game.pl_can_act)) {
_parent._parent.MakeMove(_parent._name);
}
}
Instance of Symbol 68 MovieClip in Symbol 94 MovieClip Frame 1 (672 B)
onClipEvent (load) {
maxSize = 40;
origSize = 20;
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent._xmouse, _parent._parent._ymouse)) {
if (_parent._parent.game.pl_can_act) {
if ((_parent._parent.game.cur_act == "place") || (_parent._parent.game.cap_selected != "")) {
if (Math.abs(maxSize - this._width) > 1) {
this._width = this._width + ((maxSize - this._width) / 2);
this._height = this._height + ((maxSize - this._height) / 2);
}
}
}
} else if (Math.abs(origSize - this._width) > 1) {
this._width = this._width - ((this._width - origSize) / 2);
this._height = this._height - ((this._height - origSize) / 2);
}
}
Instance of Symbol 70 MovieClip in Symbol 94 MovieClip Frame 1 (189 B)
onClipEvent (mouseDown) {
if (this.hitTest(_parent._parent._xmouse, _parent._parent._ymouse) && (_parent._parent.game.pl_can_act)) {
_parent._parent.MakeMove(_parent._name);
}
}
Instance of Symbol 68 MovieClip in Symbol 94 MovieClip Frame 1 (672 B)
onClipEvent (load) {
maxSize = 40;
origSize = 20;
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent._xmouse, _parent._parent._ymouse)) {
if (_parent._parent.game.pl_can_act) {
if ((_parent._parent.game.cur_act == "place") || (_parent._parent.game.cap_selected != "")) {
if (Math.abs(maxSize - this._width) > 1) {
this._width = this._width + ((maxSize - this._width) / 2);
this._height = this._height + ((maxSize - this._height) / 2);
}
}
}
} else if (Math.abs(origSize - this._width) > 1) {
this._width = this._width - ((this._width - origSize) / 2);
this._height = this._height - ((this._height - origSize) / 2);
}
}
Instance of Symbol 70 MovieClip in Symbol 94 MovieClip Frame 1 (189 B)
onClipEvent (mouseDown) {
if (this.hitTest(_parent._parent._xmouse, _parent._parent._ymouse) && (_parent._parent.game.pl_can_act)) {
_parent._parent.MakeMove(_parent._name);
}
}
Instance of Symbol 68 MovieClip in Symbol 94 MovieClip Frame 1 (672 B)
onClipEvent (load) {
maxSize = 40;
origSize = 20;
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent._xmouse, _parent._parent._ymouse)) {
if (_parent._parent.game.pl_can_act) {
if ((_parent._parent.game.cur_act == "place") || (_parent._parent.game.cap_selected != "")) {
if (Math.abs(maxSize - this._width) > 1) {
this._width = this._width + ((maxSize - this._width) / 2);
this._height = this._height + ((maxSize - this._height) / 2);
}
}
}
} else if (Math.abs(origSize - this._width) > 1) {
this._width = this._width - ((this._width - origSize) / 2);
this._height = this._height - ((this._height - origSize) / 2);
}
}
Instance of Symbol 70 MovieClip in Symbol 94 MovieClip Frame 1 (189 B)
onClipEvent (mouseDown) {
if (this.hitTest(_parent._parent._xmouse, _parent._parent._ymouse) && (_parent._parent.game.pl_can_act)) {
_parent._parent.MakeMove(_parent._name);
}
}
Instance of Symbol 68 MovieClip in Symbol 94 MovieClip Frame 1 (672 B)
onClipEvent (load) {
maxSize = 40;
origSize = 20;
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent._xmouse, _parent._parent._ymouse)) {
if (_parent._parent.game.pl_can_act) {
if ((_parent._parent.game.cur_act == "place") || (_parent._parent.game.cap_selected != "")) {
if (Math.abs(maxSize - this._width) > 1) {
this._width = this._width + ((maxSize - this._width) / 2);
this._height = this._height + ((maxSize - this._height) / 2);
}
}
}
} else if (Math.abs(origSize - this._width) > 1) {
this._width = this._width - ((this._width - origSize) / 2);
this._height = this._height - ((this._height - origSize) / 2);
}
}
Instance of Symbol 70 MovieClip in Symbol 94 MovieClip Frame 1 (189 B)
onClipEvent (mouseDown) {
if (this.hitTest(_parent._parent._xmouse, _parent._parent._ymouse) && (_parent._parent.game.pl_can_act)) {
_parent._parent.MakeMove(_parent._name);
}
}
Instance of Symbol 68 MovieClip in Symbol 94 MovieClip Frame 1 (672 B)
onClipEvent (load) {
maxSize = 40;
origSize = 20;
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent._xmouse, _parent._parent._ymouse)) {
if (_parent._parent.game.pl_can_act) {
if ((_parent._parent.game.cur_act == "place") || (_parent._parent.game.cap_selected != "")) {
if (Math.abs(maxSize - this._width) > 1) {
this._width = this._width + ((maxSize - this._width) / 2);
this._height = this._height + ((maxSize - this._height) / 2);
}
}
}
} else if (Math.abs(origSize - this._width) > 1) {
this._width = this._width - ((this._width - origSize) / 2);
this._height = this._height - ((this._height - origSize) / 2);
}
}
Instance of Symbol 70 MovieClip in Symbol 94 MovieClip Frame 1 (189 B)
onClipEvent (mouseDown) {
if (this.hitTest(_parent._parent._xmouse, _parent._parent._ymouse) && (_parent._parent.game.pl_can_act)) {
_parent._parent.MakeMove(_parent._name);
}
}
Instance of Symbol 68 MovieClip in Symbol 94 MovieClip Frame 1 (672 B)
onClipEvent (load) {
maxSize = 40;
origSize = 20;
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent._xmouse, _parent._parent._ymouse)) {
if (_parent._parent.game.pl_can_act) {
if ((_parent._parent.game.cur_act == "place") || (_parent._parent.game.cap_selected != "")) {
if (Math.abs(maxSize - this._width) > 1) {
this._width = this._width + ((maxSize - this._width) / 2);
this._height = this._height + ((maxSize - this._height) / 2);
}
}
}
} else if (Math.abs(origSize - this._width) > 1) {
this._width = this._width - ((this._width - origSize) / 2);
this._height = this._height - ((this._height - origSize) / 2);
}
}
Instance of Symbol 70 MovieClip in Symbol 94 MovieClip Frame 1 (189 B)
onClipEvent (mouseDown) {
if (this.hitTest(_parent._parent._xmouse, _parent._parent._ymouse) && (_parent._parent.game.pl_can_act)) {
_parent._parent.MakeMove(_parent._name);
}
}
Instance of Symbol 68 MovieClip in Symbol 94 MovieClip Frame 1 (672 B)
onClipEvent (load) {
maxSize = 40;
origSize = 20;
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent._xmouse, _parent._parent._ymouse)) {
if (_parent._parent.game.pl_can_act) {
if ((_parent._parent.game.cur_act == "place") || (_parent._parent.game.cap_selected != "")) {
if (Math.abs(maxSize - this._width) > 1) {
this._width = this._width + ((maxSize - this._width) / 2);
this._height = this._height + ((maxSize - this._height) / 2);
}
}
}
} else if (Math.abs(origSize - this._width) > 1) {
this._width = this._width - ((this._width - origSize) / 2);
this._height = this._height - ((this._height - origSize) / 2);
}
}
Instance of Symbol 70 MovieClip in Symbol 94 MovieClip Frame 1 (189 B)
onClipEvent (mouseDown) {
if (this.hitTest(_parent._parent._xmouse, _parent._parent._ymouse) && (_parent._parent.game.pl_can_act)) {
_parent._parent.MakeMove(_parent._name);
}
}
Instance of Symbol 68 MovieClip in Symbol 94 MovieClip Frame 1 (672 B)
onClipEvent (load) {
maxSize = 40;
origSize = 20;
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent._xmouse, _parent._parent._ymouse)) {
if (_parent._parent.game.pl_can_act) {
if ((_parent._parent.game.cur_act == "place") || (_parent._parent.game.cap_selected != "")) {
if (Math.abs(maxSize - this._width) > 1) {
this._width = this._width + ((maxSize - this._width) / 2);
this._height = this._height + ((maxSize - this._height) / 2);
}
}
}
} else if (Math.abs(origSize - this._width) > 1) {
this._width = this._width - ((this._width - origSize) / 2);
this._height = this._height - ((this._height - origSize) / 2);
}
}
Instance of Symbol 70 MovieClip in Symbol 94 MovieClip Frame 1 (189 B)
onClipEvent (mouseDown) {
if (this.hitTest(_parent._parent._xmouse, _parent._parent._ymouse) && (_parent._parent.game.pl_can_act)) {
_parent._parent.MakeMove(_parent._name);
}
}
Instance of Symbol 68 MovieClip in Symbol 94 MovieClip Frame 1 (672 B)
onClipEvent (load) {
maxSize = 40;
origSize = 20;
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent._xmouse, _parent._parent._ymouse)) {
if (_parent._parent.game.pl_can_act) {
if ((_parent._parent.game.cur_act == "place") || (_parent._parent.game.cap_selected != "")) {
if (Math.abs(maxSize - this._width) > 1) {
this._width = this._width + ((maxSize - this._width) / 2);
this._height = this._height + ((maxSize - this._height) / 2);
}
}
}
} else if (Math.abs(origSize - this._width) > 1) {
this._width = this._width - ((this._width - origSize) / 2);
this._height = this._height - ((this._height - origSize) / 2);
}
}
Instance of Symbol 70 MovieClip in Symbol 94 MovieClip Frame 1 (189 B)
onClipEvent (mouseDown) {
if (this.hitTest(_parent._parent._xmouse, _parent._parent._ymouse) && (_parent._parent.game.pl_can_act)) {
_parent._parent.MakeMove(_parent._name);
}
}
Instance of Symbol 68 MovieClip in Symbol 94 MovieClip Frame 1 (672 B)
onClipEvent (load) {
maxSize = 40;
origSize = 20;
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent._xmouse, _parent._parent._ymouse)) {
if (_parent._parent.game.pl_can_act) {
if ((_parent._parent.game.cur_act == "place") || (_parent._parent.game.cap_selected != "")) {
if (Math.abs(maxSize - this._width) > 1) {
this._width = this._width + ((maxSize - this._width) / 2);
this._height = this._height + ((maxSize - this._height) / 2);
}
}
}
} else if (Math.abs(origSize - this._width) > 1) {
this._width = this._width - ((this._width - origSize) / 2);
this._height = this._height - ((this._height - origSize) / 2);
}
}
Instance of Symbol 70 MovieClip in Symbol 94 MovieClip Frame 1 (189 B)
onClipEvent (mouseDown) {
if (this.hitTest(_parent._parent._xmouse, _parent._parent._ymouse) && (_parent._parent.game.pl_can_act)) {
_parent._parent.MakeMove(_parent._name);
}
}
Instance of Symbol 68 MovieClip in Symbol 94 MovieClip Frame 1 (672 B)
onClipEvent (load) {
maxSize = 40;
origSize = 20;
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent._xmouse, _parent._parent._ymouse)) {
if (_parent._parent.game.pl_can_act) {
if ((_parent._parent.game.cur_act == "place") || (_parent._parent.game.cap_selected != "")) {
if (Math.abs(maxSize - this._width) > 1) {
this._width = this._width + ((maxSize - this._width) / 2);
this._height = this._height + ((maxSize - this._height) / 2);
}
}
}
} else if (Math.abs(origSize - this._width) > 1) {
this._width = this._width - ((this._width - origSize) / 2);
this._height = this._height - ((this._height - origSize) / 2);
}
}
Instance of Symbol 70 MovieClip in Symbol 94 MovieClip Frame 1 (189 B)
onClipEvent (mouseDown) {
if (this.hitTest(_parent._parent._xmouse, _parent._parent._ymouse) && (_parent._parent.game.pl_can_act)) {
_parent._parent.MakeMove(_parent._name);
}
}
Instance of Symbol 68 MovieClip in Symbol 94 MovieClip Frame 1 (672 B)
onClipEvent (load) {
maxSize = 40;
origSize = 20;
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent._xmouse, _parent._parent._ymouse)) {
if (_parent._parent.game.pl_can_act) {
if ((_parent._parent.game.cur_act == "place") || (_parent._parent.game.cap_selected != "")) {
if (Math.abs(maxSize - this._width) > 1) {
this._width = this._width + ((maxSize - this._width) / 2);
this._height = this._height + ((maxSize - this._height) / 2);
}
}
}
} else if (Math.abs(origSize - this._width) > 1) {
this._width = this._width - ((this._width - origSize) / 2);
this._height = this._height - ((this._height - origSize) / 2);
}
}
Instance of Symbol 70 MovieClip in Symbol 94 MovieClip Frame 1 (189 B)
onClipEvent (mouseDown) {
if (this.hitTest(_parent._parent._xmouse, _parent._parent._ymouse) && (_parent._parent.game.pl_can_act)) {
_parent._parent.MakeMove(_parent._name);
}
}
Instance of Symbol 92 MovieClip in Symbol 94 MovieClip Frame 34 (40 B)
onClipEvent (load) {
gotoAndStop (2);
}
Instance of Symbol 92 MovieClip in Symbol 94 MovieClip Frame 49 (40 B)
onClipEvent (load) {
gotoAndStop (3);
}
Instance of Symbol 75 MovieClip in Symbol 94 MovieClip Frame 130 (51 B)
onClipEvent (load) {
}
onClipEvent (enterFrame) {
}
Instance of Symbol 68 MovieClip in Symbol 96 MovieClip Frame 1 (672 B)
onClipEvent (load) {
maxSize = 40;
origSize = 20;
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent._xmouse, _parent._parent._ymouse)) {
if (_parent._parent.game.pl_can_act) {
if ((_parent._parent.game.cur_act == "place") || (_parent._parent.game.cap_selected != "")) {
if (Math.abs(maxSize - this._width) > 1) {
this._width = this._width + ((maxSize - this._width) / 2);
this._height = this._height + ((maxSize - this._height) / 2);
}
}
}
} else if (Math.abs(origSize - this._width) > 1) {
this._width = this._width - ((this._width - origSize) / 2);
this._height = this._height - ((this._height - origSize) / 2);
}
}
Instance of Symbol 70 MovieClip in Symbol 96 MovieClip Frame 1 (189 B)
onClipEvent (mouseDown) {
if (this.hitTest(_parent._parent._xmouse, _parent._parent._ymouse) && (_parent._parent.game.pl_can_act)) {
_parent._parent.MakeMove(_parent._name);
}
}
Instance of Symbol 68 MovieClip in Symbol 96 MovieClip Frame 1 (672 B)
onClipEvent (load) {
maxSize = 40;
origSize = 20;
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent._xmouse, _parent._parent._ymouse)) {
if (_parent._parent.game.pl_can_act) {
if ((_parent._parent.game.cur_act == "place") || (_parent._parent.game.cap_selected != "")) {
if (Math.abs(maxSize - this._width) > 1) {
this._width = this._width + ((maxSize - this._width) / 2);
this._height = this._height + ((maxSize - this._height) / 2);
}
}
}
} else if (Math.abs(origSize - this._width) > 1) {
this._width = this._width - ((this._width - origSize) / 2);
this._height = this._height - ((this._height - origSize) / 2);
}
}
Instance of Symbol 70 MovieClip in Symbol 96 MovieClip Frame 1 (189 B)
onClipEvent (mouseDown) {
if (this.hitTest(_parent._parent._xmouse, _parent._parent._ymouse) && (_parent._parent.game.pl_can_act)) {
_parent._parent.MakeMove(_parent._name);
}
}
Instance of Symbol 68 MovieClip in Symbol 96 MovieClip Frame 1 (672 B)
onClipEvent (load) {
maxSize = 40;
origSize = 20;
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent._xmouse, _parent._parent._ymouse)) {
if (_parent._parent.game.pl_can_act) {
if ((_parent._parent.game.cur_act == "place") || (_parent._parent.game.cap_selected != "")) {
if (Math.abs(maxSize - this._width) > 1) {
this._width = this._width + ((maxSize - this._width) / 2);
this._height = this._height + ((maxSize - this._height) / 2);
}
}
}
} else if (Math.abs(origSize - this._width) > 1) {
this._width = this._width - ((this._width - origSize) / 2);
this._height = this._height - ((this._height - origSize) / 2);
}
}
Instance of Symbol 70 MovieClip in Symbol 96 MovieClip Frame 1 (189 B)
onClipEvent (mouseDown) {
if (this.hitTest(_parent._parent._xmouse, _parent._parent._ymouse) && (_parent._parent.game.pl_can_act)) {
_parent._parent.MakeMove(_parent._name);
}
}
Instance of Symbol 68 MovieClip in Symbol 96 MovieClip Frame 1 (672 B)
onClipEvent (load) {
maxSize = 40;
origSize = 20;
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent._xmouse, _parent._parent._ymouse)) {
if (_parent._parent.game.pl_can_act) {
if ((_parent._parent.game.cur_act == "place") || (_parent._parent.game.cap_selected != "")) {
if (Math.abs(maxSize - this._width) > 1) {
this._width = this._width + ((maxSize - this._width) / 2);
this._height = this._height + ((maxSize - this._height) / 2);
}
}
}
} else if (Math.abs(origSize - this._width) > 1) {
this._width = this._width - ((this._width - origSize) / 2);
this._height = this._height - ((this._height - origSize) / 2);
}
}
Instance of Symbol 70 MovieClip in Symbol 96 MovieClip Frame 1 (189 B)
onClipEvent (mouseDown) {
if (this.hitTest(_parent._parent._xmouse, _parent._parent._ymouse) && (_parent._parent.game.pl_can_act)) {
_parent._parent.MakeMove(_parent._name);
}
}
Instance of Symbol 68 MovieClip in Symbol 96 MovieClip Frame 1 (672 B)
onClipEvent (load) {
maxSize = 40;
origSize = 20;
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent._xmouse, _parent._parent._ymouse)) {
if (_parent._parent.game.pl_can_act) {
if ((_parent._parent.game.cur_act == "place") || (_parent._parent.game.cap_selected != "")) {
if (Math.abs(maxSize - this._width) > 1) {
this._width = this._width + ((maxSize - this._width) / 2);
this._height = this._height + ((maxSize - this._height) / 2);
}
}
}
} else if (Math.abs(origSize - this._width) > 1) {
this._width = this._width - ((this._width - origSize) / 2);
this._height = this._height - ((this._height - origSize) / 2);
}
}
Instance of Symbol 70 MovieClip in Symbol 96 MovieClip Frame 1 (189 B)
onClipEvent (mouseDown) {
if (this.hitTest(_parent._parent._xmouse, _parent._parent._ymouse) && (_parent._parent.game.pl_can_act)) {
_parent._parent.MakeMove(_parent._name);
}
}
Instance of Symbol 68 MovieClip in Symbol 96 MovieClip Frame 1 (672 B)
onClipEvent (load) {
maxSize = 40;
origSize = 20;
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent._xmouse, _parent._parent._ymouse)) {
if (_parent._parent.game.pl_can_act) {
if ((_parent._parent.game.cur_act == "place") || (_parent._parent.game.cap_selected != "")) {
if (Math.abs(maxSize - this._width) > 1) {
this._width = this._width + ((maxSize - this._width) / 2);
this._height = this._height + ((maxSize - this._height) / 2);
}
}
}
} else if (Math.abs(origSize - this._width) > 1) {
this._width = this._width - ((this._width - origSize) / 2);
this._height = this._height - ((this._height - origSize) / 2);
}
}
Instance of Symbol 70 MovieClip in Symbol 96 MovieClip Frame 1 (189 B)
onClipEvent (mouseDown) {
if (this.hitTest(_parent._parent._xmouse, _parent._parent._ymouse) && (_parent._parent.game.pl_can_act)) {
_parent._parent.MakeMove(_parent._name);
}
}
Instance of Symbol 68 MovieClip in Symbol 96 MovieClip Frame 1 (672 B)
onClipEvent (load) {
maxSize = 40;
origSize = 20;
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent._xmouse, _parent._parent._ymouse)) {
if (_parent._parent.game.pl_can_act) {
if ((_parent._parent.game.cur_act == "place") || (_parent._parent.game.cap_selected != "")) {
if (Math.abs(maxSize - this._width) > 1) {
this._width = this._width + ((maxSize - this._width) / 2);
this._height = this._height + ((maxSize - this._height) / 2);
}
}
}
} else if (Math.abs(origSize - this._width) > 1) {
this._width = this._width - ((this._width - origSize) / 2);
this._height = this._height - ((this._height - origSize) / 2);
}
}
Instance of Symbol 70 MovieClip in Symbol 96 MovieClip Frame 1 (189 B)
onClipEvent (mouseDown) {
if (this.hitTest(_parent._parent._xmouse, _parent._parent._ymouse) && (_parent._parent.game.pl_can_act)) {
_parent._parent.MakeMove(_parent._name);
}
}
Instance of Symbol 68 MovieClip in Symbol 96 MovieClip Frame 1 (672 B)
onClipEvent (load) {
maxSize = 40;
origSize = 20;
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent._xmouse, _parent._parent._ymouse)) {
if (_parent._parent.game.pl_can_act) {
if ((_parent._parent.game.cur_act == "place") || (_parent._parent.game.cap_selected != "")) {
if (Math.abs(maxSize - this._width) > 1) {
this._width = this._width + ((maxSize - this._width) / 2);
this._height = this._height + ((maxSize - this._height) / 2);
}
}
}
} else if (Math.abs(origSize - this._width) > 1) {
this._width = this._width - ((this._width - origSize) / 2);
this._height = this._height - ((this._height - origSize) / 2);
}
}
Instance of Symbol 70 MovieClip in Symbol 96 MovieClip Frame 1 (189 B)
onClipEvent (mouseDown) {
if (this.hitTest(_parent._parent._xmouse, _parent._parent._ymouse) && (_parent._parent.game.pl_can_act)) {
_parent._parent.MakeMove(_parent._name);
}
}
Instance of Symbol 68 MovieClip in Symbol 96 MovieClip Frame 1 (672 B)
onClipEvent (load) {
maxSize = 40;
origSize = 20;
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent._xmouse, _parent._parent._ymouse)) {
if (_parent._parent.game.pl_can_act) {
if ((_parent._parent.game.cur_act == "place") || (_parent._parent.game.cap_selected != "")) {
if (Math.abs(maxSize - this._width) > 1) {
this._width = this._width + ((maxSize - this._width) / 2);
this._height = this._height + ((maxSize - this._height) / 2);
}
}
}
} else if (Math.abs(origSize - this._width) > 1) {
this._width = this._width - ((this._width - origSize) / 2);
this._height = this._height - ((this._height - origSize) / 2);
}
}
Instance of Symbol 70 MovieClip in Symbol 96 MovieClip Frame 1 (189 B)
onClipEvent (mouseDown) {
if (this.hitTest(_parent._parent._xmouse, _parent._parent._ymouse) && (_parent._parent.game.pl_can_act)) {
_parent._parent.MakeMove(_parent._name);
}
}
Instance of Symbol 68 MovieClip in Symbol 96 MovieClip Frame 1 (672 B)
onClipEvent (load) {
maxSize = 40;
origSize = 20;
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent._xmouse, _parent._parent._ymouse)) {
if (_parent._parent.game.pl_can_act) {
if ((_parent._parent.game.cur_act == "place") || (_parent._parent.game.cap_selected != "")) {
if (Math.abs(maxSize - this._width) > 1) {
this._width = this._width + ((maxSize - this._width) / 2);
this._height = this._height + ((maxSize - this._height) / 2);
}
}
}
} else if (Math.abs(origSize - this._width) > 1) {
this._width = this._width - ((this._width - origSize) / 2);
this._height = this._height - ((this._height - origSize) / 2);
}
}
Instance of Symbol 70 MovieClip in Symbol 96 MovieClip Frame 1 (189 B)
onClipEvent (mouseDown) {
if (this.hitTest(_parent._parent._xmouse, _parent._parent._ymouse) && (_parent._parent.game.pl_can_act)) {
_parent._parent.MakeMove(_parent._name);
}
}
Instance of Symbol 68 MovieClip in Symbol 96 MovieClip Frame 1 (672 B)
onClipEvent (load) {
maxSize = 40;
origSize = 20;
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent._xmouse, _parent._parent._ymouse)) {
if (_parent._parent.game.pl_can_act) {
if ((_parent._parent.game.cur_act == "place") || (_parent._parent.game.cap_selected != "")) {
if (Math.abs(maxSize - this._width) > 1) {
this._width = this._width + ((maxSize - this._width) / 2);
this._height = this._height + ((maxSize - this._height) / 2);
}
}
}
} else if (Math.abs(origSize - this._width) > 1) {
this._width = this._width - ((this._width - origSize) / 2);
this._height = this._height - ((this._height - origSize) / 2);
}
}
Instance of Symbol 70 MovieClip in Symbol 96 MovieClip Frame 1 (189 B)
onClipEvent (mouseDown) {
if (this.hitTest(_parent._parent._xmouse, _parent._parent._ymouse) && (_parent._parent.game.pl_can_act)) {
_parent._parent.MakeMove(_parent._name);
}
}
Instance of Symbol 68 MovieClip in Symbol 96 MovieClip Frame 1 (672 B)
onClipEvent (load) {
maxSize = 40;
origSize = 20;
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent._xmouse, _parent._parent._ymouse)) {
if (_parent._parent.game.pl_can_act) {
if ((_parent._parent.game.cur_act == "place") || (_parent._parent.game.cap_selected != "")) {
if (Math.abs(maxSize - this._width) > 1) {
this._width = this._width + ((maxSize - this._width) / 2);
this._height = this._height + ((maxSize - this._height) / 2);
}
}
}
} else if (Math.abs(origSize - this._width) > 1) {
this._width = this._width - ((this._width - origSize) / 2);
this._height = this._height - ((this._height - origSize) / 2);
}
}
Instance of Symbol 70 MovieClip in Symbol 96 MovieClip Frame 1 (189 B)
onClipEvent (mouseDown) {
if (this.hitTest(_parent._parent._xmouse, _parent._parent._ymouse) && (_parent._parent.game.pl_can_act)) {
_parent._parent.MakeMove(_parent._name);
}
}
Instance of Symbol 68 MovieClip in Symbol 96 MovieClip Frame 1 (672 B)
onClipEvent (load) {
maxSize = 40;
origSize = 20;
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent._xmouse, _parent._parent._ymouse)) {
if (_parent._parent.game.pl_can_act) {
if ((_parent._parent.game.cur_act == "place") || (_parent._parent.game.cap_selected != "")) {
if (Math.abs(maxSize - this._width) > 1) {
this._width = this._width + ((maxSize - this._width) / 2);
this._height = this._height + ((maxSize - this._height) / 2);
}
}
}
} else if (Math.abs(origSize - this._width) > 1) {
this._width = this._width - ((this._width - origSize) / 2);
this._height = this._height - ((this._height - origSize) / 2);
}
}
Instance of Symbol 70 MovieClip in Symbol 96 MovieClip Frame 1 (189 B)
onClipEvent (mouseDown) {
if (this.hitTest(_parent._parent._xmouse, _parent._parent._ymouse) && (_parent._parent.game.pl_can_act)) {
_parent._parent.MakeMove(_parent._name);
}
}
Instance of Symbol 68 MovieClip in Symbol 96 MovieClip Frame 1 (672 B)
onClipEvent (load) {
maxSize = 40;
origSize = 20;
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent._xmouse, _parent._parent._ymouse)) {
if (_parent._parent.game.pl_can_act) {
if ((_parent._parent.game.cur_act == "place") || (_parent._parent.game.cap_selected != "")) {
if (Math.abs(maxSize - this._width) > 1) {
this._width = this._width + ((maxSize - this._width) / 2);
this._height = this._height + ((maxSize - this._height) / 2);
}
}
}
} else if (Math.abs(origSize - this._width) > 1) {
this._width = this._width - ((this._width - origSize) / 2);
this._height = this._height - ((this._height - origSize) / 2);
}
}
Instance of Symbol 70 MovieClip in Symbol 96 MovieClip Frame 1 (189 B)
onClipEvent (mouseDown) {
if (this.hitTest(_parent._parent._xmouse, _parent._parent._ymouse) && (_parent._parent.game.pl_can_act)) {
_parent._parent.MakeMove(_parent._name);
}
}
Instance of Symbol 68 MovieClip in Symbol 96 MovieClip Frame 1 (672 B)
onClipEvent (load) {
maxSize = 40;
origSize = 20;
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent._xmouse, _parent._parent._ymouse)) {
if (_parent._parent.game.pl_can_act) {
if ((_parent._parent.game.cur_act == "place") || (_parent._parent.game.cap_selected != "")) {
if (Math.abs(maxSize - this._width) > 1) {
this._width = this._width + ((maxSize - this._width) / 2);
this._height = this._height + ((maxSize - this._height) / 2);
}
}
}
} else if (Math.abs(origSize - this._width) > 1) {
this._width = this._width - ((this._width - origSize) / 2);
this._height = this._height - ((this._height - origSize) / 2);
}
}
Instance of Symbol 70 MovieClip in Symbol 96 MovieClip Frame 1 (189 B)
onClipEvent (mouseDown) {
if (this.hitTest(_parent._parent._xmouse, _parent._parent._ymouse) && (_parent._parent.game.pl_can_act)) {
_parent._parent.MakeMove(_parent._name);
}
}
Instance of Symbol 68 MovieClip in Symbol 96 MovieClip Frame 1 (672 B)
onClipEvent (load) {
maxSize = 40;
origSize = 20;
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent._xmouse, _parent._parent._ymouse)) {
if (_parent._parent.game.pl_can_act) {
if ((_parent._parent.game.cur_act == "place") || (_parent._parent.game.cap_selected != "")) {
if (Math.abs(maxSize - this._width) > 1) {
this._width = this._width + ((maxSize - this._width) / 2);
this._height = this._height + ((maxSize - this._height) / 2);
}
}
}
} else if (Math.abs(origSize - this._width) > 1) {
this._width = this._width - ((this._width - origSize) / 2);
this._height = this._height - ((this._height - origSize) / 2);
}
}
Instance of Symbol 70 MovieClip in Symbol 96 MovieClip Frame 1 (189 B)
onClipEvent (mouseDown) {
if (this.hitTest(_parent._parent._xmouse, _parent._parent._ymouse) && (_parent._parent.game.pl_can_act)) {
_parent._parent.MakeMove(_parent._name);
}
}
Symbol 96 MovieClip Frame 135 (353 B)
cap_x = 40;
cap_y = 40;
rand_particles = 4;
var j;
j = 0;
while (j < rand_particles) {
this.attachMovie("particle", (((("particle" + j) + "") + cap_x) + "") + cap_y, this.getNextHighestDepth());
this[(((("particle" + j) + "") + cap_x) + "") + cap_y]._x = cap_x;
this[(((("particle" + j) + "") + cap_x) + "") + cap_y]._y = cap_y;
j++;
}
Instance of Symbol 68 MovieClip in Symbol 98 MovieClip Frame 1 (672 B)
onClipEvent (load) {
maxSize = 40;
origSize = 20;
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent._xmouse, _parent._parent._ymouse)) {
if (_parent._parent.game.pl_can_act) {
if ((_parent._parent.game.cur_act == "place") || (_parent._parent.game.cap_selected != "")) {
if (Math.abs(maxSize - this._width) > 1) {
this._width = this._width + ((maxSize - this._width) / 2);
this._height = this._height + ((maxSize - this._height) / 2);
}
}
}
} else if (Math.abs(origSize - this._width) > 1) {
this._width = this._width - ((this._width - origSize) / 2);
this._height = this._height - ((this._height - origSize) / 2);
}
}
Instance of Symbol 70 MovieClip in Symbol 98 MovieClip Frame 1 (189 B)
onClipEvent (mouseDown) {
if (this.hitTest(_parent._parent._xmouse, _parent._parent._ymouse) && (_parent._parent.game.pl_can_act)) {
_parent._parent.MakeMove(_parent._name);
}
}
Instance of Symbol 68 MovieClip in Symbol 98 MovieClip Frame 1 (672 B)
onClipEvent (load) {
maxSize = 40;
origSize = 20;
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent._xmouse, _parent._parent._ymouse)) {
if (_parent._parent.game.pl_can_act) {
if ((_parent._parent.game.cur_act == "place") || (_parent._parent.game.cap_selected != "")) {
if (Math.abs(maxSize - this._width) > 1) {
this._width = this._width + ((maxSize - this._width) / 2);
this._height = this._height + ((maxSize - this._height) / 2);
}
}
}
} else if (Math.abs(origSize - this._width) > 1) {
this._width = this._width - ((this._width - origSize) / 2);
this._height = this._height - ((this._height - origSize) / 2);
}
}
Instance of Symbol 70 MovieClip in Symbol 98 MovieClip Frame 1 (189 B)
onClipEvent (mouseDown) {
if (this.hitTest(_parent._parent._xmouse, _parent._parent._ymouse) && (_parent._parent.game.pl_can_act)) {
_parent._parent.MakeMove(_parent._name);
}
}
Instance of Symbol 68 MovieClip in Symbol 98 MovieClip Frame 1 (672 B)
onClipEvent (load) {
maxSize = 40;
origSize = 20;
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent._xmouse, _parent._parent._ymouse)) {
if (_parent._parent.game.pl_can_act) {
if ((_parent._parent.game.cur_act == "place") || (_parent._parent.game.cap_selected != "")) {
if (Math.abs(maxSize - this._width) > 1) {
this._width = this._width + ((maxSize - this._width) / 2);
this._height = this._height + ((maxSize - this._height) / 2);
}
}
}
} else if (Math.abs(origSize - this._width) > 1) {
this._width = this._width - ((this._width - origSize) / 2);
this._height = this._height - ((this._height - origSize) / 2);
}
}
Instance of Symbol 70 MovieClip in Symbol 98 MovieClip Frame 1 (189 B)
onClipEvent (mouseDown) {
if (this.hitTest(_parent._parent._xmouse, _parent._parent._ymouse) && (_parent._parent.game.pl_can_act)) {
_parent._parent.MakeMove(_parent._name);
}
}
Instance of Symbol 68 MovieClip in Symbol 98 MovieClip Frame 1 (672 B)
onClipEvent (load) {
maxSize = 40;
origSize = 20;
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent._xmouse, _parent._parent._ymouse)) {
if (_parent._parent.game.pl_can_act) {
if ((_parent._parent.game.cur_act == "place") || (_parent._parent.game.cap_selected != "")) {
if (Math.abs(maxSize - this._width) > 1) {
this._width = this._width + ((maxSize - this._width) / 2);
this._height = this._height + ((maxSize - this._height) / 2);
}
}
}
} else if (Math.abs(origSize - this._width) > 1) {
this._width = this._width - ((this._width - origSize) / 2);
this._height = this._height - ((this._height - origSize) / 2);
}
}
Instance of Symbol 70 MovieClip in Symbol 98 MovieClip Frame 1 (189 B)
onClipEvent (mouseDown) {
if (this.hitTest(_parent._parent._xmouse, _parent._parent._ymouse) && (_parent._parent.game.pl_can_act)) {
_parent._parent.MakeMove(_parent._name);
}
}
Instance of Symbol 68 MovieClip in Symbol 98 MovieClip Frame 1 (672 B)
onClipEvent (load) {
maxSize = 40;
origSize = 20;
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent._xmouse, _parent._parent._ymouse)) {
if (_parent._parent.game.pl_can_act) {
if ((_parent._parent.game.cur_act == "place") || (_parent._parent.game.cap_selected != "")) {
if (Math.abs(maxSize - this._width) > 1) {
this._width = this._width + ((maxSize - this._width) / 2);
this._height = this._height + ((maxSize - this._height) / 2);
}
}
}
} else if (Math.abs(origSize - this._width) > 1) {
this._width = this._width - ((this._width - origSize) / 2);
this._height = this._height - ((this._height - origSize) / 2);
}
}
Instance of Symbol 70 MovieClip in Symbol 98 MovieClip Frame 1 (189 B)
onClipEvent (mouseDown) {
if (this.hitTest(_parent._parent._xmouse, _parent._parent._ymouse) && (_parent._parent.game.pl_can_act)) {
_parent._parent.MakeMove(_parent._name);
}
}
Instance of Symbol 68 MovieClip in Symbol 98 MovieClip Frame 1 (672 B)
onClipEvent (load) {
maxSize = 40;
origSize = 20;
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent._xmouse, _parent._parent._ymouse)) {
if (_parent._parent.game.pl_can_act) {
if ((_parent._parent.game.cur_act == "place") || (_parent._parent.game.cap_selected != "")) {
if (Math.abs(maxSize - this._width) > 1) {
this._width = this._width + ((maxSize - this._width) / 2);
this._height = this._height + ((maxSize - this._height) / 2);
}
}
}
} else if (Math.abs(origSize - this._width) > 1) {
this._width = this._width - ((this._width - origSize) / 2);
this._height = this._height - ((this._height - origSize) / 2);
}
}
Instance of Symbol 70 MovieClip in Symbol 98 MovieClip Frame 1 (189 B)
onClipEvent (mouseDown) {
if (this.hitTest(_parent._parent._xmouse, _parent._parent._ymouse) && (_parent._parent.game.pl_can_act)) {
_parent._parent.MakeMove(_parent._name);
}
}
Instance of Symbol 68 MovieClip in Symbol 98 MovieClip Frame 1 (672 B)
onClipEvent (load) {
maxSize = 40;
origSize = 20;
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent._xmouse, _parent._parent._ymouse)) {
if (_parent._parent.game.pl_can_act) {
if ((_parent._parent.game.cur_act == "place") || (_parent._parent.game.cap_selected != "")) {
if (Math.abs(maxSize - this._width) > 1) {
this._width = this._width + ((maxSize - this._width) / 2);
this._height = this._height + ((maxSize - this._height) / 2);
}
}
}
} else if (Math.abs(origSize - this._width) > 1) {
this._width = this._width - ((this._width - origSize) / 2);
this._height = this._height - ((this._height - origSize) / 2);
}
}
Instance of Symbol 70 MovieClip in Symbol 98 MovieClip Frame 1 (189 B)
onClipEvent (mouseDown) {
if (this.hitTest(_parent._parent._xmouse, _parent._parent._ymouse) && (_parent._parent.game.pl_can_act)) {
_parent._parent.MakeMove(_parent._name);
}
}
Instance of Symbol 68 MovieClip in Symbol 98 MovieClip Frame 1 (672 B)
onClipEvent (load) {
maxSize = 40;
origSize = 20;
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent._xmouse, _parent._parent._ymouse)) {
if (_parent._parent.game.pl_can_act) {
if ((_parent._parent.game.cur_act == "place") || (_parent._parent.game.cap_selected != "")) {
if (Math.abs(maxSize - this._width) > 1) {
this._width = this._width + ((maxSize - this._width) / 2);
this._height = this._height + ((maxSize - this._height) / 2);
}
}
}
} else if (Math.abs(origSize - this._width) > 1) {
this._width = this._width - ((this._width - origSize) / 2);
this._height = this._height - ((this._height - origSize) / 2);
}
}
Instance of Symbol 70 MovieClip in Symbol 98 MovieClip Frame 1 (189 B)
onClipEvent (mouseDown) {
if (this.hitTest(_parent._parent._xmouse, _parent._parent._ymouse) && (_parent._parent.game.pl_can_act)) {
_parent._parent.MakeMove(_parent._name);
}
}
Instance of Symbol 68 MovieClip in Symbol 98 MovieClip Frame 1 (672 B)
onClipEvent (load) {
maxSize = 40;
origSize = 20;
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent._xmouse, _parent._parent._ymouse)) {
if (_parent._parent.game.pl_can_act) {
if ((_parent._parent.game.cur_act == "place") || (_parent._parent.game.cap_selected != "")) {
if (Math.abs(maxSize - this._width) > 1) {
this._width = this._width + ((maxSize - this._width) / 2);
this._height = this._height + ((maxSize - this._height) / 2);
}
}
}
} else if (Math.abs(origSize - this._width) > 1) {
this._width = this._width - ((this._width - origSize) / 2);
this._height = this._height - ((this._height - origSize) / 2);
}
}
Instance of Symbol 70 MovieClip in Symbol 98 MovieClip Frame 1 (189 B)
onClipEvent (mouseDown) {
if (this.hitTest(_parent._parent._xmouse, _parent._parent._ymouse) && (_parent._parent.game.pl_can_act)) {
_parent._parent.MakeMove(_parent._name);
}
}
Instance of Symbol 68 MovieClip in Symbol 98 MovieClip Frame 1 (672 B)
onClipEvent (load) {
maxSize = 40;
origSize = 20;
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent._xmouse, _parent._parent._ymouse)) {
if (_parent._parent.game.pl_can_act) {
if ((_parent._parent.game.cur_act == "place") || (_parent._parent.game.cap_selected != "")) {
if (Math.abs(maxSize - this._width) > 1) {
this._width = this._width + ((maxSize - this._width) / 2);
this._height = this._height + ((maxSize - this._height) / 2);
}
}
}
} else if (Math.abs(origSize - this._width) > 1) {
this._width = this._width - ((this._width - origSize) / 2);
this._height = this._height - ((this._height - origSize) / 2);
}
}
Instance of Symbol 70 MovieClip in Symbol 98 MovieClip Frame 1 (189 B)
onClipEvent (mouseDown) {
if (this.hitTest(_parent._parent._xmouse, _parent._parent._ymouse) && (_parent._parent.game.pl_can_act)) {
_parent._parent.MakeMove(_parent._name);
}
}
Instance of Symbol 68 MovieClip in Symbol 98 MovieClip Frame 1 (672 B)
onClipEvent (load) {
maxSize = 40;
origSize = 20;
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent._xmouse, _parent._parent._ymouse)) {
if (_parent._parent.game.pl_can_act) {
if ((_parent._parent.game.cur_act == "place") || (_parent._parent.game.cap_selected != "")) {
if (Math.abs(maxSize - this._width) > 1) {
this._width = this._width + ((maxSize - this._width) / 2);
this._height = this._height + ((maxSize - this._height) / 2);
}
}
}
} else if (Math.abs(origSize - this._width) > 1) {
this._width = this._width - ((this._width - origSize) / 2);
this._height = this._height - ((this._height - origSize) / 2);
}
}
Instance of Symbol 70 MovieClip in Symbol 98 MovieClip Frame 1 (189 B)
onClipEvent (mouseDown) {
if (this.hitTest(_parent._parent._xmouse, _parent._parent._ymouse) && (_parent._parent.game.pl_can_act)) {
_parent._parent.MakeMove(_parent._name);
}
}
Instance of Symbol 68 MovieClip in Symbol 98 MovieClip Frame 1 (672 B)
onClipEvent (load) {
maxSize = 40;
origSize = 20;
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent._xmouse, _parent._parent._ymouse)) {
if (_parent._parent.game.pl_can_act) {
if ((_parent._parent.game.cur_act == "place") || (_parent._parent.game.cap_selected != "")) {
if (Math.abs(maxSize - this._width) > 1) {
this._width = this._width + ((maxSize - this._width) / 2);
this._height = this._height + ((maxSize - this._height) / 2);
}
}
}
} else if (Math.abs(origSize - this._width) > 1) {
this._width = this._width - ((this._width - origSize) / 2);
this._height = this._height - ((this._height - origSize) / 2);
}
}
Instance of Symbol 70 MovieClip in Symbol 98 MovieClip Frame 1 (189 B)
onClipEvent (mouseDown) {
if (this.hitTest(_parent._parent._xmouse, _parent._parent._ymouse) && (_parent._parent.game.pl_can_act)) {
_parent._parent.MakeMove(_parent._name);
}
}
Instance of Symbol 68 MovieClip in Symbol 98 MovieClip Frame 1 (672 B)
onClipEvent (load) {
maxSize = 40;
origSize = 20;
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent._xmouse, _parent._parent._ymouse)) {
if (_parent._parent.game.pl_can_act) {
if ((_parent._parent.game.cur_act == "place") || (_parent._parent.game.cap_selected != "")) {
if (Math.abs(maxSize - this._width) > 1) {
this._width = this._width + ((maxSize - this._width) / 2);
this._height = this._height + ((maxSize - this._height) / 2);
}
}
}
} else if (Math.abs(origSize - this._width) > 1) {
this._width = this._width - ((this._width - origSize) / 2);
this._height = this._height - ((this._height - origSize) / 2);
}
}
Instance of Symbol 70 MovieClip in Symbol 98 MovieClip Frame 1 (189 B)
onClipEvent (mouseDown) {
if (this.hitTest(_parent._parent._xmouse, _parent._parent._ymouse) && (_parent._parent.game.pl_can_act)) {
_parent._parent.MakeMove(_parent._name);
}
}
Instance of Symbol 68 MovieClip in Symbol 98 MovieClip Frame 1 (672 B)
onClipEvent (load) {
maxSize = 40;
origSize = 20;
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent._xmouse, _parent._parent._ymouse)) {
if (_parent._parent.game.pl_can_act) {
if ((_parent._parent.game.cur_act == "place") || (_parent._parent.game.cap_selected != "")) {
if (Math.abs(maxSize - this._width) > 1) {
this._width = this._width + ((maxSize - this._width) / 2);
this._height = this._height + ((maxSize - this._height) / 2);
}
}
}
} else if (Math.abs(origSize - this._width) > 1) {
this._width = this._width - ((this._width - origSize) / 2);
this._height = this._height - ((this._height - origSize) / 2);
}
}
Instance of Symbol 70 MovieClip in Symbol 98 MovieClip Frame 1 (189 B)
onClipEvent (mouseDown) {
if (this.hitTest(_parent._parent._xmouse, _parent._parent._ymouse) && (_parent._parent.game.pl_can_act)) {
_parent._parent.MakeMove(_parent._name);
}
}
Instance of Symbol 68 MovieClip in Symbol 98 MovieClip Frame 1 (672 B)
onClipEvent (load) {
maxSize = 40;
origSize = 20;
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent._xmouse, _parent._parent._ymouse)) {
if (_parent._parent.game.pl_can_act) {
if ((_parent._parent.game.cur_act == "place") || (_parent._parent.game.cap_selected != "")) {
if (Math.abs(maxSize - this._width) > 1) {
this._width = this._width + ((maxSize - this._width) / 2);
this._height = this._height + ((maxSize - this._height) / 2);
}
}
}
} else if (Math.abs(origSize - this._width) > 1) {
this._width = this._width - ((this._width - origSize) / 2);
this._height = this._height - ((this._height - origSize) / 2);
}
}
Instance of Symbol 70 MovieClip in Symbol 98 MovieClip Frame 1 (189 B)
onClipEvent (mouseDown) {
if (this.hitTest(_parent._parent._xmouse, _parent._parent._ymouse) && (_parent._parent.game.pl_can_act)) {
_parent._parent.MakeMove(_parent._name);
}
}
Instance of Symbol 68 MovieClip in Symbol 98 MovieClip Frame 1 (672 B)
onClipEvent (load) {
maxSize = 40;
origSize = 20;
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent._parent._xmouse, _parent._parent._ymouse)) {
if (_parent._parent.game.pl_can_act) {
if ((_parent._parent.game.cur_act == "place") || (_parent._parent.game.cap_selected != "")) {
if (Math.abs(maxSize - this._width) > 1) {
this._width = this._width + ((maxSize - this._width) / 2);
this._height = this._height + ((maxSize - this._height) / 2);
}
}
}
} else if (Math.abs(origSize - this._width) > 1) {
this._width = this._width - ((this._width - origSize) / 2);
this._height = this._height - ((this._height - origSize) / 2);
}
}
Instance of Symbol 70 MovieClip in Symbol 98 MovieClip Frame 1 (189 B)
onClipEvent (mouseDown) {
if (this.hitTest(_parent._parent._xmouse, _parent._parent._ymouse) && (_parent._parent.game.pl_can_act)) {
_parent._parent.MakeMove(_parent._name);
}
}
Symbol 99 MovieClip Frame 1 (8 B)
stop();
Instance of Symbol 24 MovieClip in Symbol 99 MovieClip Frame 1 (211 B)
on (release) {
_root.gotoAndStop("main_menu");
}
onClipEvent (load) {
title = "Menu";
stop();
}
on (rollOut, dragOut) {
gotoAndStop (1);
}
on (press) {
gotoAndStop (3);
}
on (rollOver) {
gotoAndStop (2);
}
Instance of Symbol 59 MovieClip in Symbol 99 MovieClip Frame 1 (192 B)
on (release) {
_parent.nextFrame();
}
onClipEvent (load) {
stop();
}
on (release, rollOut, dragOut) {
gotoAndStop (1);
}
on (press) {
gotoAndStop (3);
}
on (rollOver) {
gotoAndStop (2);
}
Instance of Symbol 59 MovieClip in Symbol 99 MovieClip Frame 2 (192 B)
on (release) {
_parent.prevFrame();
}
onClipEvent (load) {
stop();
}
on (release, rollOut, dragOut) {
gotoAndStop (1);
}
on (press) {
gotoAndStop (3);
}
on (rollOver) {
gotoAndStop (2);
}
Instance of Symbol 59 MovieClip in Symbol 99 MovieClip Frame 2 (192 B)
on (release) {
_parent.nextFrame();
}
onClipEvent (load) {
stop();
}
on (release, rollOut, dragOut) {
gotoAndStop (1);
}
on (press) {
gotoAndStop (3);
}
on (rollOver) {
gotoAndStop (2);
}
Symbol 107 MovieClip Frame 1 (24 B)
stop();
cur_board = 3;
Instance of Symbol 65 MovieClip in Symbol 107 MovieClip Frame 1 (41 B)
on (release) {
_parent.gotoAndStop(2);
}
Instance of Symbol 103 MovieClip in Symbol 107 MovieClip Frame 1 (41 B)
on (release) {
_parent.gotoAndStop(3);
}
Instance of Symbol 105 MovieClip in Symbol 107 MovieClip Frame 1 (41 B)
on (release) {
_parent.gotoAndStop(1);
}
Symbol 107 MovieClip Frame 2 (15 B)
cur_board = 6;
Symbol 107 MovieClip Frame 3 (15 B)
cur_board = 9;
Symbol 112 MovieClip Frame 1 (8 B)
stop();
Symbol 112 MovieClip Frame 3 (17 B)
this.ch = "w_s";
Symbol 112 MovieClip Frame 4 (17 B)
this.ch = "w_s";
Symbol 112 MovieClip Frame 5 (17 B)
this.ch = "w_n";
Symbol 112 MovieClip Frame 6 (17 B)
this.ch = "w_n";
Symbol 114 MovieClip Frame 1 (718 B)
function ApplyOptions() {
board = this.board_select.cur_board;
if (col_sel == "white") {
if (gp_tyle == "PL_AI") {
_root.game.white_control = "PL";
_root.game.black_control = "AI";
} else {
_root.game.white_control = "PL";
_root.game.black_control = "PL";
}
} else if (gp_tyle == "PL_AI") {
_root.game.white_control = "AI";
_root.game.black_control = "PL";
} else {
_root.game.white_control = "PL";
_root.game.black_control = "PL";
}
}
_root.game = {};
_root.game.white_control = "PL";
_root.game.black_control = "AI";
board = 6;
col_sel = "white";
gp_tyle = "PL_AI";
this.cl_check1.gotoAndStop("white_selected");
this.cl_check2.gotoAndStop("black_deselected");
Instance of Symbol 24 MovieClip in Symbol 114 MovieClip Frame 1 (258 B)
on (release) {
_parent.ApplyOptions();
_root.gotoAndStop("board_" + _parent.board);
}
onClipEvent (load) {
title = "Play";
stop();
}
on (release, rollOut, dragOut) {
gotoAndStop (1);
}
on (press) {
gotoAndStop (3);
}
on (rollOver) {
gotoAndStop (2);
}
Instance of Symbol 24 MovieClip in Symbol 114 MovieClip Frame 1 (220 B)
on (release) {
_root.gotoAndStop("main_menu");
}
onClipEvent (load) {
title = "Menu";
stop();
}
on (release, rollOut, dragOut) {
gotoAndStop (1);
}
on (press) {
gotoAndStop (3);
}
on (rollOver) {
gotoAndStop (2);
}
Instance of Symbol 59 MovieClip in Symbol 114 MovieClip Frame 1 (380 B)
on (release) {
if (_parent.board_select._currentframe > 1) {
_parent.board_select.gotoAndStop(_parent.board_select._currentframe - 1);
} else {
_parent.board_select.gotoAndStop(_parent.board_select._totalframes);
}
}
onClipEvent (load) {
stop();
}
on (release, rollOut, dragOut) {
gotoAndStop (1);
}
on (press) {
gotoAndStop (3);
}
on (rollOver) {
gotoAndStop (2);
}
Instance of Symbol 59 MovieClip in Symbol 114 MovieClip Frame 1 (380 B)
on (release) {
if (_parent.board_select._currentframe < _parent.board_select._totalframes) {
_parent.board_select.gotoAndStop(_parent.board_select._currentframe + 1);
} else {
_parent.board_select.gotoAndStop(1);
}
}
onClipEvent (load) {
stop();
}
on (release, rollOut, dragOut) {
gotoAndStop (1);
}
on (press) {
gotoAndStop (3);
}
on (rollOver) {
gotoAndStop (2);
}
Instance of Symbol 112 MovieClip "cl_check1" in Symbol 114 MovieClip Frame 1 (522 B)
onClipEvent (mouseDown) {
if (this.hitTest(_parent._parent._xmouse, _parent._parent._ymouse)) {
if (this.ch == "w_n") {
this.gotoAndStop("white_selected");
_parent.cl_check2.gotoAndStop("black_deselected");
_parent.col_sel = "white";
}
}
}
onClipEvent (mouseMove) {
if (this.ch == "w_n") {
if (this.hitTest(_parent._parent._xmouse, _parent._parent._ymouse)) {
this.gotoAndStop("mouse_select_white");
} else {
this.gotoAndStop("white_deselected");
}
}
}
onClipEvent (load) {
title = "White";
}
Instance of Symbol 112 MovieClip "cl_check2" in Symbol 114 MovieClip Frame 1 (522 B)
onClipEvent (mouseDown) {
if (this.hitTest(_parent._parent._xmouse, _parent._parent._ymouse)) {
if (this.ch == "w_n") {
this.gotoAndStop("black_selected");
_parent.cl_check1.gotoAndStop("white_deselected");
_parent.col_sel = "black";
}
}
}
onClipEvent (mouseMove) {
if (this.ch == "w_n") {
if (this.hitTest(_parent._parent._xmouse, _parent._parent._ymouse)) {
this.gotoAndStop("mouse_select_black");
} else {
this.gotoAndStop("black_deselected");
}
}
}
onClipEvent (load) {
title = "Black";
}
Instance of Symbol 24 MovieClip in Symbol 121 MovieClip Frame 1 (220 B)
on (release) {
_root.gotoAndStop("main_menu");
}
onClipEvent (load) {
title = "Menu";
stop();
}
on (release, rollOut, dragOut) {
gotoAndStop (1);
}
on (press) {
gotoAndStop (3);
}
on (rollOver) {
gotoAndStop (2);
}
Instance of Symbol 120 MovieClip in Symbol 121 MovieClip Frame 1 (218 B)
on (release) {
getURL ("http://www.picasogames.com", "_blank", "GET");
}
onClipEvent (load) {
stop();
}
on (rollOut, dragOut) {
gotoAndStop (1);
}
on (press) {
gotoAndStop (3);
}
on (rollOver) {
gotoAndStop (2);
}
Symbol 124 MovieClip Frame 1 (8 B)
stop();
Symbol 128 MovieClip Frame 15 (29 B)
stop();
_parent.NextMove();
Symbol 132 MovieClip Frame 1 (12.74 KiB) ● ●
stop();
function Virtual_ScoreBoard(virt_grid, cap, color, plus) {
var _local1 = 0;
if (Virtual_MillCheck(cap, virt_grid, color)) {
_local1 = _local1 + (1 * plus);
}
return(_local1);
}
function Virtual_EmptyCaps(virt_grid, virt_caps_pos) {
var _local4 = new Array();
var _local3 = 0;
var _local2 = 0;
i = 0;
while (i < virt_caps_pos.length) {
_local3 = Number(virt_caps_pos[i].substr(0, 1));
_local2 = Number(virt_caps_pos[i].substr(1, 1));
if (virt_grid[_local3][_local2] == 0) {
_local4.push(virt_caps_pos[i]);
}
i++;
}
return(_local4);
}
function Virtual_ActiveCountCaps(virt_grid, virt_caps_pos) {
var _local8 = new Array();
var _local5 = 0;
var _local4 = 0;
var _local2 = new Array();
var _local3 = new Array();
i = 0;
while (i <= _parent.game.board_type) {
_local3[i] = new Array(_parent.game.board_type);
j = 0;
while (j <= _parent.game.board_type) {
_local3[i][j] = virt_grid[i][j];
j++;
}
i++;
}
i = 0;
while (i < virt_caps_pos.length) {
_local5 = Number(virt_caps_pos[i].substr(0, 1));
_local4 = Number(virt_caps_pos[i].substr(1, 1));
if ((virt_grid[_local5][_local4] == 1) || (virt_grid[_local5][_local4] == 2)) {
j = 0;
while (j < _parent.game.caps_mills_bind[(("cap" + _local5) + "") + _local4].length) {
_local2 = _parent.game.mills[_parent.game.caps_mills_bind[(("cap" + _local5) + "") + _local4][j]];
trace("Virtual_ActiveCountCaps: tempAr: " + _local2);
if (_local3[Number(_local2[0].substr(0, 1))][Number(_local2[0].substr(1, 1))] == 0) {
_local3[Number(_local2[0].substr(0, 1))][Number(_local2[0].substr(1, 1))] = 9;
}
if (_local3[Number(_local2[1].substr(0, 1))][Number(_local2[1].substr(1, 1))] == 0) {
_local3[Number(_local2[1].substr(0, 1))][Number(_local2[1].substr(1, 1))] = 9;
}
if (_local3[Number(_local2[2].substr(0, 1))][Number(_local2[2].substr(1, 1))] == 0) {
_local3[Number(_local2[2].substr(0, 1))][Number(_local2[2].substr(1, 1))] = 9;
}
j++;
}
}
i++;
}
i = 0;
while (i < virt_caps_pos.length) {
if (_local3[Number(virt_caps_pos[i].substr(0, 1))][Number(virt_caps_pos[i].substr(1, 1))] == 9) {
_local8.push(virt_caps_pos[i]);
}
i++;
}
return(_local8);
}
function Virtual_MillCheck(cap, tmpgrid, color) {
var _local3;
var _local2 = new Array();
_local3 = 0;
while (_local3 < _parent.game.caps_mills_bind["cap" + cap].length) {
_local2 = _parent.game.mills[_parent.game.caps_mills_bind["cap" + cap][_local3]];
if (((tmpgrid[Number(_local2[0].substr(0, 1))][Number(_local2[0].substr(1, 1))] == color) && (tmpgrid[Number(_local2[1].substr(0, 1))][Number(_local2[1].substr(1, 1))] == color)) && (tmpgrid[Number(_local2[2].substr(0, 1))][Number(_local2[2].substr(1, 1))] == color)) {
return(true);
}
_local3++;
}
return(false);
}
function Virtual_ReturnCaps(virt_grid, color) {
var _local5 = _parent.game.caps_pos;
var _local2 = new Array();
i = 0;
while (i < _parent.game.caps_pos.length) {
if (virt_grid[Number(_parent.game.caps_pos[i].substr(0, 1))][Number(_parent.game.caps_pos[i].substr(1, 1))] == color) {
_local2.push(_parent.game.caps_pos[i]);
}
i++;
}
return(_local2);
}
function Virtual_FindTempMoves(virt_grid, color) {
var _local1;
var _local2 = new Array();
var _local3 = new Array();
_local2 = Virtual_ReturnCaps(virt_grid, color);
_local1 = 0;
while (_local1 < _local2.length) {
if (Virtual_CanMoveCheck(virt_grid, "cap" + _local2[_local1])) {
_local3.push("cap" + _local2[_local1]);
}
_local1++;
}
return(_local3);
}
function Virtual_CanMoveCheck(virt_grid, cap) {
var _local2;
_local2 = 0;
while (_local2 < _parent.game.caps_bind[cap].length) {
if (virt_grid[Number(_parent.game.caps_bind[cap][_local2].substr(3, 1))][Number(_parent.game.caps_bind[cap][_local2].substr(4, 1))] == 0) {
return(true);
}
_local2++;
}
return(false);
}
function Show_Matrix(virt_grid) {
var _local4;
var _local3;
var _local2;
trace("-----");
_local4 = 0;
while (_local4 <= _parent.game.board_type) {
_local2 = "";
_local3 = 0;
while (_local3 <= _parent.game.board_type) {
if (virt_grid[_local3][_local4] == 8) {
_local2 = _local2 + " ";
} else {
_local2 = ((_local2 + " ") + virt_grid[_local3][_local4]) + " ";
}
_local3++;
}
trace(_local2);
_local4++;
}
trace("------");
}
function Virtual_Place_SubScore(virt_grid_1, virt_pos_moves_2, ycolor, ecolor) {
var _local3 = new Array();
var _local1 = new Array();
var _local11 = new Array();
var _local6 = 0;
var _local7;
var _local4;
var _local2;
var _local12;
_local7 = 0;
while (_local7 < virt_pos_moves_2.length) {
virt_grid_1[Number(virt_pos_moves_2[_local7].substr(0, 1))][Number(virt_pos_moves_2[_local7].substr(1, 5))] = ecolor;
_local6 = _local6 + Virtual_ScoreBoard(virt_grid_1, virt_pos_moves_2[_local7], ecolor, -1000);
_local3.length = 0;
_local3 = _local3.concat(virt_pos_moves_2.slice(0, _local7), virt_pos_moves_2.slice(_local7 + 1, virt_pos_moves_2.length));
_local4 = 0;
while (_local4 < _local3.length) {
virt_grid_1[Number(_local3[_local4].substr(0, 1))][Number(_local3[_local4].substr(1, 2))] = ycolor;
_local6 = _local6 + Virtual_ScoreBoard(virt_grid_1, _local3[_local4], ycolor, 1);
_local1.length = 0;
_local1 = _local1.concat(_local3.slice(0, _local4), _local3.slice(_local4 + 1, _local3.length));
_local2 = 0;
while (_local2 < _local1.length) {
virt_grid_1[Number(_local1[_local2].substr(0, 1))][Number(_local1[_local2].substr(1, 1))] = ecolor;
_local6 = _local6 + Virtual_ScoreBoard(virt_grid_1, _local1[_local2], ecolor, -1);
virt_grid_1[Number(_local1[_local2].substr(0, 1))][Number(_local1[_local2].substr(1, 1))] = 0;
_local2++;
}
virt_grid_1[Number(_local3[_local4].substr(0, 1))][Number(_local3[_local4].substr(1, 1))] = 0;
_local4++;
}
virt_grid_1[Number(virt_pos_moves_2[_local7].substr(0, 1))][Number(virt_pos_moves_2[_local7].substr(1, 1))] = 0;
_local7++;
}
return(_local6);
}
function AI_PlaceCap(nm) {
nm = "cap" + nm;
var _local5 = Number(nm.substr(3, 1));
var _local4 = Number(nm.substr(4, 1));
_parent[nm].gotoAndStop("cap_" + _parent.game.cur_turn);
_parent.game.grid[_local5][_local4] = _parent.YColor_n();
_parent.game[_parent.game.cur_turn + "_instock"]--;
_parent.game[_parent.game.cur_turn + "_infield"]++;
trace("AI_PlaceCap: chosen place: " + nm);
_parent.MillsCheck(nm, _parent.YColor_n(), true);
_parent.Capstxt();
_parent.AI_AllCheck();
this.gotoAndStop(1);
}
function Virtual_FindBestPlace(score_board) {
trace("Virtual_FindBestPlace: score_board array:" + score_board);
var _local3 = -999999;
i = 0;
while (i < score_board.length) {
if (score_board[i][0] > _local3) {
_local3 = score_board[i][0];
}
i++;
}
var _local4 = new Array();
i = 0;
while (i < score_board.length) {
if (score_board[i][0] == _local3) {
_local4.push(score_board[i][1]);
}
i++;
}
if (_local4.length > 1) {
return(_local4[_parent.calcRand(0, _local4.length - 1)]);
}
return(_local4[0]);
}
function Virtual_FindBestMove(score_board, pos_moves) {
var _local3;
var _local2;
trace("Virt_FindBestMove: score_board array:" + score_board);
var _local5 = -99999;
_local3 = 0;
while (_local3 < score_board.length) {
_local2 = 0;
while (_local2 < score_board[_local3].length) {
if ((score_board[_local3][_local2] != "bd") && (score_board[_local3][_local2] > _local5)) {
_local5 = score_board[_local3][_local2];
}
_local2++;
}
_local3++;
}
var _local7 = new Array();
var _local8 = new Array();
_local3 = 0;
while (_local3 < score_board.length) {
_local2 = 0;
while (_local2 < score_board[_local3].length) {
if ((score_board[_local3][_local2] != "bd") && (score_board[_local3][_local2] == _local5)) {
_local7.push(pos_moves[_local3]);
_local8.push(_parent.game.caps_bind[pos_moves[_local3]][_local2]);
}
_local2++;
}
_local3++;
}
trace("Virt_FindBestMove: from: " + _local7);
trace("Virt_FindBestMove: to: " + _local8);
var _local9 = new Array(2);
var _local10;
if (_local7.length > 1) {
_local10 = _parent.calcRand(0, _local7.length - 1);
_local9[0] = _local7[_local10];
_local9[1] = _local8[_local10];
} else {
_local9[0] = _local7[0];
_local9[1] = _local8[0];
}
return(_local9);
}
function AI_MoveCap(final_move_caps) {
var _local5;
var _local4;
var _local7;
var _local6;
trace("AI_MoveCap: final_move_cap: " + final_move_caps);
_local5 = Number(final_move_caps[0].substr(3, 1));
_local4 = Number(final_move_caps[0].substr(4, 1));
_local7 = Number(final_move_caps[1].substr(3, 1));
_local6 = Number(final_move_caps[1].substr(4, 1));
_parent.game.grid[_local5][_local4] = 0;
_parent.game.grid[_local7][_local6] = _parent.YColor_n();
if (_parent[final_move_caps[0]].getDepth() < _parent[final_move_caps[1]].getDepth()) {
_parent[final_move_caps[0]].swapDepths(_parent[final_move_caps[1]]);
}
_parent.ActivateMoving(final_move_caps[0], final_move_caps[1]);
this.gotoAndStop(1);
}
function Virtual_Move_SubScore_1(virt_grid, pos_moves, ycolor, ecolor) {
var _local7 = new Array();
var _local6 = 0;
var _local3;
var _local10;
var _local9;
var _local8;
i = 0;
while (i < pos_moves.length) {
_local3 = 0;
while (_local3 < _parent.game.caps_bind[pos_moves[i]].length) {
if (virt_grid[Number(_parent.game.caps_bind[pos_moves[i]][_local3].substr(3, 1))][Number(_parent.game.caps_bind[pos_moves[i]][_local3].substr(4, 1))] == 0) {
virt_grid[Number(pos_moves[i].substr(3, 1))][Number(pos_moves[i].substr(4, 1))] = 0;
virt_grid[Number(_parent.game.caps_bind[pos_moves[i]][_local3].substr(3, 1))][Number(_parent.game.caps_bind[pos_moves[i]][_local3].substr(4, 1))] = ecolor;
_local6 = _local6 + Virtual_ScoreBoard(virt_grid, _parent.game.caps_bind[pos_moves[i]][_local3].substr(3, 1) + _parent.game.caps_bind[pos_moves[i]][_local3].substr(4, 1), ecolor, -1);
virt_grid[Number(pos_moves[i].substr(3, 1))][Number(pos_moves[i].substr(4, 1))] = ecolor;
virt_grid[Number(_parent.game.caps_bind[pos_moves[i]][_local3].substr(3, 1))][Number(_parent.game.caps_bind[pos_moves[i]][_local3].substr(4, 1))] = 0;
}
_local3++;
}
i++;
}
return(_local6);
}
function Virtual_Move_SubScore_2(virt_grid, pos_moves, ycolor, ecolor) {
var _local6 = 0;
var _local3;
var _local9;
var _local8;
var _local7;
i = 0;
while (i < pos_moves.length) {
_local3 = 0;
while (_local3 < _parent.game.caps_bind[pos_moves[i]].length) {
if (virt_grid[Number(_parent.game.caps_bind[pos_moves[i]][_local3].substr(3, 1))][Number(_parent.game.caps_bind[pos_moves[i]][_local3].substr(4, 1))] == 0) {
virt_grid[Number(pos_moves[i].substr(3, 1))][Number(pos_moves[i].substr(4, 1))] = 0;
virt_grid[Number(_parent.game.caps_bind[pos_moves[i]][_local3].substr(3, 1))][Number(_parent.game.caps_bind[pos_moves[i]][_local3].substr(4, 1))] = ycolor;
_local6 = _local6 + Virtual_ScoreBoard(virt_grid, _parent.game.caps_bind[pos_moves[i]][_local3].substr(3, 1) + _parent.game.caps_bind[pos_moves[i]][_local3].substr(4, 1), ycolor, 1);
virt_grid[Number(pos_moves[i].substr(3, 1))][Number(pos_moves[i].substr(4, 1))] = ycolor;
virt_grid[Number(_parent.game.caps_bind[pos_moves[i]][_local3].substr(3, 1))][Number(_parent.game.caps_bind[pos_moves[i]][_local3].substr(4, 1))] = 0;
}
_local3++;
}
i++;
}
return(_local6);
}
function Virtual_Move_SubScore_3(virt_grid, pos_moves, ycolor, ecolor) {
var _local7 = new Array();
var _local6 = 0;
var _local3;
var _local10;
var _local9;
var _local8;
i = 0;
while (i < pos_moves.length) {
_local3 = 0;
while (_local3 < game.caps_bind[pos_moves[i]].length) {
if (virt_grid[Number(_parent.game.caps_bind[pos_moves[i]][_local3].substr(3, 1))][Number(_parent.game.caps_bind[pos_moves[i]][_local3].substr(4, 1))] == 0) {
virt_grid[Number(pos_moves[i].substr(3, 1))][Number(pos_moves[i].substr(4, 1))] = 0;
virt_grid[Number(_parent.game.caps_bind[pos_moves[i]][_local3].substr(3, 1))][Number(_parent.game.caps_bind[pos_moves[i]][_local3].substr(4, 1))] = ecolor;
_local6 = _local6 + Virtual_ScoreBoard(virt_grid, _parent.game.caps_bind[pos_moves[i]][_local3].substr(3, 1) + _parent.game.caps_bind[pos_moves[i]][_local3].substr(4, 1), ecolor, -1);
virt_grid[Number(pos_moves[i].substr(3, 1))][Number(pos_moves[i].substr(4, 1))] = ecolor;
virt_grid[Number(_parent.game.caps_bind[pos_moves[i]][_local3].substr(3, 1))][Number(_parent.game.caps_bind[pos_moves[i]][_local3].substr(4, 1))] = 0;
}
_local3++;
}
i++;
}
return(_local6);
}
Symbol 132 MovieClip Frame 2 (75 B)
this.lamp_light._alpha = 0;
_parent.tip_txt = "Opponent is thinking...";
Symbol 132 MovieClip Frame 3 (69 B)
this.lamp_light._alpha = 0;
gotoAndPlay ("AI_Think_Pace_VirtStep");
Symbol 132 MovieClip Frame 11 (515 B)
var i = 0;
var j = 0;
var cur_act = _parent.game.cur_act;
var virt_grid = new Array();
var virt_caps_pos = new Array();
var ycolor = _parent.CurColor_n();
var result_move;
i = 0;
while (i <= _parent.game.board_type) {
virt_grid[i] = new Array(_parent.game.board_type);
j = 0;
while (j <= _parent.game.board_type) {
virt_grid[i][j] = _parent.game.grid[i][j];
j++;
}
i++;
}
i = 0;
while (i < _parent.game.caps_pos.length) {
virt_caps_pos[i] = _parent.game.caps_pos[i];
i++;
}
Symbol 132 MovieClip Frame 12 (789 B)
var virt_grid_1 = new Array();
var virt_pos_moves = new Array();
var virt_pos_moves_2 = new Array();
var score_board = new Array();
var i = 0;
var j = 0;
var ecolor;
var time = getTimer();
if (ycolor == 1) {
ecolor = 2;
} else {
ecolor = 1;
}
i = 0;
while (i <= _parent.game.board_type) {
virt_grid_1[i] = new Array(_parent.game.board_type);
j = 0;
while (j <= _parent.game.board_type) {
virt_grid_1[i][j] = virt_grid[i][j];
j++;
}
i++;
}
virt_pos_moves = Virtual_ActiveCountCaps(virt_grid_1, virt_caps_pos);
trace("Test Pos Moves: " + virt_pos_moves);
if (virt_pos_moves.length < 1) {
virt_pos_moves.push(_parent.game.caps_pos[_parent.calcRand(0, _parent.game.caps_pos.length - 1)]);
}
var i_1acc = 0;
var i_1fin = virt_pos_moves.length;
Symbol 132 MovieClip Frame 27 (892 B)
if (i_1acc < i_1fin) {
virt_grid_1[Number(virt_pos_moves[i_1acc].substr(0, 1))][Number(virt_pos_moves[i_1acc].substr(1, 1))] = ycolor;
score_board[i_1acc] = new Array(Virtual_ScoreBoard(virt_grid_1, virt_pos_moves[i_1acc], ycolor, 100), virt_pos_moves[i_1acc]);
virt_pos_moves_2.length = 0;
virt_pos_moves_2 = virt_pos_moves_2.concat(virt_pos_moves.slice(0, i_1acc), virt_pos_moves.slice(i_1acc + 1, virt_pos_moves.length));
score_board[i_1acc][0] = score_board[i_1acc][0] + Virtual_Place_SubScore(virt_grid_1, virt_pos_moves_2, ycolor, ecolor);
virt_grid_1[Number(virt_pos_moves[i_1acc].substr(0, 1))][Number(virt_pos_moves[i_1acc].substr(1, 1))] = 0;
i_1acc++;
this.lamp_light._alpha = (100 * i_1acc) / i_1fin;
gotoAndPlay ("Virt_Place_Back");
} else {
stop();
trace("Timer: " + ((getTimer() - time) / 1000));
AI_PlaceCap(Virtual_FindBestPlace(score_board));
}
Symbol 132 MovieClip Frame 46 (69 B)
this.lamp_light._alpha = 0;
gotoAndPlay ("AI_Think_Move_VirtStep");
Symbol 132 MovieClip Frame 56 (1.12 KiB) ●
var i;
var j;
var k;
var m;
var tx;
var ty;
var pos_moves_orig = _parent.ReturnCaps(_parent.YColor_n());
var pos_moves = new Array();
var final_move_caps = new Array();
trace("AI_MoveCap: posCaps: " + pos_moves_orig);
i = 0;
while (i < pos_moves_orig.length) {
if (_parent.AI_CanMoveCheck("cap" + pos_moves_orig[i])) {
pos_moves.push("cap" + pos_moves_orig[i]);
}
i++;
}
trace("AI_MoveCap: restPosCaps: " + pos_moves);
var score_board = new Array();
var ecolor;
var ycolor = _parent.CurColor_n();
if (ycolor == 1) {
ecolor = 2;
} else {
ecolor = 1;
}
var virt_grid = new Array();
var virt_grid_orig = new Array();
var virt_pos_moves_2 = new Array();
i = 0;
while (i <= _parent.game.board_type) {
virt_grid[i] = new Array(_parent.game.board_type);
virt_grid_orig[i] = new Array(_parent.game.board_type);
j = 0;
while (j <= _parent.game.board_type) {
virt_grid[i][j] = _parent.game.grid[i][j];
virt_grid_orig[i][j] = _parent.game.grid[i][j];
j++;
}
i++;
}
trace("Virt_FindBestMove: pos_moves:" + pos_moves);
var i_1acc = 0;
var i_1fin = pos_moves.length;
this.test_txt = "";
Symbol 132 MovieClip Frame 76 (2.3 KiB) ●
trace((("i_1acc: " + i_1acc) + " i_1fin: ") + i_1fin);
if (i_1acc < i_1fin) {
score_board[i_1acc] = new Array(_parent.game.caps_bind[pos_moves[i_1acc]].length);
j = 0;
while (j < _parent.game.caps_bind[pos_moves[i_1acc]].length) {
if (virt_grid[Number(_parent.game.caps_bind[pos_moves[i_1acc]][j].substr(3, 1))][Number(_parent.game.caps_bind[pos_moves[i_1acc]][j].substr(4, 1))] == 0) {
trace((("Virtual_FBM: " + pos_moves[i_1acc]) + "->") + _parent.game.caps_bind[pos_moves[i_1acc]][j]);
trace((("Virtual_FBM:" + pos_moves[i_1acc]) + "-> grid:") + virt_grid[Number(_parent.game.caps_bind[pos_moves[i_1acc]][j].substr(3, 1))][Number(_parent.game.caps_bind[pos_moves[i_1acc]][j].substr(4, 1))]);
virt_grid[Number(pos_moves[i_1acc].substr(3, 1))][Number(pos_moves[i_1acc].substr(4, 1))] = 0;
virt_grid[Number(_parent.game.caps_bind[pos_moves[i_1acc]][j].substr(3, 1))][Number(_parent.game.caps_bind[pos_moves[i_1acc]][j].substr(4, 1))] = ycolor;
score_board[i_1acc][j] = Virtual_ScoreBoard(virt_grid, _parent.game.caps_bind[pos_moves[i_1acc]][j].substr(3, 1) + _parent.game.caps_bind[pos_moves[i_1acc]][j].substr(4, 1), ycolor, 100);
virt_pos_moves_2 = Virtual_FindTempMoves(virt_grid, ecolor);
score_board[i_1acc][j] = score_board[i_1acc][j] + Virtual_Move_SubScore_1(virt_grid, virt_pos_moves_2, ycolor, ecolor);
virt_grid[Number(pos_moves[i_1acc].substr(3, 1))][Number(pos_moves[i_1acc].substr(4, 1))] = ycolor;
virt_grid[Number(_parent.game.caps_bind[pos_moves[i_1acc]][j].substr(3, 1))][Number(_parent.game.caps_bind[pos_moves[i_1acc]][j].substr(4, 1))] = 0;
if (virt_grid.toString() != virt_grid_orig.toString()) {
trace("Virtual_FBM: \u043D\u0435\u0441\u043E\u0432\u043F\u0430\u0434\u0430\u044E\u0442!");
k = 0;
while (k <= _parent.game.board_type) {
m = 0;
while (m <= _parent.game.board_type) {
virt_grid[k][m] = virt_grid_orig[k][m];
m++;
}
k++;
}
trace("Virtual_FBM: \u0442\u0435\u043F\u0435\u0440\u044C \u0441\u043E\u0432\u043F\u0430\u0434\u0430\u044E\u0442");
}
} else {
score_board[i_1acc][j] = "bd";
}
j++;
}
i_1acc++;
this.lamp_light._alpha = (100 * i_1acc) / i_1fin;
gotoAndPlay ("Virt_Move_Back");
} else {
stop();
AI_MoveCap(Virtual_FindBestMove(score_board, pos_moves));
}
Symbol 135 MovieClip Frame 1 (417 B)
if (_parent.game.white_control == "PL") {
if (_parent.game.winner == 1) {
trace("1-1");
win_txt = "You win";
} else {
win_txt = "Opponent wins";
trace("1-2");
}
}
if (_parent.game.black_control == "PL") {
if (_parent.game.winner == 2) {
trace("2-1");
win_txt = "You win";
} else {
win_txt = "Opponent wins";
trace("2-2");
}
}
winner_color.gotoAndStop(1 + _parent.game.winner);
Symbol 136 MovieClip Frame 1 (20.25 KiB) ● ● ●
function AIControl() {
var _local2 = "cap00";
switch (game.cur_act) {
case "place" :
this.AI_Think.gotoAndStop("AI_Think_Place");
break;
case "move" :
this.AI_Think.gotoAndStop("AI_Think_Move");
break;
case "remove" :
AI_RemoveCap();
break;
case "pass" :
}
}
function AI_RemoveCap() {
var _local2 = ReturnCaps(EColor_n());
var _local3 = new Array();
trace("AI_RemoveCap: posCaps: " + _local2);
var _local5 = false;
var _local4 = 0;
var _local1 = 0;
_local1 = 0;
while (_local1 < _local2.length) {
if (CanRemove("cap" + _local2[_local1])) {
_local3.push(_local2[_local1]);
}
_local1++;
}
trace("AI_RemoveCap: rest_pos_moves" + _local3);
if (_local3.length >= 1) {
if (_local3.length == 1) {
RemoveCap("cap" + _local3[0]);
AI_AllCheck();
} else {
trace("AI_RemoveCap: \u041F\u044B\u0442\u0430\u0435\u043C\u0441\u044F \u0443\u0434\u0430\u043B\u0438\u0442\u044C");
RemoveCap("cap" + _local2[calcRand(0, _local3.length - 1)]);
AI_AllCheck();
}
} else {
trace("AI_RemoveCap: \u043D\u0435 \u043C\u043E\u0436\u0435\u043C \u043D\u0438\u0447\u0435\u0433\u043E \u0443\u0434\u0430\u043B\u0438\u0442\u044C - \u0431\u0430\u0433\u0430!");
}
}
function CanRemove(nm) {
var _local2 = Number(nm.substr(3, 1));
var _local1 = Number(nm.substr(4, 1));
if ((game.grid[_local2][_local1] == EColor_n()) && (CapNotInMill(nm))) {
return(true);
}
if ((game.grid[_local2][_local1] == EColor_n()) && (game[EColor() + "_infield"] <= (MillsCheck(nm, EColor_n(), false) * 3))) {
return(true);
}
return(false);
}
function RandomPlace() {
var _local4 = game.caps_pos;
var _local3 = new Array();
i = 0;
while (i < game.caps_pos.length) {
var _local2 = Number(game.caps_pos[i].substr(0, 1));
var _local1 = Number(game.caps_pos[i].substr(1, 1));
if (game.grid[_local2][_local1] == 0) {
_local3.push(game.caps_pos[i]);
}
i++;
}
return(_local3[calcRand(0, _local3.length - 1)]);
}
function ReturnCaps(color) {
var _local5 = game.caps_pos;
var _local3 = new Array();
var _local2 = 0;
var _local1 = 0;
i = 0;
while (i < game.caps_pos.length) {
_local2 = Number(game.caps_pos[i].substr(0, 1));
_local1 = Number(game.caps_pos[i].substr(1, 1));
if (game.grid[_local2][_local1] == color) {
_local3.push(game.caps_pos[i]);
}
i++;
}
return(_local3);
}
function AI_AllCheck() {
trace("\u041F\u0415\u0420\u0415\u0428\u041B\u0418 \u0412 \u0410\u041B\u041B \u0427\u0415\u041A!");
trace("AI_AllCheck: mills: " + game[game.cur_turn + "_mills"]);
if (game[game.cur_turn + "_mills"] > 0) {
game.cur_act = "remove";
trace("--->AI - need to remove enemy caps");
AIControl();
} else {
this.Move_delay.gotoAndPlay(1);
}
}
function AI_MillsCount(color) {
var _local2;
var _local7 = 0;
var _local1 = new Array();
_local2 = 0;
while (_local2 < game.mills.length) {
_local1 = game.mills[_local2];
var _local5 = _local1[0];
var _local4 = _local1[1];
var _local3 = _local1[2];
if (((game.grid[Number(_local5.substr(0, 1))][Number(_local5.substr(1, 1))] == color) && (game.grid[Number(_local4.substr(0, 1))][Number(_local4.substr(1, 1))] == color)) && (game.grid[Number(_local3.substr(0, 1))][Number(_local3.substr(1, 1))] == color)) {
_local7++;
}
_local2++;
}
return(_local7);
}
function AI_CanMoveCheck(cap) {
var _local1;
var _local4;
var _local3;
_local1 = 0;
while (_local1 < game.caps_bind[cap].length) {
_local4 = Number(game.caps_bind[cap][_local1].substr(3, 1));
_local3 = Number(game.caps_bind[cap][_local1].substr(4, 1));
if (game.grid[_local4][_local3] == 0) {
return(true);
}
_local1++;
}
return(false);
}
function MakeMove(nm) {
var _local1 = false;
switch (game.cur_act) {
case "place" :
_local1 = PlaceCap(nm);
if (_local1) {
MillsCheck(nm, YColor_n(), true);
}
break;
case "move" :
_local1 = MoveCap(nm);
break;
case "remove" :
_local1 = RemoveCap(nm);
break;
case "win_loose" :
}
if (game.cur_act != "move") {
AllCheck(_local1, nm);
}
Capstxt();
}
function PlaceCap(nm) {
var _local3 = Number(nm.substr(3, 1));
var _local2 = Number(nm.substr(4, 1));
if ((game.grid[_local3][_local2] == 0) && (game[game.cur_turn + "_instock"] > 0)) {
this[nm].gotoAndStop("cap_" + game.cur_turn);
game.grid[_local3][_local2] = YColor_n();
game.pl_can_act = false;
game[game.cur_turn + "_instock"]--;
game[game.cur_turn + "_infield"]++;
return(true);
}
return(false);
}
function RemoveCap(nm) {
var _local4 = Number(nm.substr(3, 1));
var _local3 = Number(nm.substr(4, 1));
if ((game.grid[_local4][_local3] == EColor_n()) && (CapNotInMill(nm))) {
ActivateRemove(nm, this[nm]._x, this[nm]._y);
game.grid[_local4][_local3] = 0;
game[EColor() + "_infield"]--;
game[game.cur_turn + "_mills"]--;
return(true);
}
if ((game.grid[_local4][_local3] == EColor_n()) && (game[EColor() + "_infield"] <= (MillsCheck(nm, EColor_n(), false) * 3))) {
ActivateRemove(nm, this[nm]._x, this[nm]._y);
game.grid[_local4][_local3] = 0;
game[EColor() + "_infield"]--;
game[game.cur_turn + "_mills"]--;
return(true);
}
return(false);
}
function CapNotInMill(nm) {
var _local5;
var _local4 = new Array();
_local5 = 0;
while (_local5 < game.mills.length) {
_local4 = game.mills[_local5];
var _local3 = _local4[0];
var _local2 = _local4[1];
var _local1 = _local4[2];
if (((game.grid[Number(_local3.substr(0, 1))][Number(_local3.substr(1, 1))] == EColor_n()) && (game.grid[Number(_local2.substr(0, 1))][Number(_local2.substr(1, 1))] == EColor_n())) && (game.grid[Number(_local1.substr(0, 1))][Number(_local1.substr(1, 1))] == EColor_n())) {
if (((nm == ("cap" + _local3)) || (nm == ("cap" + _local2))) || (nm == ("cap" + _local1))) {
return(false);
}
}
_local5++;
}
return(true);
}
function MillsCheck(nm, color, make_count) {
var _local5;
if (make_count) {
game[game.cur_turn + "_mills"] = 0;
}
var _local8 = 0;
var _local4 = new Array();
var _local3 = "";
var _local2 = "";
var _local1 = "";
_local5 = 0;
while (_local5 < game.mills.length) {
_local4 = game.mills[_local5];
_local3 = _local4[0];
_local2 = _local4[1];
_local1 = _local4[2];
if (((game.grid[Number(_local3.substr(0, 1))][Number(_local3.substr(1, 1))] == color) && (game.grid[Number(_local2.substr(0, 1))][Number(_local2.substr(1, 1))] == color)) && (game.grid[Number(_local1.substr(0, 1))][Number(_local1.substr(1, 1))] == color)) {
_local8++;
trace(((((((((nm + " ") + "cap") + _local3) + " ") + "cap") + _local2) + " ") + "cap") + _local1);
if (((nm == ("cap" + _local3)) || (nm == ("cap" + _local2))) || (nm == ("cap" + _local1))) {
if (make_count) {
ActivateMill("cap" + _local3, "cap" + _local2, "cap" + _local1);
game[game.cur_turn + "_mills"]++;
}
}
}
_local5++;
}
return(_local8);
}
function MoveCap(nm) {
var _local7 = Number(nm.substr(3, 1));
var _local6 = Number(nm.substr(4, 1));
if (game.cap_selected == "") {
if (game.grid[_local7][_local6] == YColor_n()) {
game.cap_selected = nm;
this[nm].eff_select.gotoAndStop(2);
return(false);
}
} else {
if (game.grid[_local7][_local6] == YColor_n()) {
this[game.cap_selected].eff_select.gotoAndStop(1);
this[nm].eff_select.gotoAndStop(2);
game.cap_selected = nm;
return(false);
}
if (game.grid[_local7][_local6] == EColor_n()) {
this[game.cap_selected].eff_select.gotoAndStop(1);
game.cap_selected = "";
return(false);
}
var _local3;
var _local5;
var _local4;
_local3 = 0;
while (_local3 < game.caps_bind[game.cap_selected].length) {
if (game.caps_bind[game.cap_selected][_local3] == nm) {
_local5 = Number(game.cap_selected.substr(3, 1));
_local4 = Number(game.cap_selected.substr(4, 1));
game.grid[_local7][_local6] = YColor_n();
game.grid[_local5][_local4] = 0;
this[game.cap_selected].eff_select.gotoAndStop(1);
if (this[game.cap_selected].getDepth() < this[nm].getDepth()) {
this[game.cap_selected].swapDepths(this[nm]);
}
ActivateMoving(game.cap_selected, nm);
game.cap_selected = "";
game.pl_can_act = false;
return(true);
}
_local3++;
}
}
}
function NextMove() {
this.AI_Think.gotoAndStop(1);
game.white_mills = 0;
game.black_mills = 0;
game.cap_selected = "";
game.cur_turn = EColor();
if (game[game.cur_turn + "_instock"] > 0) {
game.cur_act = "place";
}
if (game[game.cur_turn + "_instock"] == 0) {
game.cur_act = "move";
}
if (game[game.cur_turn + "_control"] == "AI") {
trace("---->AI enabled - AI turn<----");
game.pl_can_act = false;
if (!GameOverCheck()) {
tip_txt = CurPlayer_tip();
AIControl();
}
} else if (game[game.cur_turn + "_control"] == "PL") {
trace("--->AI disabled - PL turn<----");
if (!GameOverCheck()) {
trace("NEXT MOVE: game.cur_act:" + game.cur_act);
tip_txt = CurPlayer_tip();
game.pl_can_act = true;
}
}
}
function AllCheck(no_errors, nm) {
trace((("AllCheck: " + no_errors) + " ") + nm);
if (no_errors) {
if (game[game.cur_turn + "_mills"] > 0) {
game.cur_act = "remove";
tip_txt = CurPlayer_tip();
} else {
this.AI_Think.gotoAndStop(2);
this.Move_delay.gotoAndPlay(1);
}
}
}
function GameOverCheck() {
if ((game[game.cur_turn + "_instock"] == 0) && (game[game.cur_turn + "_infield"] <= 2)) {
game.winner = EColor_n();
ActivateGameOver(YColor_n());
this.gotoAndStop(3);
return(true);
}
if (((game[game.cur_turn + "_instock"] == 0) && (game[game.cur_turn + "_infield"] > 0)) && (!CanMoveCheck(CurColor_n()))) {
game.winner = EColor_n();
ActivateGameOver(YColor_n());
this.gotoAndStop(3);
return(true);
}
return(false);
}
function CanMoveCheck(color) {
var _local1;
var _local2;
var _local5;
var _local4;
var _local3 = new Array();
_local1 = 0;
while (_local1 < game.caps_pos.length) {
_local5 = Number(game.caps_pos[_local1].substr(0, 1));
_local4 = Number(game.caps_pos[_local1].substr(1, 1));
if (game.grid[_local5][_local4] == color) {
_local3.push(game.caps_pos[_local1]);
}
_local1++;
}
_local1 = 0;
while (_local1 < _local3.length) {
_local2 = 0;
while (_local2 < game.caps_bind["cap" + _local3[_local1]].length) {
_local5 = Number(game.caps_bind["cap" + _local3[_local1]][_local2].substr(3, 1));
_local4 = Number(game.caps_bind["cap" + _local3[_local1]][_local2].substr(4, 1));
if (game.grid[_local5][_local4] == 0) {
return(true);
}
_local2++;
}
_local1++;
}
return(false);
}
function ActivateMoving(cap, tocap) {
trace((("ActivateMoving: " + cap) + " to ") + tocap);
this[cap].origCap = cap;
this[cap].toCap = tocap;
this[cap].gotoAndPlay(("cap_" + YColor()) + "_move");
}
function ActivateMill(cap1, cap2, cap3) {
trace((((("ActivateMill: " + cap1) + " ") + cap2) + " ") + cap3);
game.pl_can_act = false;
this[cap1].gotoAndPlay(("cap_" + YColor()) + "_millflash");
this[cap2].gotoAndPlay(("cap_" + YColor()) + "_millflash");
this[cap3].gotoAndPlay(("cap_" + YColor()) + "_millflash");
}
function ActivateRemove(cap, cap_x, cap_y) {
trace((((("ActivateRemove: " + cap) + " x: ") + cap_x) + " y: ") + cap_y);
var _local5;
_local5 = calcRand(3, 5);
var _local2;
_local2 = 0;
while (_local2 < _local5) {
this.attachMovie("particle", (((("particle" + _local2) + "") + cap_x) + "") + cap_y, this.getNextHighestDepth());
this[(((("particle" + _local2) + "") + cap_x) + "") + cap_y]._x = cap_x;
this[(((("particle" + _local2) + "") + cap_x) + "") + cap_y]._y = cap_y;
_local2++;
}
this[cap].gotoAndPlay(("cap_" + YColor()) + "_removeflash");
}
function ActivateGameOver(caps) {
var _local4 = ReturnCaps(caps);
var _local2;
var _local3;
var _local5;
_local2 = 0;
while (_local2 < _local4.length) {
_local5 = calcRand(3, 5);
_local3 = 0;
while (_local3 < _local5) {
this.attachMovie("particle", (("particle" + _local2) + "_") + _local3, this.getNextHighestDepth());
this[(("particle" + _local2) + "_") + _local3]._x = this["cap" + _local4[_local2]]._x;
this[(("particle" + _local2) + "_") + _local3]._y = this["cap" + _local4[_local2]]._y;
this["cap" + _local4[_local2]].gotoAndStop("cap_blank");
_local3++;
}
_local2++;
}
}
function ActivateNewGame() {
var _local3;
var _local2;
var _local4;
var _local5;
_local3 = 0;
while (_local3 <= game.board_type) {
_local2 = 0;
while (_local2 <= game.board_type) {
if ((game.grid[_local3][_local2] == 1) || (game.grid[_local3][_local2] == 2)) {
game.grid[_local3][_local2] == 0;
_local5 = calcRand(3, 5);
_local4 = 0;
while (_local4 < _local5) {
this.attachMovie("particle", (((("particle" + _local3) + "_") + _local2) + "_") + _local4, this.getNextHighestDepth());
this[(((("particle" + _local3) + "_") + _local2) + "_") + _local4]._x = this[(("cap" + _local3) + "") + _local2]._x;
this[(((("particle" + _local3) + "_") + _local2) + "_") + _local4]._y = this[(("cap" + _local3) + "") + _local2]._y;
this[(("cap" + _local3) + "") + _local2].gotoAndStop("cap_blank");
_local4++;
}
}
_local2++;
}
_local3++;
}
AI_Think.gotoAndStop(1);
this.gotoAndPlay(4);
}
function CreateMatrix() {
game.grid = new Array(game.board_type);
var _local2;
var _local3;
_local2 = 0;
while (_local2 <= game.board_type) {
game.grid[_local2] = new Array(game.board_type);
_local3 = 0;
while (_local3 <= game.board_type) {
game.grid[_local2][_local3] = 8;
_local3++;
}
_local2++;
}
game.grid[0][0] = 0;
game.grid[2][0] = 0;
game.grid[4][0] = 0;
game.grid[1][1] = 0;
game.grid[2][1] = 0;
game.grid[3][1] = 0;
game.grid[0][2] = 0;
game.grid[1][2] = 0;
game.grid[3][2] = 0;
game.grid[4][2] = 0;
game.grid[1][3] = 0;
game.grid[2][3] = 0;
game.grid[3][3] = 0;
game.grid[0][4] = 0;
game.grid[2][4] = 0;
game.grid[4][4] = 0;
game.caps_pos = new Array();
_local2 = 0;
while (_local2 <= game.board_type) {
_local3 = 0;
while (_local3 <= game.board_type) {
if (game.grid[_local2][_local3] == 0) {
game.caps_pos.push((_local2 + "") + _local3);
}
_local3++;
}
_local2++;
}
game.mills = new Array();
game.mills[0] = new Array("00", "20", "40");
game.mills[1] = new Array("04", "24", "44");
game.mills[2] = new Array("40", "42", "44");
game.mills[3] = new Array("00", "02", "04");
game.mills[4] = new Array("11", "21", "31");
game.mills[5] = new Array("13", "23", "33");
game.mills[6] = new Array("11", "12", "13");
game.mills[7] = new Array("31", "32", "33");
game.mills_center = new Array();
game.mills_center[0] = "00";
game.mills_center[1] = "40";
game.mills_center[2] = "04";
game.mills_center[3] = "44";
game.caps_bind = {};
_local2 = 0;
while (_local2 < game.caps_pos.length) {
game.caps_bind["cap" + game.caps_pos[_local2]] = new Array();
var _local8 = game.caps_pos[_local2];
var _local5 = Number(_local8.substr(0, 1));
var _local4 = Number(_local8.substr(1, 1));
var _local1;
_local1 = 1;
while (_local1 < 7) {
if ((_local5 + _local1) > 6) {
break;
}
if ((((_local5 + _local1) == (game.board_type / 2)) && (_local4 == (game.board_type / 2))) && (_local5 == ((game.board_type / 2) - 1))) {
break;
}
if (game.grid[_local5 + _local1][_local4] == 0) {
game.caps_bind["cap" + game.caps_pos[_local2]].push((("cap" + (_local5 + _local1)) + "") + _local4);
break;
}
_local1++;
}
_local1 = 1;
while (_local1 < 7) {
if ((_local5 - _local1) < 0) {
break;
}
if ((((_local5 - _local1) == (game.board_type / 2)) && (_local4 == (game.board_type / 2))) && (_local5 == ((game.board_type / 2) + 1))) {
break;
}
if (game.grid[_local5 - _local1][_local4] == 0) {
game.caps_bind["cap" + game.caps_pos[_local2]].push((("cap" + (_local5 - _local1)) + "") + _local4);
break;
}
_local1++;
}
_local1 = 1;
while (_local1 < 7) {
if ((_local4 - _local1) < 0) {
break;
}
if ((((_local4 - _local1) == (game.board_type / 2)) && (_local4 == ((game.board_type / 2) + 1))) && (_local5 == (game.board_type / 2))) {
break;
}
if (game.grid[_local5][_local4 - _local1] == 0) {
game.caps_bind["cap" + game.caps_pos[_local2]].push((("cap" + _local5) + "") + (_local4 - _local1));
break;
}
_local1++;
}
_local1 = 1;
while (_local1 < 7) {
if ((_local4 + _local1) > 6) {
break;
}
if ((((_local4 + _local1) == (game.board_type / 2)) && (_local4 == ((game.board_type / 2) - 1))) && (_local5 == (game.board_type / 2))) {
break;
}
if (game.grid[_local5][_local4 + _local1] == 0) {
game.caps_bind["cap" + game.caps_pos[_local2]].push((("cap" + _local5) + "") + (_local4 + _local1));
break;
}
_local1++;
}
_local2++;
}
game.caps_mills_bind = {};
var _local7;
var _local6;
_local2 = 0;
while (_local2 < game.caps_pos.length) {
game.caps_mills_bind["cap" + game.caps_pos[_local2]] = new Array();
_local7 = game.caps_pos[_local2];
_local3 = 0;
while (_local3 < game.mills.length) {
_local6 = true;
if (((_local7 == game.mills[_local3][0]) || (_local7 == game.mills[_local3][1])) || (_local7 == game.mills[_local3][2])) {
k = 0;
while (k < game.caps_mills_bind["cap" + game.caps_pos[_local2]].length) {
if (game.caps_mills_bind["cap" + game.caps_pos[_local2]][k] == _local3) {
_local6 = false;
break;
}
k++;
}
if (_local6) {
game.caps_mills_bind["cap" + game.caps_pos[_local2]].push(_local3);
}
}
_local3++;
}
_local2++;
}
}
function calcRand(min, max) {
return(Math.floor(Math.random() * ((max + 1) - min)) + min);
}
function EColor_n() {
if (game.cur_turn == "white") {
return(2);
}
if (game.cur_turn == "black") {
return(1);
}
}
function YColor_n() {
if (game.cur_turn == "white") {
return(1);
}
if (game.cur_turn == "black") {
return(2);
}
}
function EColor() {
if (game.cur_turn == "white") {
return("black");
}
if (game.cur_turn == "black") {
return("white");
}
}
function YColor() {
if (game.cur_turn == "white") {
return("white");
}
if (game.cur_turn == "black") {
return("black");
}
}
function CurColor_n() {
if (game.cur_turn == "white") {
return(1);
}
if (game.cur_turn == "black") {
return(2);
}
}
function CurPlayer_tip() {
if (game.cur_turn == "white") {
if (game.white_control == "AI") {
return("Opponent is thinking...");
}
if (game.white_control == "PL") {
switch (game.cur_act) {
case "place" :
return("Place a stone");
case "move" :
return("Move a stone");
case "remove" :
return("Remove opponent's stone");
}
}
}
if (game.cur_turn == "black") {
if (game.black_control == "AI") {
return("Opponent is thinking...");
}
if (game.black_control == "PL") {
switch (game.cur_act) {
case "place" :
return("Place a stone");
case "move" :
return("Move a stone");
case "remove" :
return("Remove opponent's stone");
}
}
}
}
function Capstxt() {
if ((game.white_instock == 0) && (game.black_instock == 0)) {
this.cap_info.gotoAndStop(2);
} else {
this.cap_info.white_instock_txt = game.white_instock;
this.cap_info.black_instock_txt = game.black_instock;
this.cap_info.gotoAndStop(1);
}
}
game = {};
game.board_type = 4;
game.black_instock = 6;
game.white_instock = 6;
game.black_infield = 0;
game.white_infield = 0;
game.white_mills = 0;
game.black_mills = 0;
game.diag_move = false;
game.caps_move = false;
game.white_control = _root.game.white_control;
game.black_control = _root.game.black_control;
game.cur_act = "place";
game.cur_turn = "white";
game.pl_can_act = true;
game.cap_selected = "";
game.winner = 0;
CreateMatrix();
Capstxt();
this.Move_delay.stop();
tip_txt = CurPlayer_tip();
if (game.white_control == "AI") {
AIControl();
}
Instance of Symbol 24 MovieClip in Symbol 136 MovieClip Frame 1 (220 B)
on (release) {
_root.gotoAndStop("main_menu");
}
onClipEvent (load) {
title = "Menu";
stop();
}
on (release, rollOut, dragOut) {
gotoAndStop (1);
}
on (press) {
gotoAndStop (3);
}
on (rollOver) {
gotoAndStop (2);
}
Instance of Symbol 24 MovieClip in Symbol 136 MovieClip Frame 1 (242 B)
on (release) {
_parent.ActivateNewGame();
_parent.gotoAndStop(1);
}
onClipEvent (load) {
title = "Replay";
stop();
}
on (release, rollOut, dragOut) {
gotoAndStop (1);
}
on (press) {
gotoAndStop (3);
}
on (rollOver) {
gotoAndStop (2);
}
Instance of Symbol 128 MovieClip "Move_delay" in Symbol 136 MovieClip Frame 1 (21 B)
/* no clip actions */
Symbol 136 MovieClip Frame 2 (8 B)
stop();
Symbol 136 MovieClip Frame 3 (21 B)
cap_info._alpha = 0;
Symbol 138 MovieClip Frame 1 (20.8 KiB) ● ● ●
function AIControl() {
var _local2 = "cap00";
switch (game.cur_act) {
case "place" :
this.AI_Think.gotoAndStop("AI_Think_Place");
break;
case "move" :
this.AI_Think.gotoAndStop("AI_Think_Move");
break;
case "remove" :
AI_RemoveCap();
break;
case "pass" :
}
}
function AI_RemoveCap() {
var _local2 = ReturnCaps(EColor_n());
var _local3 = new Array();
trace("AI_RemoveCap: posCaps: " + _local2);
var _local5 = false;
var _local4 = 0;
var _local1 = 0;
_local1 = 0;
while (_local1 < _local2.length) {
if (CanRemove("cap" + _local2[_local1])) {
_local3.push(_local2[_local1]);
}
_local1++;
}
trace("AI_RemoveCap: rest_pos_moves" + _local3);
if (_local3.length >= 1) {
if (_local3.length == 1) {
RemoveCap("cap" + _local3[0]);
AI_AllCheck();
} else {
trace("AI_RemoveCap: \u041F\u044B\u0442\u0430\u0435\u043C\u0441\u044F \u0443\u0434\u0430\u043B\u0438\u0442\u044C");
RemoveCap("cap" + _local2[calcRand(0, _local3.length - 1)]);
AI_AllCheck();
}
} else {
trace("AI_RemoveCap: \u043D\u0435 \u043C\u043E\u0436\u0435\u043C \u043D\u0438\u0447\u0435\u0433\u043E \u0443\u0434\u0430\u043B\u0438\u0442\u044C - \u0431\u0430\u0433\u0430!");
}
}
function CanRemove(nm) {
var _local2 = Number(nm.substr(3, 1));
var _local1 = Number(nm.substr(4, 1));
if ((game.grid[_local2][_local1] == EColor_n()) && (CapNotInMill(nm))) {
return(true);
}
if ((game.grid[_local2][_local1] == EColor_n()) && (game[EColor() + "_infield"] <= (MillsCheck(nm, EColor_n(), false) * 3))) {
return(true);
}
return(false);
}
function RandomPlace() {
var _local4 = game.caps_pos;
var _local3 = new Array();
i = 0;
while (i < game.caps_pos.length) {
var _local2 = Number(game.caps_pos[i].substr(0, 1));
var _local1 = Number(game.caps_pos[i].substr(1, 1));
if (game.grid[_local2][_local1] == 0) {
_local3.push(game.caps_pos[i]);
}
i++;
}
return(_local3[calcRand(0, _local3.length - 1)]);
}
function ReturnCaps(color) {
var _local5 = game.caps_pos;
var _local3 = new Array();
var _local2 = 0;
var _local1 = 0;
i = 0;
while (i < game.caps_pos.length) {
_local2 = Number(game.caps_pos[i].substr(0, 1));
_local1 = Number(game.caps_pos[i].substr(1, 1));
if (game.grid[_local2][_local1] == color) {
_local3.push(game.caps_pos[i]);
}
i++;
}
return(_local3);
}
function AI_AllCheck() {
trace("\u041F\u0415\u0420\u0415\u0428\u041B\u0418 \u0412 \u0410\u041B\u041B \u0427\u0415\u041A!");
trace("AI_AllCheck: mills: " + game[game.cur_turn + "_mills"]);
if (game[game.cur_turn + "_mills"] > 0) {
game.cur_act = "remove";
trace("--->AI - need to remove enemy caps");
AIControl();
} else {
this.Move_delay.gotoAndPlay(1);
}
}
function AI_MillsCount(color) {
var _local2;
var _local7 = 0;
var _local1 = new Array();
_local2 = 0;
while (_local2 < game.mills.length) {
_local1 = game.mills[_local2];
var _local5 = _local1[0];
var _local4 = _local1[1];
var _local3 = _local1[2];
if (((game.grid[Number(_local5.substr(0, 1))][Number(_local5.substr(1, 1))] == color) && (game.grid[Number(_local4.substr(0, 1))][Number(_local4.substr(1, 1))] == color)) && (game.grid[Number(_local3.substr(0, 1))][Number(_local3.substr(1, 1))] == color)) {
_local7++;
}
_local2++;
}
return(_local7);
}
function AI_CanMoveCheck(cap) {
var _local1;
var _local4;
var _local3;
_local1 = 0;
while (_local1 < game.caps_bind[cap].length) {
_local4 = Number(game.caps_bind[cap][_local1].substr(3, 1));
_local3 = Number(game.caps_bind[cap][_local1].substr(4, 1));
if (game.grid[_local4][_local3] == 0) {
return(true);
}
_local1++;
}
return(false);
}
function MakeMove(nm) {
var _local1 = false;
switch (game.cur_act) {
case "place" :
_local1 = PlaceCap(nm);
if (_local1) {
MillsCheck(nm, YColor_n(), true);
}
break;
case "move" :
_local1 = MoveCap(nm);
break;
case "remove" :
_local1 = RemoveCap(nm);
break;
case "win_loose" :
}
if (game.cur_act != "move") {
AllCheck(_local1, nm);
}
Capstxt();
}
function PlaceCap(nm) {
var _local3 = Number(nm.substr(3, 1));
var _local2 = Number(nm.substr(4, 1));
if ((game.grid[_local3][_local2] == 0) && (game[game.cur_turn + "_instock"] > 0)) {
this[nm].gotoAndStop("cap_" + game.cur_turn);
game.grid[_local3][_local2] = YColor_n();
game.pl_can_act = false;
game[game.cur_turn + "_instock"]--;
game[game.cur_turn + "_infield"]++;
return(true);
}
return(false);
}
function RemoveCap(nm) {
var _local4 = Number(nm.substr(3, 1));
var _local3 = Number(nm.substr(4, 1));
if ((game.grid[_local4][_local3] == EColor_n()) && (CapNotInMill(nm))) {
ActivateRemove(nm, this[nm]._x, this[nm]._y);
game.grid[_local4][_local3] = 0;
game[EColor() + "_infield"]--;
game[game.cur_turn + "_mills"]--;
return(true);
}
if ((game.grid[_local4][_local3] == EColor_n()) && (game[EColor() + "_infield"] <= (MillsCheck(nm, EColor_n(), false) * 3))) {
ActivateRemove(nm, this[nm]._x, this[nm]._y);
game.grid[_local4][_local3] = 0;
game[EColor() + "_infield"]--;
game[game.cur_turn + "_mills"]--;
return(true);
}
return(false);
}
function CapNotInMill(nm) {
var _local5;
var _local4 = new Array();
_local5 = 0;
while (_local5 < game.mills.length) {
_local4 = game.mills[_local5];
var _local3 = _local4[0];
var _local2 = _local4[1];
var _local1 = _local4[2];
if (((game.grid[Number(_local3.substr(0, 1))][Number(_local3.substr(1, 1))] == EColor_n()) && (game.grid[Number(_local2.substr(0, 1))][Number(_local2.substr(1, 1))] == EColor_n())) && (game.grid[Number(_local1.substr(0, 1))][Number(_local1.substr(1, 1))] == EColor_n())) {
if (((nm == ("cap" + _local3)) || (nm == ("cap" + _local2))) || (nm == ("cap" + _local1))) {
return(false);
}
}
_local5++;
}
return(true);
}
function MillsCheck(nm, color, make_count) {
var _local5;
if (make_count) {
game[game.cur_turn + "_mills"] = 0;
}
var _local8 = 0;
var _local4 = new Array();
var _local3 = "";
var _local2 = "";
var _local1 = "";
_local5 = 0;
while (_local5 < game.mills.length) {
_local4 = game.mills[_local5];
_local3 = _local4[0];
_local2 = _local4[1];
_local1 = _local4[2];
if (((game.grid[Number(_local3.substr(0, 1))][Number(_local3.substr(1, 1))] == color) && (game.grid[Number(_local2.substr(0, 1))][Number(_local2.substr(1, 1))] == color)) && (game.grid[Number(_local1.substr(0, 1))][Number(_local1.substr(1, 1))] == color)) {
_local8++;
trace(((((((((nm + " ") + "cap") + _local3) + " ") + "cap") + _local2) + " ") + "cap") + _local1);
if (((nm == ("cap" + _local3)) || (nm == ("cap" + _local2))) || (nm == ("cap" + _local1))) {
if (make_count) {
ActivateMill("cap" + _local3, "cap" + _local2, "cap" + _local1);
game[game.cur_turn + "_mills"]++;
}
}
}
_local5++;
}
return(_local8);
}
function MoveCap(nm) {
var _local7 = Number(nm.substr(3, 1));
var _local6 = Number(nm.substr(4, 1));
if (game.cap_selected == "") {
if (game.grid[_local7][_local6] == YColor_n()) {
game.cap_selected = nm;
this[nm].eff_select.gotoAndStop(2);
return(false);
}
} else {
if (game.grid[_local7][_local6] == YColor_n()) {
this[game.cap_selected].eff_select.gotoAndStop(1);
this[nm].eff_select.gotoAndStop(2);
game.cap_selected = nm;
return(false);
}
if (game.grid[_local7][_local6] == EColor_n()) {
this[game.cap_selected].eff_select.gotoAndStop(1);
game.cap_selected = "";
return(false);
}
var _local3;
var _local5;
var _local4;
_local3 = 0;
while (_local3 < game.caps_bind[game.cap_selected].length) {
if (game.caps_bind[game.cap_selected][_local3] == nm) {
_local5 = Number(game.cap_selected.substr(3, 1));
_local4 = Number(game.cap_selected.substr(4, 1));
game.grid[_local7][_local6] = YColor_n();
game.grid[_local5][_local4] = 0;
this[game.cap_selected].eff_select.gotoAndStop(1);
if (this[game.cap_selected].getDepth() < this[nm].getDepth()) {
this[game.cap_selected].swapDepths(this[nm]);
}
ActivateMoving(game.cap_selected, nm);
game.cap_selected = "";
game.pl_can_act = false;
return(true);
}
_local3++;
}
}
}
function NextMove() {
this.AI_Think.gotoAndStop(1);
game.white_mills = 0;
game.black_mills = 0;
game.cap_selected = "";
game.cur_turn = EColor();
if (game[game.cur_turn + "_instock"] > 0) {
game.cur_act = "place";
}
if (game[game.cur_turn + "_instock"] == 0) {
game.cur_act = "move";
}
if (game[game.cur_turn + "_control"] == "AI") {
trace("---->AI enabled - AI turn<----");
game.pl_can_act = false;
if (!GameOverCheck()) {
tip_txt = CurPlayer_tip();
AIControl();
}
} else if (game[game.cur_turn + "_control"] == "PL") {
trace("--->AI disabled - PL turn<----");
if (!GameOverCheck()) {
trace("NEXT MOVE: game.cur_act:" + game.cur_act);
tip_txt = CurPlayer_tip();
game.pl_can_act = true;
}
}
}
function AllCheck(no_errors, nm) {
trace((("AllCheck: " + no_errors) + " ") + nm);
if (no_errors) {
if (game[game.cur_turn + "_mills"] > 0) {
game.cur_act = "remove";
tip_txt = CurPlayer_tip();
} else {
this.AI_Think.gotoAndStop(2);
this.Move_delay.gotoAndPlay(1);
}
}
}
function GameOverCheck() {
if ((game[game.cur_turn + "_instock"] == 0) && (game[game.cur_turn + "_infield"] <= 2)) {
game.winner = EColor_n();
ActivateGameOver(YColor_n());
this.gotoAndStop(3);
return(true);
}
if (((game[game.cur_turn + "_instock"] == 0) && (game[game.cur_turn + "_infield"] > 0)) && (!CanMoveCheck(CurColor_n()))) {
game.winner = EColor_n();
ActivateGameOver(YColor_n());
this.gotoAndStop(3);
return(true);
}
return(false);
}
function CanMoveCheck(color) {
var _local1;
var _local2;
var _local5;
var _local4;
var _local3 = new Array();
_local1 = 0;
while (_local1 < game.caps_pos.length) {
_local5 = Number(game.caps_pos[_local1].substr(0, 1));
_local4 = Number(game.caps_pos[_local1].substr(1, 1));
if (game.grid[_local5][_local4] == color) {
_local3.push(game.caps_pos[_local1]);
}
_local1++;
}
_local1 = 0;
while (_local1 < _local3.length) {
_local2 = 0;
while (_local2 < game.caps_bind["cap" + _local3[_local1]].length) {
_local5 = Number(game.caps_bind["cap" + _local3[_local1]][_local2].substr(3, 1));
_local4 = Number(game.caps_bind["cap" + _local3[_local1]][_local2].substr(4, 1));
if (game.grid[_local5][_local4] == 0) {
return(true);
}
_local2++;
}
_local1++;
}
return(false);
}
function ActivateMoving(cap, tocap) {
trace((("ActivateMoving: " + cap) + " to ") + tocap);
this[cap].origCap = cap;
this[cap].toCap = tocap;
this[cap].gotoAndPlay(("cap_" + YColor()) + "_move");
}
function ActivateMill(cap1, cap2, cap3) {
trace((((("ActivateMill: " + cap1) + " ") + cap2) + " ") + cap3);
game.pl_can_act = false;
this[cap1].gotoAndPlay(("cap_" + YColor()) + "_millflash");
this[cap2].gotoAndPlay(("cap_" + YColor()) + "_millflash");
this[cap3].gotoAndPlay(("cap_" + YColor()) + "_millflash");
}
function ActivateRemove(cap, cap_x, cap_y) {
trace((((("ActivateRemove: " + cap) + " x: ") + cap_x) + " y: ") + cap_y);
var _local5;
_local5 = calcRand(3, 5);
var _local2;
_local2 = 0;
while (_local2 < _local5) {
this.attachMovie("particle", (((("particle" + _local2) + "") + cap_x) + "") + cap_y, this.getNextHighestDepth());
this[(((("particle" + _local2) + "") + cap_x) + "") + cap_y]._x = cap_x;
this[(((("particle" + _local2) + "") + cap_x) + "") + cap_y]._y = cap_y;
_local2++;
}
this[cap].gotoAndPlay(("cap_" + YColor()) + "_removeflash");
}
function ActivateGameOver(caps) {
var _local4 = ReturnCaps(caps);
var _local2;
var _local3;
var _local5;
_local2 = 0;
while (_local2 < _local4.length) {
_local5 = calcRand(3, 5);
_local3 = 0;
while (_local3 < _local5) {
this.attachMovie("particle", (("particle" + _local2) + "_") + _local3, this.getNextHighestDepth());
this[(("particle" + _local2) + "_") + _local3]._x = this["cap" + _local4[_local2]]._x;
this[(("particle" + _local2) + "_") + _local3]._y = this["cap" + _local4[_local2]]._y;
this["cap" + _local4[_local2]].gotoAndStop("cap_blank");
_local3++;
}
_local2++;
}
}
function ActivateNewGame() {
var _local3;
var _local2;
var _local4;
var _local5;
_local3 = 0;
while (_local3 <= game.board_type) {
_local2 = 0;
while (_local2 <= game.board_type) {
if ((game.grid[_local3][_local2] == 1) || (game.grid[_local3][_local2] == 2)) {
game.grid[_local3][_local2] == 0;
_local5 = calcRand(3, 5);
_local4 = 0;
while (_local4 < _local5) {
this.attachMovie("particle", (((("particle" + _local3) + "_") + _local2) + "_") + _local4, this.getNextHighestDepth());
this[(((("particle" + _local3) + "_") + _local2) + "_") + _local4]._x = this[(("cap" + _local3) + "") + _local2]._x;
this[(((("particle" + _local3) + "_") + _local2) + "_") + _local4]._y = this[(("cap" + _local3) + "") + _local2]._y;
this[(("cap" + _local3) + "") + _local2].gotoAndStop("cap_blank");
_local4++;
}
}
_local2++;
}
_local3++;
}
AI_Think.gotoAndStop(1);
this.gotoAndPlay(4);
}
function CreateMatrix() {
game.grid = new Array(game.board_type);
var _local2;
var _local3;
_local2 = 0;
while (_local2 <= game.board_type) {
game.grid[_local2] = new Array(game.board_type);
_local3 = 0;
while (_local3 <= game.board_type) {
game.grid[_local2][_local3] = 8;
_local3++;
}
_local2++;
}
game.grid[0][0] = 0;
game.grid[3][0] = 0;
game.grid[6][0] = 0;
game.grid[1][1] = 0;
game.grid[3][1] = 0;
game.grid[5][1] = 0;
game.grid[2][2] = 0;
game.grid[3][2] = 0;
game.grid[4][2] = 0;
game.grid[0][3] = 0;
game.grid[1][3] = 0;
game.grid[2][3] = 0;
game.grid[4][3] = 0;
game.grid[5][3] = 0;
game.grid[6][3] = 0;
game.grid[2][4] = 0;
game.grid[3][4] = 0;
game.grid[4][4] = 0;
game.grid[1][5] = 0;
game.grid[3][5] = 0;
game.grid[5][5] = 0;
game.grid[0][6] = 0;
game.grid[3][6] = 0;
game.grid[6][6] = 0;
game.caps_pos = new Array();
_local2 = 0;
while (_local2 <= game.board_type) {
_local3 = 0;
while (_local3 <= game.board_type) {
if (game.grid[_local2][_local3] == 0) {
game.caps_pos.push((_local2 + "") + _local3);
}
_local3++;
}
_local2++;
}
game.mills = new Array();
game.mills[0] = new Array("00", "30", "60");
game.mills[1] = new Array("11", "31", "51");
game.mills[2] = new Array("22", "32", "42");
game.mills[3] = new Array("03", "13", "23");
game.mills[4] = new Array("43", "53", "63");
game.mills[5] = new Array("24", "34", "44");
game.mills[6] = new Array("15", "35", "55");
game.mills[7] = new Array("06", "36", "66");
game.mills[8] = new Array("00", "03", "06");
game.mills[9] = new Array("11", "13", "15");
game.mills[10] = new Array("22", "23", "24");
game.mills[11] = new Array("30", "31", "32");
game.mills[12] = new Array("34", "35", "36");
game.mills[13] = new Array("42", "43", "44");
game.mills[14] = new Array("51", "53", "55");
game.mills[15] = new Array("60", "63", "66");
game.mills_center = new Array();
game.mills_center[1] = "13";
game.mills_center[2] = "31";
game.mills_center[3] = "53";
game.mills_center[4] = "35";
game.caps_bind = {};
_local2 = 0;
while (_local2 < game.caps_pos.length) {
game.caps_bind["cap" + game.caps_pos[_local2]] = new Array();
var _local8 = game.caps_pos[_local2];
var _local5 = Number(_local8.substr(0, 1));
var _local4 = Number(_local8.substr(1, 1));
var _local1;
_local1 = 1;
while (_local1 < 7) {
if ((_local5 + _local1) > 6) {
break;
}
if ((((_local5 + _local1) == (game.board_type / 2)) && (_local4 == (game.board_type / 2))) && (_local5 == ((game.board_type / 2) - 1))) {
break;
}
if (game.grid[_local5 + _local1][_local4] == 0) {
game.caps_bind["cap" + game.caps_pos[_local2]].push((("cap" + (_local5 + _local1)) + "") + _local4);
break;
}
_local1++;
}
_local1 = 1;
while (_local1 < 7) {
if ((_local5 - _local1) < 0) {
break;
}
if ((((_local5 - _local1) == (game.board_type / 2)) && (_local4 == (game.board_type / 2))) && (_local5 == ((game.board_type / 2) + 1))) {
break;
}
if (game.grid[_local5 - _local1][_local4] == 0) {
game.caps_bind["cap" + game.caps_pos[_local2]].push((("cap" + (_local5 - _local1)) + "") + _local4);
break;
}
_local1++;
}
_local1 = 1;
while (_local1 < 7) {
if ((_local4 - _local1) < 0) {
break;
}
if ((((_local4 - _local1) == (game.board_type / 2)) && (_local4 == ((game.board_type / 2) + 1))) && (_local5 == (game.board_type / 2))) {
break;
}
if (game.grid[_local5][_local4 - _local1] == 0) {
game.caps_bind["cap" + game.caps_pos[_local2]].push((("cap" + _local5) + "") + (_local4 - _local1));
break;
}
_local1++;
}
_local1 = 1;
while (_local1 < 7) {
if ((_local4 + _local1) > 6) {
break;
}
if ((((_local4 + _local1) == (game.board_type / 2)) && (_local4 == ((game.board_type / 2) - 1))) && (_local5 == (game.board_type / 2))) {
break;
}
if (game.grid[_local5][_local4 + _local1] == 0) {
game.caps_bind["cap" + game.caps_pos[_local2]].push((("cap" + _local5) + "") + (_local4 + _local1));
break;
}
_local1++;
}
_local2++;
}
game.caps_mills_bind = {};
var _local7;
var _local6;
_local2 = 0;
while (_local2 < game.caps_pos.length) {
game.caps_mills_bind["cap" + game.caps_pos[_local2]] = new Array();
_local7 = game.caps_pos[_local2];
_local3 = 0;
while (_local3 < game.mills.length) {
_local6 = true;
if (((_local7 == game.mills[_local3][0]) || (_local7 == game.mills[_local3][1])) || (_local7 == game.mills[_local3][2])) {
k = 0;
while (k < game.caps_mills_bind["cap" + game.caps_pos[_local2]].length) {
if (game.caps_mills_bind["cap" + game.caps_pos[_local2]][k] == _local3) {
_local6 = false;
break;
}
k++;
}
if (_local6) {
game.caps_mills_bind["cap" + game.caps_pos[_local2]].push(_local3);
}
}
_local3++;
}
_local2++;
}
}
function calcRand(min, max) {
return(Math.floor(Math.random() * ((max + 1) - min)) + min);
}
function EColor_n() {
if (game.cur_turn == "white") {
return(2);
}
if (game.cur_turn == "black") {
return(1);
}
}
function YColor_n() {
if (game.cur_turn == "white") {
return(1);
}
if (game.cur_turn == "black") {
return(2);
}
}
function EColor() {
if (game.cur_turn == "white") {
return("black");
}
if (game.cur_turn == "black") {
return("white");
}
}
function YColor() {
if (game.cur_turn == "white") {
return("white");
}
if (game.cur_turn == "black") {
return("black");
}
}
function CurColor_n() {
if (game.cur_turn == "white") {
return(1);
}
if (game.cur_turn == "black") {
return(2);
}
}
function CurPlayer_tip() {
if (game.cur_turn == "white") {
if (game.white_control == "AI") {
return("Opponent is thinking...");
}
if (game.white_control == "PL") {
switch (game.cur_act) {
case "place" :
return("Place a stone");
case "move" :
return("Move a stone");
case "remove" :
return("Remove opponent's stone");
}
}
}
if (game.cur_turn == "black") {
if (game.black_control == "AI") {
return("Opponent is thinking...");
}
if (game.black_control == "PL") {
switch (game.cur_act) {
case "place" :
return("Place a stone");
case "move" :
return("Move a stone");
case "remove" :
return("Remove opponent's stone");
}
}
}
}
function Capstxt() {
if ((game.white_instock == 0) && (game.black_instock == 0)) {
this.cap_info.gotoAndStop(2);
} else {
this.cap_info.white_instock_txt = game.white_instock;
this.cap_info.black_instock_txt = game.black_instock;
this.cap_info.gotoAndStop(1);
}
}
game = {};
game.board_type = 6;
game.black_instock = 9;
game.white_instock = 9;
game.black_infield = 0;
game.white_infield = 0;
game.white_mills = 0;
game.black_mills = 0;
game.diag_move = false;
game.caps_move = false;
game.white_control = _root.game.white_control;
game.black_control = _root.game.black_control;
game.cur_act = "place";
game.cur_turn = "white";
game.pl_can_act = true;
game.cap_selected = "";
game.winner = 0;
CreateMatrix();
Capstxt();
this.Move_delay.stop();
tip_txt = CurPlayer_tip();
if (game.white_control == "AI") {
AIControl();
}
Instance of Symbol 128 MovieClip "Move_delay" in Symbol 138 MovieClip Frame 1 (21 B)
/* no clip actions */
Instance of Symbol 24 MovieClip in Symbol 138 MovieClip Frame 1 (220 B)
on (release) {
_root.gotoAndStop("main_menu");
}
onClipEvent (load) {
title = "Menu";
stop();
}
on (release, rollOut, dragOut) {
gotoAndStop (1);
}
on (press) {
gotoAndStop (3);
}
on (rollOver) {
gotoAndStop (2);
}
Instance of Symbol 24 MovieClip in Symbol 138 MovieClip Frame 1 (242 B)
on (release) {
_parent.ActivateNewGame();
_parent.gotoAndStop(1);
}
onClipEvent (load) {
title = "Replay";
stop();
}
on (release, rollOut, dragOut) {
gotoAndStop (1);
}
on (press) {
gotoAndStop (3);
}
on (rollOver) {
gotoAndStop (2);
}
Symbol 138 MovieClip Frame 2 (8 B)
stop();
Symbol 138 MovieClip Frame 3 (21 B)
cap_info._alpha = 0;
Symbol 140 MovieClip Frame 1 (19.31 KiB) ● ● ●
function AIControl() {
var _local2 = "cap00";
switch (game.cur_act) {
case "place" :
this.AI_Think.gotoAndStop("AI_Think_Place");
break;
case "move" :
this.AI_Think.gotoAndStop("AI_Think_Move");
break;
case "remove" :
AI_RemoveCap();
break;
case "pass" :
}
}
function AI_RemoveCap() {
var _local2 = ReturnCaps(EColor_n());
var _local3 = new Array();
trace("AI_RemoveCap: posCaps: " + _local2);
var _local5 = false;
var _local4 = 0;
var _local1 = 0;
_local1 = 0;
while (_local1 < _local2.length) {
if (CanRemove("cap" + _local2[_local1])) {
_local3.push(_local2[_local1]);
}
_local1++;
}
trace("AI_RemoveCap: rest_pos_moves" + _local3);
if (_local3.length >= 1) {
if (_local3.length == 1) {
RemoveCap("cap" + _local3[0]);
AI_AllCheck();
} else {
trace("AI_RemoveCap: \u041F\u044B\u0442\u0430\u0435\u043C\u0441\u044F \u0443\u0434\u0430\u043B\u0438\u0442\u044C");
RemoveCap("cap" + _local2[calcRand(0, _local3.length - 1)]);
AI_AllCheck();
}
} else {
trace("AI_RemoveCap: \u043D\u0435 \u043C\u043E\u0436\u0435\u043C \u043D\u0438\u0447\u0435\u0433\u043E \u0443\u0434\u0430\u043B\u0438\u0442\u044C - \u0431\u0430\u0433\u0430!");
}
}
function CanRemove(nm) {
var _local2 = Number(nm.substr(3, 1));
var _local1 = Number(nm.substr(4, 1));
if ((game.grid[_local2][_local1] == EColor_n()) && (CapNotInMill(nm))) {
return(true);
}
if ((game.grid[_local2][_local1] == EColor_n()) && (game[EColor() + "_infield"] <= (MillsCheck(nm, EColor_n(), false) * 3))) {
return(true);
}
return(false);
}
function RandomPlace() {
var _local4 = game.caps_pos;
var _local3 = new Array();
i = 0;
while (i < game.caps_pos.length) {
var _local2 = Number(game.caps_pos[i].substr(0, 1));
var _local1 = Number(game.caps_pos[i].substr(1, 1));
if (game.grid[_local2][_local1] == 0) {
_local3.push(game.caps_pos[i]);
}
i++;
}
return(_local3[calcRand(0, _local3.length - 1)]);
}
function ReturnCaps(color) {
var _local5 = game.caps_pos;
var _local3 = new Array();
var _local2 = 0;
var _local1 = 0;
i = 0;
while (i < game.caps_pos.length) {
_local2 = Number(game.caps_pos[i].substr(0, 1));
_local1 = Number(game.caps_pos[i].substr(1, 1));
if (game.grid[_local2][_local1] == color) {
_local3.push(game.caps_pos[i]);
}
i++;
}
return(_local3);
}
function AI_AllCheck() {
trace("\u041F\u0415\u0420\u0415\u0428\u041B\u0418 \u0412 \u0410\u041B\u041B \u0427\u0415\u041A!");
trace("AI_AllCheck: mills: " + game[game.cur_turn + "_mills"]);
if (game[game.cur_turn + "_mills"] > 0) {
game.cur_act = "remove";
trace("--->AI - need to remove enemy caps");
AIControl();
} else {
this.Move_delay.gotoAndPlay(1);
}
}
function AI_MillsCount(color) {
var _local2;
var _local7 = 0;
var _local1 = new Array();
_local2 = 0;
while (_local2 < game.mills.length) {
_local1 = game.mills[_local2];
var _local5 = _local1[0];
var _local4 = _local1[1];
var _local3 = _local1[2];
if (((game.grid[Number(_local5.substr(0, 1))][Number(_local5.substr(1, 1))] == color) && (game.grid[Number(_local4.substr(0, 1))][Number(_local4.substr(1, 1))] == color)) && (game.grid[Number(_local3.substr(0, 1))][Number(_local3.substr(1, 1))] == color)) {
_local7++;
}
_local2++;
}
return(_local7);
}
function AI_CanMoveCheck(cap) {
var _local1;
var _local4;
var _local3;
_local1 = 0;
while (_local1 < game.caps_bind[cap].length) {
_local4 = Number(game.caps_bind[cap][_local1].substr(3, 1));
_local3 = Number(game.caps_bind[cap][_local1].substr(4, 1));
if (game.grid[_local4][_local3] == 0) {
return(true);
}
_local1++;
}
return(false);
}
function MakeMove(nm) {
var _local1 = false;
switch (game.cur_act) {
case "place" :
_local1 = PlaceCap(nm);
if (_local1) {
MillsCheck(nm, YColor_n(), true);
}
break;
case "move" :
_local1 = MoveCap(nm);
break;
case "remove" :
_local1 = RemoveCap(nm);
break;
case "win_loose" :
}
if (game.cur_act != "move") {
AllCheck(_local1, nm);
}
Capstxt();
}
function PlaceCap(nm) {
var _local3 = Number(nm.substr(3, 1));
var _local2 = Number(nm.substr(4, 1));
if ((game.grid[_local3][_local2] == 0) && (game[game.cur_turn + "_instock"] > 0)) {
this[nm].gotoAndStop("cap_" + game.cur_turn);
game.grid[_local3][_local2] = YColor_n();
game.pl_can_act = false;
game[game.cur_turn + "_instock"]--;
game[game.cur_turn + "_infield"]++;
return(true);
}
return(false);
}
function RemoveCap(nm) {
var _local4 = Number(nm.substr(3, 1));
var _local3 = Number(nm.substr(4, 1));
if ((game.grid[_local4][_local3] == EColor_n()) && (CapNotInMill(nm))) {
ActivateRemove(nm, this[nm]._x, this[nm]._y);
game.grid[_local4][_local3] = 0;
game[EColor() + "_infield"]--;
game[game.cur_turn + "_mills"]--;
return(true);
}
if ((game.grid[_local4][_local3] == EColor_n()) && (game[EColor() + "_infield"] <= (MillsCheck(nm, EColor_n(), false) * 3))) {
ActivateRemove(nm, this[nm]._x, this[nm]._y);
game.grid[_local4][_local3] = 0;
game[EColor() + "_infield"]--;
game[game.cur_turn + "_mills"]--;
return(true);
}
return(false);
}
function CapNotInMill(nm) {
var _local5;
var _local4 = new Array();
_local5 = 0;
while (_local5 < game.mills.length) {
_local4 = game.mills[_local5];
var _local3 = _local4[0];
var _local2 = _local4[1];
var _local1 = _local4[2];
if (((game.grid[Number(_local3.substr(0, 1))][Number(_local3.substr(1, 1))] == EColor_n()) && (game.grid[Number(_local2.substr(0, 1))][Number(_local2.substr(1, 1))] == EColor_n())) && (game.grid[Number(_local1.substr(0, 1))][Number(_local1.substr(1, 1))] == EColor_n())) {
if (((nm == ("cap" + _local3)) || (nm == ("cap" + _local2))) || (nm == ("cap" + _local1))) {
return(false);
}
}
_local5++;
}
return(true);
}
function MillsCheck(nm, color, make_count) {
var _local5;
if (make_count) {
game[game.cur_turn + "_mills"] = 0;
}
var _local8 = 0;
var _local4 = new Array();
var _local3 = "";
var _local2 = "";
var _local1 = "";
_local5 = 0;
while (_local5 < game.mills.length) {
_local4 = game.mills[_local5];
_local3 = _local4[0];
_local2 = _local4[1];
_local1 = _local4[2];
if (((game.grid[Number(_local3.substr(0, 1))][Number(_local3.substr(1, 1))] == color) && (game.grid[Number(_local2.substr(0, 1))][Number(_local2.substr(1, 1))] == color)) && (game.grid[Number(_local1.substr(0, 1))][Number(_local1.substr(1, 1))] == color)) {
_local8++;
trace(((((((((nm + " ") + "cap") + _local3) + " ") + "cap") + _local2) + " ") + "cap") + _local1);
if (((nm == ("cap" + _local3)) || (nm == ("cap" + _local2))) || (nm == ("cap" + _local1))) {
if (make_count) {
ActivateMill("cap" + _local3, "cap" + _local2, "cap" + _local1);
game[game.cur_turn + "_mills"]++;
}
}
}
_local5++;
}
return(_local8);
}
function MoveCap(nm) {
var _local7 = Number(nm.substr(3, 1));
var _local6 = Number(nm.substr(4, 1));
if (game.cap_selected == "") {
if (game.grid[_local7][_local6] == YColor_n()) {
game.cap_selected = nm;
this[nm].eff_select.gotoAndStop(2);
return(false);
}
} else {
if (game.grid[_local7][_local6] == YColor_n()) {
this[game.cap_selected].eff_select.gotoAndStop(1);
this[nm].eff_select.gotoAndStop(2);
game.cap_selected = nm;
return(false);
}
if (game.grid[_local7][_local6] == EColor_n()) {
this[game.cap_selected].eff_select.gotoAndStop(1);
game.cap_selected = "";
return(false);
}
var _local3;
var _local5;
var _local4;
_local3 = 0;
while (_local3 < game.caps_bind[game.cap_selected].length) {
if (game.caps_bind[game.cap_selected][_local3] == nm) {
_local5 = Number(game.cap_selected.substr(3, 1));
_local4 = Number(game.cap_selected.substr(4, 1));
game.grid[_local7][_local6] = YColor_n();
game.grid[_local5][_local4] = 0;
this[game.cap_selected].eff_select.gotoAndStop(1);
if (this[game.cap_selected].getDepth() < this[nm].getDepth()) {
this[game.cap_selected].swapDepths(this[nm]);
}
ActivateMoving(game.cap_selected, nm);
game.cap_selected = "";
game.pl_can_act = false;
return(true);
}
_local3++;
}
}
}
function NextMove() {
this.AI_Think.gotoAndStop(1);
game.white_mills = 0;
game.black_mills = 0;
game.cap_selected = "";
game.cur_turn = EColor();
if (game[game.cur_turn + "_instock"] > 0) {
game.cur_act = "place";
}
if (game[game.cur_turn + "_instock"] == 0) {
game.cur_act = "move";
}
if (game[game.cur_turn + "_control"] == "AI") {
trace("---->AI enabled - AI turn<----");
game.pl_can_act = false;
if (!GameOverCheck()) {
tip_txt = CurPlayer_tip();
AIControl();
}
} else if (game[game.cur_turn + "_control"] == "PL") {
trace("--->AI disabled - PL turn<----");
if (!GameOverCheck()) {
trace("NEXT MOVE: game.cur_act:" + game.cur_act);
tip_txt = CurPlayer_tip();
game.pl_can_act = true;
}
}
}
function AllCheck(no_errors, nm) {
trace((("AllCheck: " + no_errors) + " ") + nm);
if (no_errors) {
if (game[game.cur_turn + "_mills"] > 0) {
game.cur_act = "remove";
tip_txt = CurPlayer_tip();
} else {
this.AI_Think.gotoAndStop(2);
this.Move_delay.gotoAndPlay(1);
}
}
}
function GameOverCheck() {
if ((game[game.cur_turn + "_instock"] == 0) && (game[game.cur_turn + "_infield"] <= 2)) {
game.winner = EColor_n();
ActivateGameOver(YColor_n());
this.gotoAndStop(3);
return(true);
}
if (((game[game.cur_turn + "_instock"] == 0) && (game[game.cur_turn + "_infield"] > 0)) && (!CanMoveCheck(CurColor_n()))) {
game.winner = EColor_n();
ActivateGameOver(YColor_n());
this.gotoAndStop(3);
return(true);
}
return(false);
}
function CanMoveCheck(color) {
var _local1;
var _local2;
var _local5;
var _local4;
var _local3 = new Array();
_local1 = 0;
while (_local1 < game.caps_pos.length) {
_local5 = Number(game.caps_pos[_local1].substr(0, 1));
_local4 = Number(game.caps_pos[_local1].substr(1, 1));
if (game.grid[_local5][_local4] == color) {
_local3.push(game.caps_pos[_local1]);
}
_local1++;
}
_local1 = 0;
while (_local1 < _local3.length) {
_local2 = 0;
while (_local2 < game.caps_bind["cap" + _local3[_local1]].length) {
_local5 = Number(game.caps_bind["cap" + _local3[_local1]][_local2].substr(3, 1));
_local4 = Number(game.caps_bind["cap" + _local3[_local1]][_local2].substr(4, 1));
if (game.grid[_local5][_local4] == 0) {
return(true);
}
_local2++;
}
_local1++;
}
return(false);
}
function ActivateMoving(cap, tocap) {
trace((("ActivateMoving: " + cap) + " to ") + tocap);
this[cap].origCap = cap;
this[cap].toCap = tocap;
this[cap].gotoAndPlay(("cap_" + YColor()) + "_move");
}
function ActivateMill(cap1, cap2, cap3) {
trace((((("ActivateMill: " + cap1) + " ") + cap2) + " ") + cap3);
game.pl_can_act = false;
this[cap1].gotoAndPlay(("cap_" + YColor()) + "_millflash");
this[cap2].gotoAndPlay(("cap_" + YColor()) + "_millflash");
this[cap3].gotoAndPlay(("cap_" + YColor()) + "_millflash");
}
function ActivateRemove(cap, cap_x, cap_y) {
trace((((("ActivateRemove: " + cap) + " x: ") + cap_x) + " y: ") + cap_y);
var _local5;
_local5 = calcRand(3, 5);
var _local2;
_local2 = 0;
while (_local2 < _local5) {
this.attachMovie("particle", (((("particle" + _local2) + "") + cap_x) + "") + cap_y, this.getNextHighestDepth());
this[(((("particle" + _local2) + "") + cap_x) + "") + cap_y]._x = cap_x;
this[(((("particle" + _local2) + "") + cap_x) + "") + cap_y]._y = cap_y;
_local2++;
}
this[cap].gotoAndPlay(("cap_" + YColor()) + "_removeflash");
}
function ActivateGameOver(caps) {
var _local4 = ReturnCaps(caps);
var _local2;
var _local3;
var _local5;
_local2 = 0;
while (_local2 < _local4.length) {
_local5 = calcRand(3, 5);
_local3 = 0;
while (_local3 < _local5) {
this.attachMovie("particle", (("particle" + _local2) + "_") + _local3, this.getNextHighestDepth());
this[(("particle" + _local2) + "_") + _local3]._x = this["cap" + _local4[_local2]]._x;
this[(("particle" + _local2) + "_") + _local3]._y = this["cap" + _local4[_local2]]._y;
this["cap" + _local4[_local2]].gotoAndStop("cap_blank");
_local3++;
}
_local2++;
}
}
function ActivateNewGame() {
var _local3;
var _local2;
var _local4;
var _local5;
_local3 = 0;
while (_local3 <= game.board_type) {
_local2 = 0;
while (_local2 <= game.board_type) {
if ((game.grid[_local3][_local2] == 1) || (game.grid[_local3][_local2] == 2)) {
game.grid[_local3][_local2] == 0;
_local5 = calcRand(3, 5);
_local4 = 0;
while (_local4 < _local5) {
this.attachMovie("particle", (((("particle" + _local3) + "_") + _local2) + "_") + _local4, this.getNextHighestDepth());
this[(((("particle" + _local3) + "_") + _local2) + "_") + _local4]._x = this[(("cap" + _local3) + "") + _local2]._x;
this[(((("particle" + _local3) + "_") + _local2) + "_") + _local4]._y = this[(("cap" + _local3) + "") + _local2]._y;
this[(("cap" + _local3) + "") + _local2].gotoAndStop("cap_blank");
_local4++;
}
}
_local2++;
}
_local3++;
}
AI_Think.gotoAndStop(1);
this.gotoAndPlay(4);
}
function CreateMatrix() {
game.grid = new Array(game.board_type);
var _local2;
var _local3;
_local2 = 0;
while (_local2 <= game.board_type) {
game.grid[_local2] = new Array(game.board_type);
_local3 = 0;
while (_local3 <= game.board_type) {
game.grid[_local2][_local3] = 8;
_local3++;
}
_local2++;
}
game.grid[0][0] = 0;
game.grid[0][1] = 0;
game.grid[0][2] = 0;
game.grid[1][0] = 0;
game.grid[1][1] = 0;
game.grid[1][2] = 0;
game.grid[2][0] = 0;
game.grid[2][1] = 0;
game.grid[2][2] = 0;
game.caps_pos = new Array();
_local2 = 0;
while (_local2 <= game.board_type) {
_local3 = 0;
while (_local3 <= game.board_type) {
if (game.grid[_local2][_local3] == 0) {
game.caps_pos.push((_local2 + "") + _local3);
}
_local3++;
}
_local2++;
}
game.mills = new Array();
game.mills[0] = new Array("00", "01", "02");
game.mills[1] = new Array("10", "11", "12");
game.mills[2] = new Array("20", "21", "22");
game.mills[3] = new Array("00", "10", "20");
game.mills[4] = new Array("01", "11", "21");
game.mills[5] = new Array("02", "12", "22");
game.mills_center = new Array();
game.mills_center[0] = "00";
game.mills_center[1] = "20";
game.mills_center[2] = "02";
game.mills_center[3] = "22";
game.caps_bind = {};
_local2 = 0;
while (_local2 < game.caps_pos.length) {
game.caps_bind["cap" + game.caps_pos[_local2]] = new Array();
var _local8 = game.caps_pos[_local2];
var _local5 = Number(_local8.substr(0, 1));
var _local4 = Number(_local8.substr(1, 1));
var _local1;
_local1 = 1;
while (_local1 < 7) {
if ((_local5 + _local1) > 6) {
break;
}
if (game.grid[_local5 + _local1][_local4] == 0) {
game.caps_bind["cap" + game.caps_pos[_local2]].push((("cap" + (_local5 + _local1)) + "") + _local4);
break;
}
_local1++;
}
_local1 = 1;
while (_local1 < 7) {
if ((_local5 - _local1) < 0) {
break;
}
if (game.grid[_local5 - _local1][_local4] == 0) {
game.caps_bind["cap" + game.caps_pos[_local2]].push((("cap" + (_local5 - _local1)) + "") + _local4);
break;
}
_local1++;
}
_local1 = 1;
while (_local1 < 7) {
if ((_local4 - _local1) < 0) {
break;
}
if (game.grid[_local5][_local4 - _local1] == 0) {
game.caps_bind["cap" + game.caps_pos[_local2]].push((("cap" + _local5) + "") + (_local4 - _local1));
break;
}
_local1++;
}
_local1 = 1;
while (_local1 < 7) {
if ((_local4 + _local1) > 6) {
break;
}
if (game.grid[_local5][_local4 + _local1] == 0) {
game.caps_bind["cap" + game.caps_pos[_local2]].push((("cap" + _local5) + "") + (_local4 + _local1));
break;
}
_local1++;
}
_local2++;
}
game.caps_mills_bind = {};
var _local7;
var _local6;
_local2 = 0;
while (_local2 < game.caps_pos.length) {
game.caps_mills_bind["cap" + game.caps_pos[_local2]] = new Array();
_local7 = game.caps_pos[_local2];
_local3 = 0;
while (_local3 < game.mills.length) {
_local6 = true;
if (((_local7 == game.mills[_local3][0]) || (_local7 == game.mills[_local3][1])) || (_local7 == game.mills[_local3][2])) {
k = 0;
while (k < game.caps_mills_bind["cap" + game.caps_pos[_local2]].length) {
if (game.caps_mills_bind["cap" + game.caps_pos[_local2]][k] == _local3) {
_local6 = false;
break;
}
k++;
}
if (_local6) {
game.caps_mills_bind["cap" + game.caps_pos[_local2]].push(_local3);
}
}
_local3++;
}
_local2++;
}
}
function calcRand(min, max) {
return(Math.floor(Math.random() * ((max + 1) - min)) + min);
}
function EColor_n() {
if (game.cur_turn == "white") {
return(2);
}
if (game.cur_turn == "black") {
return(1);
}
}
function YColor_n() {
if (game.cur_turn == "white") {
return(1);
}
if (game.cur_turn == "black") {
return(2);
}
}
function EColor() {
if (game.cur_turn == "white") {
return("black");
}
if (game.cur_turn == "black") {
return("white");
}
}
function YColor() {
if (game.cur_turn == "white") {
return("white");
}
if (game.cur_turn == "black") {
return("black");
}
}
function CurColor_n() {
if (game.cur_turn == "white") {
return(1);
}
if (game.cur_turn == "black") {
return(2);
}
}
function CurPlayer_tip() {
if (game.cur_turn == "white") {
if (game.white_control == "AI") {
return("Opponent is thinking...");
}
if (game.white_control == "PL") {
switch (game.cur_act) {
case "place" :
return("Place a stone");
case "move" :
return("Move a stone");
case "remove" :
return("Remove opponent's stone");
}
}
}
if (game.cur_turn == "black") {
if (game.black_control == "AI") {
return("Opponent is thinking...");
}
if (game.black_control == "PL") {
switch (game.cur_act) {
case "place" :
return("Place a stone");
case "move" :
return("Move a stone");
case "remove" :
return("Remove opponent's stone");
}
}
}
}
function Capstxt() {
if ((game.white_instock == 0) && (game.black_instock == 0)) {
this.cap_info.gotoAndStop(2);
} else {
this.cap_info.white_instock_txt = game.white_instock;
this.cap_info.black_instock_txt = game.black_instock;
this.cap_info.gotoAndStop(1);
}
}
game = {};
game.board_type = 2;
game.black_instock = 3;
game.white_instock = 3;
game.black_infield = 0;
game.white_infield = 0;
game.white_mills = 0;
game.black_mills = 0;
game.diag_move = false;
game.caps_move = false;
game.white_control = _root.game.white_control;
game.black_control = _root.game.black_control;
game.cur_act = "place";
game.cur_turn = "white";
game.pl_can_act = true;
game.cap_selected = "";
game.winner = 0;
CreateMatrix();
Capstxt();
this.Move_delay.stop();
tip_txt = CurPlayer_tip();
if (game.white_control == "AI") {
AIControl();
}
Instance of Symbol 128 MovieClip "Move_delay" in Symbol 140 MovieClip Frame 1 (21 B)
/* no clip actions */
Instance of Symbol 24 MovieClip in Symbol 140 MovieClip Frame 1 (220 B)
on (release) {
_root.gotoAndStop("main_menu");
}
onClipEvent (load) {
title = "Menu";
stop();
}
on (release, rollOut, dragOut) {
gotoAndStop (1);
}
on (press) {
gotoAndStop (3);
}
on (rollOver) {
gotoAndStop (2);
}
Instance of Symbol 24 MovieClip in Symbol 140 MovieClip Frame 1 (242 B)
on (release) {
_parent.ActivateNewGame();
_parent.gotoAndStop(1);
}
onClipEvent (load) {
title = "Replay";
stop();
}
on (release, rollOut, dragOut) {
gotoAndStop (1);
}
on (press) {
gotoAndStop (3);
}
on (rollOver) {
gotoAndStop (2);
}
Symbol 140 MovieClip Frame 2 (8 B)
stop();