Skip to content

Commit

Permalink
修复了开局库的错误
Browse files Browse the repository at this point in the history
  • Loading branch information
hongxun.li committed Jun 4, 2018
1 parent 88d727a commit ceab1bd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/bridge.js
Original file line number Diff line number Diff line change
Expand Up @@ -1528,7 +1528,7 @@ var puyue = function (board) {

var match = function (board) {
var s = board.steps;
if (s[0] !== 1) return false
if (board.board[s[0][0]][s[0][1]] !== 1) return false
if (s.length > 2) return false
if (math.containPoint([[6,7],[7,6],[8,7],[7,8]], s[1])) return huayue(board)
else if (math.containPoint([[6,6],[8,8],[8,6],[6,8]], s[1])) return puyue(board)
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
</head>
<body ontouchstart class="show-nu">
<h1>轩轩五子棋</h1>
<h4><strong>V2.3.0</strong> 更新时间 2018-06-01</h4>
<h4><strong>V2.4.0</strong> 更新时间 2018-06-04</h4>

<div class="board-outer">
<div class="board" id="board">
Expand Down
2 changes: 1 addition & 1 deletion js/opening.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ var puyue = function (board) {

var match = function (board) {
var s = board.steps;
if (s[0] !== 1) return false
if (board.board[s[0][0]][s[0][1]] !== 1) return false
if (s.length > 2) return false
if (math.containPoint([[6,7],[7,6],[8,7],[7,8]], s[1])) return huayue(board)
else if (math.containPoint([[6,6],[8,8],[8,6],[6,8]], s[1])) return puyue(board)
Expand Down

0 comments on commit ceab1bd

Please sign in to comment.