|
import { expect, assert } from 'chai' |
|
|
|
import board from '@/ai/board.js' |
|
import Search from '@/ai/negamax.js' |
|
import SCORE from '@/ai/score.js' |
|
|
|
describe('非常长的时间', () => { |
|
|
|
it('由于活三冲四太多,导致思考非常久', () => { |
|
|
|
const b = [ |
|
|
|
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], |
|
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], |
|
[0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0], |
|
[0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0], |
|
[0, 0, 0, 0, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0], |
|
[0, 0, 0, 0, 1, 1, 2, 1, 0, 0, 0, 0, 0, 0, 0], |
|
[0, 0, 0, 0, 0, 2, 1, 2, 2, 0, 0, 0, 0, 0, 0], |
|
[0, 0, 0, 0, 0, 1, 2, 1, 0, 0, 0, 0, 0, 0, 0], |
|
[0, 0, 0, 0, 2, 1, 2, 1, 0, 0, 0, 0, 0, 0, 0], |
|
[0, 0, 0, 0, 0, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0], |
|
[0, 0, 0, 0, 0, 1, 0, 2, 0, 0, 0, 0, 0, 0, 0], |
|
[0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], |
|
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], |
|
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], |
|
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], |
|
] |
|
board.init(b); |
|
|
|
const p = Search(); |
|
}) |
|
}) |
|
|