This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
Doric/doric-h5/dist/Gobang.js.map
2019-12-26 11:26:11 +08:00

1 line
56 KiB
Plaintext

{"version":3,"file":"Gobang.js","sources":["../../build/src/utils.js","../../build/src/Gobang.js"],"sourcesContent":["import { Color, text, Stack, Text, layoutConfig, LayoutSpec, gravity, pullable, stack, image, log } from \"doric\";\nexport const icon_refresh = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAev0lEQVR4Xu2dC3gb5ZX+3zOyHZpkAWtkJ2mhF/qntAXKpnS3W2i5haZNoEAod0iskROgFEi5LCSSUtRaIwfCtrQUaCDWyAG6EEgXCFDuARooLOWyS8k+3XYJWUoJsSSHhHCxrTn7jJ30T0Ks65mRZH16Hj+56Pvec85v5vU31+8jqI8ioAiMSoAUG0VAERidgDKI2jsUgTwElEHU7qEIKIOofUARKI+AGkHK46Z6NQgBZZAG2dCqzPIIKIOUx62iXgs23draNPTuZHDTpGKFWOMB8jW9uXXLbht+uvcp7xXbT7WrjIAySGX8duh9+f8s3aN595aprPEksDYJzp82JoMwCaBJAE8a/jujpbKw/DYYG6DRm8zYQMAGEL3JNjZohA2D9MGzV/rPebuyGPXVO5ztnUFsT2fmfYhoPwDOz6sAvwrQegZeh910Y6Jt9pulVKYMUgqtD7UNv3XTJK2paarNPJWIpoLxZRA+W6acG92eB3g12Xiiadxuz8R2PyPtRpBa0IykrVtAOLNQLgz8FcCNLeOwNDbR2FCovfO9MkgxlADE+q09B4d4BjSaRaCvMXivIrvWSrOnifBbtu1n+WMtzyQmlPabtFaK2DmPSMbiUnMj4Nm4bvxTMf2UQfJQWri593O+IZ7GzMcAcH7G0udpEO4bGsCqKycbL9djYdFM6icMvqic3AlYEteNywr1VQbZidCirHVgjnGiBkxj4BuFAI6R7x8AY1UzNd8T08/6Sz3UFM2kOhm8rJJcmXl2IhC6JZ+GMsi2w6chm2Yx2yeC6NhKoNd5360gugfAqu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JtfFV+IwP8BVqM4X2oi534AAAAASUVORK5CYII=';\nexport const colors = [\n \"#70a1ff\",\n \"#7bed9f\",\n \"#ff6b81\",\n \"#a4b0be\",\n \"#f0932b\",\n \"#eb4d4b\",\n \"#6ab04c\",\n \"#e056fd\",\n \"#686de0\",\n \"#30336b\",\n].map(e => Color.parse(e));\nexport function label(str) {\n return text({\n text: str,\n textSize: 16,\n });\n}\nexport function box(idx = 0) {\n return (new Stack).also(it => {\n it.width = it.height = 20;\n it.backgroundColor = colors[idx || 0];\n });\n}\nexport function boxStr(str, idx = 0) {\n return (new Text).also(it => {\n it.width = it.height = 20;\n it.text = str;\n it.textColor = Color.WHITE;\n it.backgroundColor = colors[idx || 0];\n });\n}\nexport function title(str) {\n return text({\n text: str,\n layoutConfig: layoutConfig().configWidth(LayoutSpec.MOST),\n textSize: 30,\n textColor: Color.WHITE,\n backgroundColor: colors[1],\n textAlignment: gravity().center(),\n height: 50,\n });\n}\nexport function rotatedArrow() {\n let refreshImage;\n return pullable(stack([\n image({\n layoutConfig: layoutConfig().just().configMargin({ top: 50, bottom: 10, }),\n width: 30,\n height: 30,\n imageBase64: icon_refresh,\n }).also(v => refreshImage = v),\n ]), {\n startAnimation: () => {\n log('startAnimation');\n },\n stopAnimation: () => {\n log('stopAnimation');\n },\n setPullingDistance: (distance) => {\n refreshImage.rotation = distance / 30;\n },\n });\n}\n//# sourceMappingURL=utils.js.map","var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nimport { Stack, hlayout, Color, stack, layoutConfig, LayoutSpec, vlayout, ViewHolder, ViewModel, VMPanel, scroller, modal, text, gravity, Gravity, popover, navbar } from \"doric\";\nimport { colors } from \"./utils\";\nvar State;\n(function (State) {\n State[State[\"Unspecified\"] = 0] = \"Unspecified\";\n State[State[\"BLACK\"] = 1] = \"BLACK\";\n State[State[\"WHITE\"] = 2] = \"WHITE\";\n})(State || (State = {}));\nconst count = 13;\nclass AIComputer {\n constructor(matrix) {\n this.wins = [];\n this.winCount = 0;\n this.matrix = matrix;\n for (let y = 0; y < count; y++) {\n for (let x = 0; x < count - 4; x++) {\n this.wins.push([]);\n for (let k = 0; k < 5; k++) {\n this.wins[this.winCount].push({\n x: x + k,\n y,\n });\n }\n this.winCount++;\n }\n }\n for (let x = 0; x < count; x++) {\n for (let y = 0; y < count - 4; y++) {\n this.wins.push([]);\n for (let k = 0; k < 5; k++) {\n this.wins[this.winCount].push({\n x,\n y: y + k,\n });\n }\n this.winCount++;\n }\n }\n for (let x = 0; x < count - 4; x++) {\n for (let y = 0; y < count - 4; y++) {\n this.wins.push([]);\n for (let k = 0; k < 5; k++) {\n this.wins[this.winCount].push({\n x: x + k,\n y: y + k,\n });\n }\n this.winCount++;\n }\n }\n for (let x = 0; x < count - 4; x++) {\n for (let y = count - 1; y > 3; y--) {\n this.wins.push([]);\n for (let k = 0; k < 5; k++) {\n this.wins[this.winCount].push({\n x: x + k,\n y: y - k,\n });\n }\n this.winCount++;\n }\n }\n }\n get blackWins() {\n return this.wins.map((win) => {\n let idx = 0;\n for (let e of win) {\n switch (this.matrix.get(e.x + e.y * count)) {\n case State.BLACK:\n idx++;\n break;\n case State.WHITE:\n return 0;\n default:\n break;\n }\n }\n return idx;\n });\n }\n get whiteWins() {\n return this.wins.map((win) => {\n let idx = 0;\n for (let e of win) {\n switch (this.matrix.get(e.x + e.y * count)) {\n case State.WHITE:\n idx++;\n break;\n case State.BLACK:\n return 0;\n default:\n break;\n }\n }\n return idx;\n });\n }\n compute(matrix, role) {\n const myScore = new Array(matrix.length).fill(0);\n const rivalScore = new Array(matrix.length).fill(0);\n const myWins = role === State.BLACK ? this.blackWins : this.whiteWins;\n const rivalWins = role === State.BLACK ? this.whiteWins : this.blackWins;\n let max = 0;\n let retIdx = 0;\n matrix.forEach((state, idx) => {\n if (state != State.Unspecified) {\n return;\n }\n this.wins.forEach((e, winIdx) => {\n if (e.filter(e => (e.x + e.y * count) === idx).length === 0) {\n return;\n }\n switch (rivalWins[winIdx]) {\n case 1:\n rivalScore[idx] += 1;\n break;\n case 2:\n rivalScore[idx] += 10;\n break;\n case 3:\n rivalScore[idx] += 100;\n break;\n case 4:\n rivalScore[idx] += 10000;\n break;\n default:\n break;\n }\n switch (myWins[winIdx]) {\n case 1:\n myScore[idx] += 2;\n break;\n case 2:\n myScore[idx] += 20;\n break;\n case 3:\n myScore[idx] += 200;\n break;\n case 4:\n myScore[idx] += 20000;\n break;\n default:\n break;\n }\n });\n if (rivalScore[idx] > max) {\n max = rivalScore[idx];\n retIdx = idx;\n }\n else if (rivalScore[idx] == max) {\n if (myScore[idx] > myScore[retIdx]) {\n retIdx = idx;\n }\n }\n if (myScore[idx] > max) {\n max = myScore[idx];\n retIdx = idx;\n }\n else if (myScore[idx] == max) {\n if (rivalScore[idx] > rivalScore[retIdx]) {\n retIdx = idx;\n }\n }\n });\n return retIdx;\n }\n}\nconst lineColor = Color.BLACK;\nfunction columLine() {\n return (new Stack).apply({\n layoutConfig: layoutConfig().most().configWidth(LayoutSpec.JUST),\n width: 1,\n backgroundColor: lineColor,\n });\n}\nfunction rowLine() {\n return (new Stack).apply({\n layoutConfig: layoutConfig().most().configHeight(LayoutSpec.JUST),\n height: 1,\n backgroundColor: lineColor,\n });\n}\nfunction pointer(size) {\n return (new Stack).apply({\n layoutConfig: layoutConfig().just(),\n width: size,\n height: size,\n });\n}\nvar GameMode;\n(function (GameMode) {\n GameMode[GameMode[\"P2P\"] = 0] = \"P2P\";\n GameMode[GameMode[\"P2C\"] = 1] = \"P2C\";\n GameMode[GameMode[\"C2P\"] = 2] = \"C2P\";\n})(GameMode || (GameMode = {}));\nclass GoBangVH extends ViewHolder {\n constructor() {\n super(...arguments);\n this.gap = 0;\n this.targetZone = [];\n }\n build(root) {\n this.root = root;\n }\n actualBuild(state) {\n const boardSize = state.gap * (state.count - 1);\n const gap = state.gap;\n const borderWidth = gap;\n this.gap = state.gap;\n scroller(vlayout([\n text({\n text: \"五子棋\",\n layoutConfig: layoutConfig().configWidth(LayoutSpec.MOST),\n textSize: 30,\n textColor: Color.WHITE,\n backgroundColor: colors[0],\n textAlignment: gravity().center(),\n height: 50,\n }),\n stack([\n stack([\n ...(new Array(count - 2)).fill(0).map((_, idx) => {\n return columLine().also(v => {\n v.left = (idx + 1) * gap;\n });\n }),\n ...(new Array(count - 2)).fill(0).map((_, idx) => {\n return rowLine().also(v => {\n v.top = (idx + 1) * gap;\n });\n }),\n ])\n .apply({\n layoutConfig: layoutConfig().just()\n .configMargin({ top: borderWidth, left: borderWidth }),\n width: boardSize,\n height: boardSize,\n border: {\n width: 1,\n color: lineColor,\n },\n }),\n ...this.targetZone = (new Array(count * count)).fill(0).map((_, idx) => {\n const row = Math.floor(idx / count);\n const colum = idx % count;\n return pointer(gap).also(v => {\n v.top = (row - 0.5) * gap + borderWidth;\n v.left = (colum - 0.5) * gap + borderWidth;\n });\n }),\n ]).apply({\n layoutConfig: layoutConfig().just(),\n width: boardSize + 2 * borderWidth,\n height: boardSize + 2 * borderWidth,\n backgroundColor: Color.parse(\"#E6B080\"),\n }),\n this.gameMode = text({\n text: \"游戏模式\",\n textSize: 20,\n textColor: Color.WHITE,\n layoutConfig: layoutConfig().most().configHeight(LayoutSpec.JUST),\n height: 50,\n backgroundColor: colors[8],\n }),\n hlayout([\n this.currentRole = text({\n text: \"当前:\",\n textSize: 20,\n textColor: Color.WHITE,\n layoutConfig: layoutConfig().just().configWeight(1),\n height: 50,\n backgroundColor: colors[1],\n }),\n this.result = text({\n text: \"获胜方:\",\n textSize: 20,\n textColor: Color.WHITE,\n layoutConfig: layoutConfig().just().configWeight(1),\n height: 50,\n backgroundColor: colors[2],\n }),\n ]).apply({\n layoutConfig: layoutConfig().fit().configWidth(LayoutSpec.MOST),\n }),\n this.assistant = text({\n text: \"提示\",\n textSize: 20,\n textColor: Color.WHITE,\n layoutConfig: layoutConfig().just().configWidth(LayoutSpec.MOST),\n height: 50,\n backgroundColor: colors[3],\n }),\n ])\n .apply({\n layoutConfig: layoutConfig().fit(),\n backgroundColor: Color.parse('#ecf0f1'),\n })).in(this.root);\n }\n}\nclass GoBangVM extends ViewModel {\n onAttached(state, vh) {\n if (!this.computer) {\n this.computer = new AIComputer(state.matrix);\n }\n vh.actualBuild(state);\n vh.targetZone.forEach((e, idx) => {\n e.onClick = () => {\n if (state.gameState !== 'idle') {\n return;\n }\n const zoneState = state.matrix.get(idx);\n if (zoneState === State.BLACK || zoneState === State.WHITE) {\n modal(context).toast('This position had been token.');\n return;\n }\n if (state.anchor === undefined || state.anchor != idx) {\n this.updateState(it => {\n it.anchor = idx;\n });\n }\n else {\n this.updateState(it => {\n if (it.role === 'black') {\n it.matrix.set(idx, State.BLACK);\n it.role = 'white';\n }\n else {\n it.matrix.set(idx, State.WHITE);\n it.role = 'black';\n }\n it.anchor = undefined;\n if (this.checkResult(idx)) {\n modal(context).toast(`恭喜获胜方${it.role === 'white' ? \"黑方\" : \"白方\"}`);\n it.gameState = it.role === 'white' ? 'blackWin' : 'whiteWin';\n }\n else {\n if (it.role === 'black' && it.gameMode === GameMode.C2P) {\n setTimeout(() => {\n this.computeNextStep(it);\n }, 0);\n }\n else if (it.role === 'white' && it.gameMode === GameMode.P2C) {\n setTimeout(() => {\n this.computeNextStep(it);\n }, 0);\n }\n }\n });\n }\n };\n });\n vh.gameMode.onClick = () => {\n popover(context).show(vlayout([\n ...[\n {\n label: \"黑方:人 白方:人\",\n mode: GameMode.P2P,\n },\n {\n label: \"黑方:人 白方:机\",\n mode: GameMode.P2C,\n },\n {\n label: \"黑方:机 白方:人\",\n mode: GameMode.C2P,\n },\n ].map((e) => text({\n text: e.label,\n textSize: 20,\n textColor: Color.WHITE,\n layoutConfig: layoutConfig().just(),\n height: 50,\n width: 300,\n backgroundColor: (state.gameMode === e.mode) ? Color.parse('#636e72') : Color.parse('#b2bec3'),\n onClick: () => {\n this.updateState(s => {\n s.gameMode = e.mode;\n this.reset(s);\n });\n popover(context).dismiss();\n },\n }))\n ])\n .apply({\n layoutConfig: layoutConfig().most(),\n onClick: () => {\n popover(context).dismiss();\n },\n gravity: Gravity.Center,\n }));\n };\n vh.result.onClick = () => {\n switch (state.gameState) {\n case \"idle\":\n this.updateState(state => {\n this.reset(state);\n });\n break;\n case \"blackWin\":\n case \"whiteWin\":\n break;\n }\n };\n vh.currentRole.onClick = () => {\n switch (state.gameState) {\n case \"idle\":\n break;\n case \"blackWin\":\n case \"whiteWin\":\n this.updateState(state => {\n this.reset(state);\n });\n break;\n }\n };\n vh.assistant.onClick = () => {\n const it = this.getState();\n if (it.gameState !== 'idle') {\n return;\n }\n this.computeNextStep(it);\n if (it.gameState !== 'idle') {\n return;\n }\n if (it.role === 'black' && it.gameMode === GameMode.C2P) {\n setTimeout(() => {\n this.computeNextStep(it);\n }, 0);\n }\n else if (it.role === 'white' && it.gameMode === GameMode.P2C) {\n setTimeout(() => {\n this.computeNextStep(it);\n }, 0);\n }\n };\n }\n computeNextStep(it) {\n const tempMatrix = new Array(count * count).fill(0).map((_, idx) => {\n return it.matrix.get(idx) || State.Unspecified;\n });\n let idx = 0;\n do {\n idx = this.computer.compute(tempMatrix, it.role === 'black' ? State.BLACK : State.WHITE);\n } while (it.matrix.get(idx) === State.Unspecified);\n this.updateState(state => {\n state.matrix.set(idx, state.role === 'black' ? State.BLACK : State.WHITE);\n state.role = state.role === 'black' ? 'white' : 'black';\n if (this.checkResult(idx)) {\n modal(context).toast(`恭喜获胜方${it.role === 'white' ? \"黑方\" : \"白方\"}`);\n it.gameState = it.role === 'white' ? 'blackWin' : 'whiteWin';\n }\n });\n }\n reset(it) {\n it.matrix.clear();\n it.gameState = 'idle';\n it.role = \"black\";\n it.anchor = undefined;\n this.computer = new AIComputer(it.matrix);\n if (it.gameMode === GameMode.C2P) {\n const idx = Math.floor(Math.random() * count) * count + Math.floor(Math.random() * count);\n it.matrix.set(idx, State.BLACK);\n it.role = 'white';\n }\n }\n onBind(state, vh) {\n vh.targetZone.forEach((v, idx) => {\n const zoneState = state.matrix.get(idx);\n switch (zoneState) {\n case State.BLACK:\n v.also(it => {\n it.backgroundColor = Color.BLACK;\n it.corners = state.gap / 2;\n it.border = {\n color: Color.TRANSPARENT,\n width: 0,\n };\n });\n break;\n case State.WHITE:\n v.also(it => {\n it.backgroundColor = Color.WHITE;\n it.corners = state.gap / 2;\n it.border = {\n color: Color.TRANSPARENT,\n width: 0,\n };\n });\n break;\n default:\n v.also(it => {\n it.backgroundColor = Color.TRANSPARENT;\n it.corners = 0;\n it.border = {\n color: Color.TRANSPARENT,\n width: 0,\n };\n });\n break;\n }\n if (state.anchor === idx) {\n v.also(it => {\n it.backgroundColor = Color.RED.alpha(0.1);\n it.corners = 0;\n it.border = {\n color: Color.RED,\n width: 1,\n };\n });\n }\n });\n vh.gameMode.text = `游戏模式: 黑方 ${state.gameMode === GameMode.C2P ? \"机\" : \"人\"} 白方 ${state.gameMode === GameMode.P2C ? \"机\" : \"人\"}`;\n switch (state.gameState) {\n case \"idle\":\n vh.result.text = \"重新开始\";\n vh.currentRole.text = `当前: ${(state.role === 'black') ? \"黑方\" : \"白方\"}`;\n break;\n case \"blackWin\":\n vh.result.text = \"黑方获胜\";\n vh.currentRole.text = \"重新开始\";\n break;\n case \"whiteWin\":\n vh.result.text = \"白方获胜\";\n vh.currentRole.text = \"重新开始\";\n break;\n }\n }\n checkResult(pos) {\n const matrix = this.getState().matrix;\n const state = matrix.get(pos);\n const y = Math.floor(pos / count);\n const x = pos % count;\n const getState = (x, y) => matrix.get(y * count + x);\n ///Horitonzal\n {\n let left = x;\n while (left >= 1) {\n if (getState(left - 1, y) === state) {\n left -= 1;\n }\n else {\n break;\n }\n }\n let right = x;\n while (right <= count - 2) {\n if (getState(right + 1, y) === state) {\n right += 1;\n }\n else {\n break;\n }\n }\n if (right - left >= 4) {\n return true;\n }\n }\n ///Vertical\n {\n let top = y;\n while (top >= 1) {\n if (getState(x, top - 1) === state) {\n top -= 1;\n }\n else {\n break;\n }\n }\n let bottom = y;\n while (bottom <= count - 2) {\n if (getState(x, bottom + 1) === state) {\n bottom += 1;\n }\n else {\n break;\n }\n }\n if (bottom - top >= 4) {\n return true;\n }\n }\n ///LT-RB\n {\n let startX = x, startY = y;\n while (startX >= 1 && startY >= 1) {\n if (getState(startX - 1, startY - 1) === state) {\n startX -= 1;\n startY -= 1;\n }\n else {\n break;\n }\n }\n let endX = x, endY = y;\n while (endX <= count - 2 && endY <= count - 2) {\n if (getState(endX + 1, endY + 1) === state) {\n endX += 1;\n endY += 1;\n }\n else {\n break;\n }\n }\n if (endX - startX >= 4) {\n return true;\n }\n }\n ///LB-RT\n {\n let startX = x, startY = y;\n while (startX >= 1 && startY <= count + 2) {\n if (getState(startX - 1, startY + 1) === state) {\n startX -= 1;\n startY += 1;\n }\n else {\n break;\n }\n }\n let endX = x, endY = y;\n while (endX <= count - 2 && endY >= 1) {\n if (getState(endX + 1, endY - 1) === state) {\n endX += 1;\n endY -= 1;\n }\n else {\n break;\n }\n }\n if (endX - startX >= 4) {\n return true;\n }\n }\n return false;\n }\n}\nlet Gobang = class Gobang extends VMPanel {\n getViewModelClass() {\n return GoBangVM;\n }\n getState() {\n return {\n count,\n gap: this.getRootView().width / 14,\n role: \"black\",\n matrix: new Map,\n gameMode: GameMode.P2C,\n gameState: \"idle\"\n };\n }\n getViewHolderClass() {\n return GoBangVH;\n }\n onShow() {\n navbar(context).setTitle(\"五子棋\");\n }\n};\nGobang = __decorate([\n Entry\n], Gobang);\n//# sourceMappingURL=Gobang.js.map"],"names":["Color","this","Stack","layoutConfig","LayoutSpec","ViewHolder","scroller","vlayout","text","gravity","stack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