Calcitem 2021-11-07 00:44:42 +08:00
parent 0a171c7b43
commit 9b99437103
2 changed files with 18 additions and 0 deletions

16
.github/workflows/clang-format.yml vendored Normal file
View File

@ -0,0 +1,16 @@
name: Clang Format
on:
push:
pull_request:
branches: [ master ]
jobs:
clang-format-checking:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: RafikFarhad/clang-format-github-action@v1.0.1
with:
sources: "src/**/*.h,src/**/*.cpp"
style: file

View File

@ -9,6 +9,7 @@
#include "perfectAI.h"
#include <cassert>
// clang-format off
unsigned int soTableTurnLeft[] = {
2, 14, 23,
5, 13, 20,
@ -168,6 +169,7 @@ unsigned int soTableMirrorDiag2[] = {
18, 10, 3,
21, 9, 0
};
// clang-format on
// define the four groups
unsigned int squareIndexGroupA[] = { 3, 5, 20, 18 };