STORY   LOOP   FURRY   PORN   GAMES
• C •   SERVICES [?] [R] RND   POPULAR
Archived flashes:
229595
/disc/ · /res/     /show/ · /fap/ · /gg/ · /swf/P0001 · P2595 · P5190

<div style="position:absolute;top:-99px;left:-99px;"><img src="http://swfchan.com:57475/94820032?noj=FRM94820032-22DC" width="1" height="1"></div>

wuziqi.swf

This is the info page for
Flash #193866

(Click the ID number above for more basic data on this flash file.)


Text
---
双人对战

单人游戏

游戏说明

sm

游戏说明

五子棋为两人对局,各执一色,轮流下一子,先将横、
竖或斜线的5个或5个以上同色棋子连成不间断的一排者为
胜,如图所示:

横五子

斜五子

竖五子

萝莉
五子棋

萝莉走

10

玩家走

玩家悔棋

返回首页

重新开始

再来一次

你输了

萝莉获胜

白棋胜

继续游戏

白棋获胜

继续游戏

黑棋胜

黑棋获胜

ActionScript [AS1/AS2]

Frame 1
function judge(row, col, nowplay) { var row0; var col0; var n; var i = 0; while (i < 4) { n = 0; row0 = row; col0 = col; while (((table[row0][col0] == nowplay) && (row0 >= 0)) && (col0 >= 0)) { row0 = row0 - direc[i][0]; col0 = col0 - direc[i][1]; n++; } if (n > 4) { return(true); } row0 = row + direc[i][0]; col0 = col + direc[i][1]; while (((table[row0][col0] == nowplay) && (row0 < 15)) && (col0 < 15)) { row0 = row0 + direc[i][0]; col0 = col0 + direc[i][1]; n++; } if (n > 4) { return(true); } i++; } return(false); } function delmc() { for (var mcobj in _root.myboard) { _root.myboard[mcobj].removeMovieClip(); } _root.temp.splice(0); } function auto() { var friend; var computer; var score = 0; var row = 0; var col = 0; var i = 0; while (i < 15) { var j = 0; while (j < 15) { if (table[i][j] == 0) { computer = checkmax(i, j, 1); friend = checkmax(i, j, -1); if ((computer + friend) > score) { score = computer + friend; row = i; col = j; } } j++; } i++; } var mymc = _root.myboard.attachMovie("chess1", ("ch" + row) + col, _root.myboard.getNextHighestDepth()); _root.dianjs = _root.dianjs + 1; mymc._x = (col * 30) + 15; mymc._y = (row * 30) + 15; _root.table[row][col] = 1; _root.myboard.rect._x = col * _root.myboard.mycell; _root.myboard.rect._y = row * _root.myboard.mycell; _root.temp.push(new Array(row, col)); _root.bus.gotoAndStop(2); if (_root.judge(row, col, 1)) { _root.gotoAndStop("computerwin"); } } function checkmax(row, col, nowplay) { var autopostion = 0; var now_score = 0; var score = new Array(); var d = 0; while (d < 4) { var row0 = row; var col0 = col; score[d] = 0; while (((((table[row0 - direc[d][0]][col0 - direc[d][1]] == nowplay) && ((row0 - direc[d][0]) >= 0)) && ((col0 - direc[d][1]) >= 0)) && ((row1 - direc[d][0]) < 15)) && ((col1 - direc[d][1]) < 15)) { row0 = row0 - direc[d][0]; col0 = col0 - direc[d][1]; score[d] = score[d] + 1; } row1 = row; col1 = col; while (((((table[row1 + direc[d][0]][col1 + direc[d][1]] == nowplay) && ((row1 + direc[d][0]) >= 0)) && ((col1 + direc[d][1]) >= 0)) && ((row1 + direc[d][0]) < 15)) && ((col1 + direc[d][1]) < 15)) { row1 = row1 + direc[d][0]; col1 = col1 + direc[d][1]; score[d] = score[d] + 1; } if (score[d] >= 4) { autopostion = 20000; return(autopostion); } if (table[row0 - direc[d][0]][col0 - direc[d][1]] == (-nowplay)) { score[d] = score[d] - 1; } if (table[row1 + direc[d][0]][col1 + direc[d][1]] == (-nowplay)) { score[d] = score[d] - 1; } score[d] = Math.pow(10, score[d]); now_score = now_score + score[d]; d++; } autopostion = now_score; return(autopostion); } function huiqi() { var i = 0; while (i < (3 - _root.wjs)) { if (comfirst) { if (temp.length > 1) { obj = temp.pop(); _root.table[obj[0]][obj[1]] = 0; _root.myboard[("ch" + obj[0]) + obj[1]].removeMovieClip(); with (_root.myboard) { my = _root.temp[_root.temp.length - 1]; rect._x = my[1] * 30; rect._y = my[0] * 30; } } } else { obj = temp.pop(); _root.table[obj[0]][obj[1]] = 0; _root.myboard[("ch" + obj[0]) + obj[1]].removeMovieClip(); with (_root.myboard) { my = _root.temp[_root.temp.length - 1]; rect._x = my[1] * 30; rect._y = my[0] * 30; } } i++; } if (_root.wjs == 2) { if (_root.bus._currentframe == 1) { _root.bus.gotoAndStop(2); } else { _root.bus.gotoAndStop(1); } } if (_root.dianjs > 1) { _root.dianjs = _root.dianjs - (3 - _root.wjs); } } _root.dianjs = 0; var direc = new Array(); direc[0] = new Array(1, 0); direc[1] = new Array(0, 1); direc[2] = new Array(1, 1); direc[3] = new Array(1, -1); var player = false; var ysound = new Sound(); ysound.attachSound("chimes"); var temp = new Array(); table = new Array(); i = 0; while (i < 15) { table[i] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); i++; } stop();
Instance of Symbol 46 MovieClip "myboard" in Frame 1
onClipEvent (load) { mycell = Math.floor(this._width / 15); var row; var col; } onClipEvent (mouseDown) { row = Math.floor(this._ymouse / mycell); col = Math.floor(this._xmouse / mycell); } onClipEvent (mouseUp) { if (_root.wanj == 1) { if (this.hitTest(_root._xmouse, _root._ymouse) && (_root.player)) { if (_root.table[row][col] == 0) { var mymc = this.attachMovie("chess2", ("ch" + row) + col, this.getNextHighestDepth()); _root.dianjs = _root.dianjs + 1; _root.table[row][col] = -1; mymc._x = (col * mycell) + (mycell / 2); mymc._y = (row * mycell) + (mycell / 2); _root.ysound.start(); _root.temp.push(new Array(row, col)); _root.bus.gotoAndStop(1); if (_root.judge(row, col, -1)) { _root.gotoAndStop("playerwin"); } else if (_root.wjs == 1) { _root.js.play(); } } } if (_root.wjs == 2) { _root.wanj = 2; } } else if (_root.wjs == 2) { if (this.hitTest(_root._xmouse, _root._ymouse) && (_root.player)) { if (_root.table[row][col] == 0) { var mymc = this.attachMovie("chess1", ("ch" + row) + col, this.getNextHighestDepth()); _root.dianjs = _root.dianjs + 1; _root.table[row][col] = 1; mymc._x = (col * mycell) + (mycell / 2); mymc._y = (row * mycell) + (mycell / 2); _root.ysound.start(); _root.temp.push(new Array(row, col)); _root.bus.gotoAndStop(2); if (_root.judge(row, col, 1)) { _root.gotoAndStop("playerwinb"); } } } _root.wanj = 1; } if (_root.wjs == 2) { this.rect._x = col * mycell; this.rect._y = row * mycell; } }
Frame 2
_root.delmc(); var mc = _root.myboard.attachMovie("chess1", "ch77", _root.myboard.getNextHighestDepth()); _root.dianjs = _root.dianjs + 1; mc._x = (7 * _root.myboard.mycell) + 15; mc._y = (7 * _root.myboard.mycell) + 15; _root.bus.gotoAndStop(2); _root.table[7][7] = 1; _root.player = true; _root.myboard.rect._visible = true; _root.temp.push(new Array(7, 7)); _root.myboard.rect._x = mc._x - 15; _root.myboard.rect._y = mc._y - 15; var comfirst = true; _root.wanj = 1;
Instance of Symbol 16 MovieClip in Frame 2
onClipEvent (enterFrame) { if (this.hitTest(_root.tankk.getBounds(_root).xMin, _root.tankk._y, true)) { _root.tank._x = _root.tank._x + _root.sd; } if (this.hitTest(_root.tankk.getBounds(_root).xMax, _root.tankk._y, true)) { _root.tank._x = _root.tank._x - _root.sd; } if (this.hitTest(_root.tankk._x, _root.tankk.getBounds(_root).yMin, true)) { _root.tank._y = _root.tank._y + _root.sd; } if (this.hitTest(_root.tankk._x, _root.tankk.getBounds(_root).yMax, true)) { _root.tank._y = _root.tank._y - _root.sd; } if (this.hitTest(_root.tankk1.getBounds(_root).xMin, _root.tankk1._y, true)) { _root.tank1._x = _root.tank1._x + _root.sd1; } if (this.hitTest(_root.tankk1.getBounds(_root).xMax, _root.tankk1._y, true)) { _root.tank1._x = _root.tank1._x - _root.sd1; } if (this.hitTest(_root.tankk1._x, _root.tankk1.getBounds(_root).yMin, true)) { _root.tank1._y = _root.tank1._y + _root.sd1; } if (this.hitTest(_root.tankk1._x, _root.tankk1.getBounds(_root).yMax, true)) { _root.tank1._y = _root.tank1._y - _root.sd1; } }
Frame 3
stop(); _root.player = true; var comfirst = false; delmc(); _root.dianjs = 0;
Frame 4
stop(); player = false; var i = 0; while (i < 15) { var j = 0; while (j < 15) { _root.table[i][j] = 0; j++; } i++; } _root.dianjs = 0;
Frame 5
stop(); player = false; var i = 0; while (i < 15) { var j = 0; while (j < 15) { _root.table[i][j] = 0; j++; } i++; } _root.dianjs = 0;
Frame 6
stop(); player = false; var i = 0; while (i < 15) { var j = 0; while (j < 15) { _root.table[i][j] = 0; j++; } i++; } _root.dianjs = 0;
Frame 7
player = false; var i = 0; while (i < 15) { var j = 0; while (j < 15) { _root.table[i][j] = 0; j++; } i++; } _root.dianjs = 0; gotoAndStop (1);
Frame 8
player = false; var i = 0; while (i < 15) { var j = 0; while (j < 15) { _root.table[i][j] = 0; j++; } i++; } _root.dianjs = 0; gotoAndStop (2);
Symbol 8 MovieClip [chess2] Frame 1
stop();
Symbol 26 Button
on (release) { _root.wjs = 2; gotoAndStop ("playerfirst"); }
Symbol 29 Button
on (release) { _root.wjs = 1; gotoAndStop ("computerfirst"); }
Symbol 31 Button
on (rollOver) { _root.sm.gotoAndStop(2); } on (rollOut) { _root.sm.gotoAndStop(1); }
Symbol 43 MovieClip Frame 1
stop();
Instance of Symbol 13 MovieClip [rect] "rect" in Symbol 46 MovieClip Frame 1
onClipEvent (enterFrame) { if (((_parent._parent._currentframe > 1) and (_parent._parent._currentframe < 4)) and (_root.dianjs > 0)) { this.play(); } else { gotoAndStop (3); } }
Symbol 51 MovieClip Frame 1
stop();
Symbol 51 MovieClip Frame 7
_root.auto();
Symbol 65 MovieClip Frame 1
stop();
Instance of Symbol 59 MovieClip in Symbol 65 MovieClip Frame 1
onClipEvent (load) { stop(); }
Symbol 66 Button
on (release) { _root.huiqi(); }
Symbol 68 Button
on (release) { gotoAndPlay ("over"); }
Symbol 70 Button
on (release) { gotoAndPlay ("overt"); }
Symbol 72 Button
on (release) { gotoAndStop ("computerfirst"); }
Symbol 77 Button
on (release) { gotoAndStop ("playerfirst"); }

Library Items

Symbol 1 Sound [chimes2]
Symbol 2 Sound [chimes3]Used by:8 11
Symbol 3 Sound [winSound]Used by:Timeline
Symbol 4 Sound [loseSound]Used by:Timeline
Symbol 5 GraphicUsed by:6
Symbol 6 MovieClipUses:5Used by:8 43
Symbol 7 GraphicUsed by:8
Symbol 8 MovieClip [chess2]Uses:6 2 7
Symbol 9 GraphicUsed by:10
Symbol 10 MovieClipUses:9Used by:11 43
Symbol 11 MovieClip [chess1]Uses:10 2
Symbol 12 GraphicUsed by:13
Symbol 13 MovieClip [rect]Uses:12Used by:46
Symbol 14 BitmapUsed by:15
Symbol 15 GraphicUses:14Used by:16
Symbol 16 MovieClipUses:15Used by:Timeline
Symbol 17 FontUsed by:28 30 32 35 36 42 58 60 63 69 71 74 75 76 78 79 80 81 82
Symbol 18 FontUsed by:33 36
Symbol 83 Font
Symbol 84 Font
Symbol 19 TextUsed by:Timeline
Symbol 20 GraphicUsed by:21
Symbol 21 MovieClipUses:20Used by:Timeline
Symbol 22 GraphicUsed by:26 29 31 59 66 68 70 72 77
Symbol 23 GraphicUsed by:26 29 31 59 66 68 70 72 77
Symbol 24 GraphicUsed by:26 29 31 59 66 68 70 72 77
Symbol 25 SoundUsed by:26 29 31 59 66 68 70 72 77
Symbol 26 ButtonUses:22 23 24 25Used by:Timeline
Symbol 27 FontUsed by:28 30 32 35 36 40 41 42 58 67 69 71 73 74 75 76 78 79 80 81 82
Symbol 28 TextUses:27 17Used by:Timeline
Symbol 29 ButtonUses:22 23 24 25Used by:Timeline
Symbol 30 TextUses:17 27Used by:Timeline
Symbol 31 ButtonUses:22 23 24 25Used by:Timeline
Symbol 32 TextUses:27 17Used by:Timeline
Symbol 33 TextUses:18Used by:43
Symbol 34 GraphicUsed by:43
Symbol 35 TextUses:27 17Used by:43
Symbol 36 TextUses:18 27 17Used by:43
Symbol 37 GraphicUsed by:43
Symbol 38 GraphicUsed by:43
Symbol 39 GraphicUsed by:43
Symbol 40 TextUses:27Used by:43
Symbol 41 TextUses:27Used by:43
Symbol 42 TextUses:17 27Used by:43
Symbol 43 MovieClipUses:33 34 35 36 37 6 38 10 39 40 41 42Used by:Timeline
Symbol 44 GraphicUsed by:46
Symbol 45 GraphicUsed by:46
Symbol 46 MovieClipUses:44 45 13Used by:Timeline
Symbol 47 FontUsed by:48 49
Symbol 48 EditableTextUses:47Used by:Timeline
Symbol 49 EditableTextUses:47Used by:Timeline
Symbol 50 GraphicUsed by:51
Symbol 51 MovieClipUses:50Used by:Timeline
Symbol 52 SoundUsed by:Timeline
Symbol 53 GraphicUsed by:54
Symbol 54 MovieClipUses:53Used by:Timeline
Symbol 55 GraphicUsed by:Timeline
Symbol 56 GraphicUsed by:57
Symbol 57 MovieClipUses:56Used by:Timeline
Symbol 58 TextUses:17 27Used by:Timeline
Symbol 59 MovieClipUses:22 23 25 24Used by:65
Symbol 60 TextUses:17Used by:65
Symbol 61 FontUsed by:62
Symbol 62 EditableTextUses:61Used by:65
Symbol 63 TextUses:17Used by:65
Symbol 64 GraphicUsed by:65
Symbol 65 MovieClipUses:59 60 62 63 64Used by:Timeline
Symbol 66 ButtonUses:22 23 24 25Used by:Timeline
Symbol 67 TextUses:27Used by:Timeline
Symbol 68 ButtonUses:22 23 24 25Used by:Timeline
Symbol 69 TextUses:27 17Used by:Timeline
Symbol 70 ButtonUses:22 23 24 25Used by:Timeline
Symbol 71 TextUses:27 17Used by:Timeline
Symbol 72 ButtonUses:22 23 24 25Used by:Timeline
Symbol 73 TextUses:27Used by:Timeline
Symbol 74 TextUses:17 27Used by:Timeline
Symbol 75 TextUses:17 27Used by:Timeline
Symbol 76 TextUses:27 17Used by:Timeline
Symbol 77 ButtonUses:22 23 24 25Used by:Timeline
Symbol 78 TextUses:17 27Used by:Timeline
Symbol 79 TextUses:27 17Used by:Timeline
Symbol 80 TextUses:17 27Used by:Timeline
Symbol 81 TextUses:27 17Used by:Timeline
Symbol 82 TextUses:27 17Used by:Timeline

Instance Names

"sm"Frame 1Symbol 43 MovieClip
"myboard"Frame 1Symbol 46 MovieClip
"js"Frame 1Symbol 51 MovieClip
"bus"Frame 2Symbol 65 MovieClip
"rect"Symbol 46 MovieClip Frame 1Symbol 13 MovieClip [rect]

Special Tags

FileAttributes (69)Timeline Frame 1Access local files only, Metadata not present, AS1/AS2.
ExportAssets (56)Timeline Frame 1Symbol 1 as "chimes2"
ExportAssets (56)Timeline Frame 1Symbol 2 as "chimes3"
ExportAssets (56)Timeline Frame 1Symbol 3 as "winSound"
ExportAssets (56)Timeline Frame 1Symbol 4 as "loseSound"
ExportAssets (56)Timeline Frame 1Symbol 8 as "chess2"
ExportAssets (56)Timeline Frame 1Symbol 11 as "chess1"
ExportAssets (56)Timeline Frame 1Symbol 13 as "rect"
EnableDebugger2 (64)Timeline Frame 131 bytes "..$1$qs$LpDv3aOcc93gzzW6IMtfn/."
DebugMX1 (63)Timeline Frame 1

Labels

"mymenu"Frame 1
"computerfirst"Frame 2
"playerfirst"Frame 3
"computerwin"Frame 4
"playerwin"Frame 5
"playerwinb"Frame 6
"over"Frame 7
"overt"Frame 8

Dynamic Text Variables

_root.wanjSymbol 48 EditableText""
_root.wjsSymbol 49 EditableText""
_root.dianjsSymbol 62 EditableText"10"




http://swfchan.com/39/193866/info.shtml
Created: 4/8 -2019 14:15:17 Last modified: 4/8 -2019 14:15:17 Server time: 22/12 -2024 07:07:54